-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How Pygmsh mesh a .*vtu file created by meshio? #229
Comments
I don't understand what that means.
What's the problem? You already described how to do it. |
Hello
doesn't work. |
Well you need to provide a geometry, right? |
yes exactly |
Yeah so why don't you do it? You're using |
I tried: geom_1 = pygmsh.built_in.Geometry()
geom_1.add_raw_code( "mymesh.vtu")
points, cells, point_data, cell_data, field_data = pygmsh.generate_mesh(geom_1, extra_gmsh_arguments=["-order", "2"]) but doesn't work |
This geom_1.add_raw_code( "mymesh.vtu") doesn't make any sense at all. |
I'm trying to do like Gmsh, by opening a .*msh file to mesh it again on order 2. |
hope, I explained clearly the problem |
pygmsh cannot read meshes. You can only create a geometry and mesh that. |
Okay, thank you for your explaination. |
Hello,
I create a mesh with pygmsh that I change the coordinates of the points of mesh to my topologie of study.
I'm working to developp a FEM software on geophysics. I want to create mesh of order 2 or 3 for FEM.
The problem that I can't mesh it directly on order 2 by using " generate_mesh(geom, extra_gmsh_arguments=["-order", "2"])", cause the coordinates of points will be changed and than I lost the form of tetra10 in my mesh.
In GMSH, we can save than open a .msh file than mesh it into order 2. I'm looking to do the same in pygmsh using meshio. So my code:
_ first mesh
_change coordinates of points (points--->newpoints)
_write vtu file with meshio
how can I generate mesh to mymesh.vtu using pygmsh?
??
The text was updated successfully, but these errors were encountered: