My workflow at the moment is as follows:
- Use GMSH to define a geometry (2D or 3D) and to create a mesh. This
also includes the definition of physical surfaces and physical
regions that I need for my program.
- Convert with
dolfin-convert
and do the finite-element parts in
FEniCS
- Visualize the results in Paraview
Now I would like to replace the first step with FreeCAD for the geometry and Netgen for the meshing. Reasons include license (LPGL), and in case of FreeCAD, a more useful GUI compared to GMSH to create more complex geometries. Also the fact that, just like FEniCS and Paraview, there is an Python API available would be useful to me.
I wondered if anyone has tried this succesfully? The closest I found was this:
https://en.wikiversity.org/wiki/CAD_to_FEniCS_example
In particular, I wonder:
- How to include something like GMSH's physical surfaces and regions?
- Which file format to use as intermediate step?
- Etc.
In short, any useful tips here are welcome.
Thanks!