-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow specifying dimension in Mesh.mesh_geometry #23
Conversation
Looks good. If the codebase is to be refactored to allow other export formats other than MOAB, I would maybe find a way to refactor out some of the MOAB-specific logic, like this. I would also double check that this logic still holds (normals aren't changed) when we mesh up to 3d. Finally, I would clarify/assert that mesh refinement will discard all volume mesh data These are all minor points, otherwise this small change should be good. |
Yes, I'm planning on continuing down this path. Specifically, in moab.py we need better separation between things that are MOAB-specific and things that are DAGMC-specific. This will be in a future PR.
I wasn't sure exactly how to check this -- appreciate any pointers you have in that regard. However, from what I can tell, when you ask gmsh to generate a mesh up to dim=3, it starts with the lower dimensions which proceed exactly the same as if you had requested dim=2.
In fact, we're actually discarding volume mesh data as soon as Let me know if you think this is good to go! |
Great!
Yes, meshing up to dim=3 also meshes up to dim=2. I don't have any specific concerns about the codebase, but there could possibly be bugs for example in the way that physical groups are used. I don't think anything in this PR needs to be changed, but integration tests would be great to see in the future.
Sound good! You're welcome to merge the PR you like |
This small change allows the dimension to be specified when meshing a geometry.