I am stuck with the problem of converting a FreeCAD FEM mesh to fenics with subdomain marks included. Does anyone have an example on how to achieve this?
I read though the wiki and the post fenics solver.
Then I tried to figure it out on my own with these steps:
1) Create a simple geometry: Sphere in extruded hexagon, apply combound filter following this tutorial:
2) Create gmsh mesh using FEM workbench and mark the sphere and the hexagon as groups by the following steps:
- Mesh-> FEM Mesh from shape by Gmsh, click ok (not apply)
- click on the new created object and add groups by:
Mesh-> FEM Mesh group, double click on the newly created object in the tree, tick solid, add reference from solid, choose the outer solid
do the same for the sphere. The sphere is chosen by changing the view to 'right view' (pressing 3), then it appears in the hexagonial shape. - create mesh by clicking on double clicking on the FEMMeshGmsh object and clicking apply
what I would have loved to have are two files: mesh_name.xml and mesh_name_physical_regions.xml, the latter containing two regions I have marked using the FEM Mesh groups.
Does anyone have experience / ideas how to continue?
Thank you in advance
Baltasar
FreeCad info:
OS: Debian GNU/Linux buster/sid
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.
Build type: None
Python version: 2.7.15+
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)