Propagating surface/volume mesh tags from STL/VTM to Firedrake Mesh #3194
Unanswered
gnikit
asked this question in
Firedrake support
Replies: 1 comment 1 reply
-
Firedrake in general does not directly handle mesh files. The |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am wondering if there are any helper functions or already established workflows if you want to
OR
Load an existing VTM (where the blocks correspond to the boundary regions) directly into Firedrake. The multiblock names/IDs can be fetched with VTK.
Any help would be greatly appreciated.
More details
AFAIK both Netgen and Gmsh do not offer a way to map the input labelled STL to the output labelled volume mesh
Netgen
I came close with Netgen fetching the
FaceDescriptors()
however the 2 surfaces grouped underregion5
were split into 2 surfaces again. Also, I doubt that there is a map of thesurfnr
s and thesolid
labels in the STL somewhere stored in Netgen.Outputs
Gmsh
With Gmsh things are a bit more complicated. One can preserve the input tags using the following script, however, sharp features inside the already classified tags will not be preserved (see figure below)
Outputs
Enabling
gmsh.model.mesh.classifySurfaces(np.radians(45), True, True)
will cause the input tag associations to be lost seeResources
cube_labelled.stl.txt
Beta Was this translation helpful? Give feedback.
All reactions