Skip to main content

Arash Zamani's blog

A funny error

Submitted by Arash Zamani on

Dear All,I have written a finite element code in C++. The results have generally high accuracy. But when I change the order of evaluating r and theta of the polar coordinates in terms of x and y in the sub-program of computing the shape functions, then the results are changed about 10^-9 of the initial results. The change is negligible but I wonder why this happens? I had initially supposed it may be related to some memory linkage in the program but since now I have not been successful to find any. Is there any one to have an idea about this funny error???

A funny error

Submitted by Arash Zamani on

Dear All,

I have written a finite element code in C++. The results have generally high accuracy. But when I change the order of evaluating r and theta of the polar coordinates in terms of x and y in the sub-program of computing the shape functions, then the results are changed about 10^-9 of the initial results. The change is negligible but I wonder why this happens? I had initially supposed it may be related to some memory linkage in the program but since now I have not been successful to find any. Is there any one to have an idea about this funny error???

Dear Omid and Sepehr

Submitted by Arash Zamani on

I think a non-zero entry in the stiffness matrix doesn't necessarily imply dependence of ith DOF on the jth DOF. This is the case also for standard FEM (without any enrichments). For example for a quadrilateral 2D element the x component of displacement has interaction with y component at each node, but as we know, two independent values of translation in x and y directions can

Solver for XFEM

Submitted by Arash Zamani on

In the FEM book by KJ Bathe and also in the fem book by G.Dhatt, it is said the direct solvers are generally more convenient than iterative solvers and new versions of them include reordering and efficient use of skyline method. In contrast there are iterative solvers with capability to directly manipulate sparse format of matrices. I am now working on XFEM coding with C++ and don't know what type of solver would be the best for XFEM. the conditioning issues of matrices obtained from XFEM would be a difficulty for the choice of preconditioners.

mesh refinement for eigen-properties of a cracked body

Submitted by Arash Zamani on

 It is a common technique in modelling cracked bodies with finite element method, to refine the mesh near the crack tip. It is mentioned in text books, mesh refinement is nessecary to increase the acuuracy of the computed stress intensity factor for the crack tip. Is meshrefinement nessecary for computing eigen-properties ( natural frequencies and natural modes ) as well as SIF? or eigen properties are not affected much by the near crack tip field?