Skip to content

mesh= Gmsh3D("Model3D.geo") can not get the mesh #964

Answered by guyer
LiuDongDong1989 asked this question in Q&A
Discussion options

You must be logged in to vote

If you compare the .msh file generated with and without Physical Surface("TOP") = {6};, you can see that when this line is present, the resulting MSH file consists only of type-2 elements, which are triangles. There are no 3D elements (tetrahedra) in the file and so FiPy is unable to create any cells. This isn't a FiPy issue; it's a Gmsh issue.

The Gmsh documentation isn't very clear about this, although it's sort of explained in FAQ C.5.3:

By default, if physical groups are defined, the output mesh only contains those elements that belong to physical entities. So to save only 3D elements, simply define one (or more) physical volume(s) and don’t define any physical surfaces, physical cur…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LiuDongDong1989
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants