This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Controlling the cell size in refinement

0 votes

Hi... in the context of elastodynamics (soil-structure interaction), i want to refine the mesh locally depending of the different material properties of the domain, imposing the maximum cell diameter equal to $L_s/n$ (where $L_s$ is the shear wavelength of the soil and $n$ an integer value) and imposing the minimum cell diameter equal to some real value with the desire of not to increase the computational cost of the model... is possible to control the size of the resultant cells when i refine the mesh?

asked Sep 28, 2015 by hernan_mella FEniCS Expert (19,460 points)

1 Answer

+1 vote
 
Best answer

At present, the mesh refinement algorithms are based on "edge bisection". For a triangle, it may be split into 2, 3 or 4 sub-triangles, depending on which Edges are marked. If all you want to do is impose a maximum, you can just check each Cell, and refine it further, if it is not small enough.

answered Sep 28, 2015 by chris_richardson FEniCS Expert (31,740 points)
selected Sep 29, 2015 by hernan_mella

Thanks for your quick reply!

...