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

How to get around the meshing algorithm getting stuck with "removing" Triangles

–2 votes

Dear All

As part of my code where I work with a spherical shell of radii Rin and Rout
I made Rin rather small and the Meshing algorithm got stuck with removing
triangles for a rather long time i.e. 10 minutes or more.

Any help will be appreciated.

regards
Moritz

asked Jul 3, 2013 by moritzbraun FEniCS User (1,390 points)

1 Answer

+2 votes
 
Best answer

You need to be careful when you define the geometries you feed into the mesh generator. The mesh generation (in CGAL) can fail badly in some cases. Some general recommendations are to rescale all geometries to ca unit size (so no very large or no very small numbers), and to start with a simple geometry and gradually change to what you need.

answered Jul 4, 2013 by logg FEniCS Expert (11,790 points)
selected Jul 5, 2013 by Jan Blechta
...