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

Remeshing a 2D-domain with a hole inside

0 votes

Hi all,

I'm implementing a grid deformation in Fenics 1.5 (python). The initial 2D-domain is a rectangle with a hole inside and the mesh consists of triangles. This domain was created with gmesh and than converted:

dolfin-convert file.msh file.xml

After a few iterations the shape of the hole changes and the quality of the mesh decreases. At this point I would like to remesh the new, deformed domain.

How can I remesh the domain?

  1. Are there some tools in Fenics for remeshing this particular domain?

  2. Is remeshing with gmesh possible?
    I know that gmsh has a non-interactive mode. However, I need to create a *.geo-file for using gmsh. As far as I know, this is not possible with dolfin-convert.

Any help is appreciatet.

asked Jul 22, 2015 by puffin FEniCS Novice (440 points)
edited Jul 22, 2015 by puffin

1 Answer

0 votes

This is something which is not yet in FEniCS, though it may come one day. You might try the "pragmatic" library which can interact with dolfin https://github.com/meshadaptation/pragmatic

answered Jul 22, 2015 by chris_richardson FEniCS Expert (31,740 points)

Thank you for your reply. Am I right that I have to programm Fenics in C++ for using pragmatic? And that there is no way to solve my problem in python?

I think it has a python interface - check it out.

...