-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Gmsh mesh generation engine support #16
Comments
Hi Bin, I'm planning on inheriting PolyMesh and TriMesh from the meshio.Mesh class in v2.0 of the code. At that point, I'll integrate gmsh support and include pygmsh so the PolyMesh can be saved to a .geo for externally calling gmsh or the TriMesh can be created with pygmsh like Best, |
Hi Kip, Sounds good. Please be careful the normal orientation issue. All boundary faces should be outward normal. You can see my effort @ #16 (comment) to adapt this for Gmsh. Thanks, |
Thanks, that's a good point. The exterior faces can be oriented positive outward, while leaving the interior faces arbitrary. Since the facets are created by the |
…#23) * stop tracking duplicate aluminum micro file * facets on the exterior of the polymesh now have outward normals (#16) * updated changelog * changed plot limits, trying to get 3D axes equal * updated trimesh plotting in CLI * fixed typo in order of lines for empirical PDFs * added option to maximize the minimum edge length in a polygonal mesh * simplified seedlist indexing * optimized seedlist positioning method uses BFS in aabb tree for overlap detection and samples 100 positions at a time * fixed the logo script * fixed 2d axes behavior * simplified foam example * updated changelog * added missing zlim * updated sphinx version * indented changelog * removed unneeded version string functions * bumped version * simplified version getting
I realize it's been several months, but I've added gmsh to the code MicroStructPy code. It can be specified using |
Hey Kip, I have been playing around with your package to import a mesh into FENICS using meshio. I was able to create the triangular mesh like you described. Trimesh.from_polymesh(..., mesher='gmsh'). Is there a possibility now to export the mesh with facets, so it can be imported by meshio? What is the workflow? Or use Bin's script? |
Is your feature request related to a problem? Please describe.
Gmsh mesh generator is support by many open-source simulation code. It will be nice to add a Gmsh meshing interface.
meshio
library supportGmsh
very well. Once we have gmsh file, we can usemeshio
to convert the mesh into any mesh format, such asDescribe the solution you'd like
The working code is attached, please feel free to integrate it into the MicroStructPy. It support to mesh any polymesh.region we want.
Noted that Gmsh is intefaced by generating its built-in script file
*.geo
. We need to use Gmsh to load the geo file and generate mesh.The text was updated successfully, but these errors were encountered: