Skip to content
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: Add quad16 and hexahedron64 #145

Closed
dalcinl opened this issue Nov 13, 2017 · 2 comments
Closed

GMSH: Add quad16 and hexahedron64 #145

dalcinl opened this issue Nov 13, 2017 · 2 comments

Comments

@dalcinl
Copy link
Contributor

dalcinl commented Nov 13, 2017

The patch is trivial, if you prefer a PR, let me know and I'll submit one with the diff below.

diff --git a/meshio/gmsh_io.py b/meshio/gmsh_io.py
index fc53da2..36aa8a8 100644
--- a/meshio/gmsh_io.py
+++ b/meshio/gmsh_io.py
@@ -30,6 +30,7 @@ num_nodes_per_cell = {
     'pyramid14': 14,
     'line4': 4,
     'quad16': 16,
+    'hexahedron64': 64,
     }
 
 # Translate meshio types to gmsh codes
@@ -52,6 +53,7 @@ _gmsh_to_meshio_type = {
         14: 'pyramid14',
         26: 'line4',
         36: 'quad16',
+        92: 'hexahedron64',
         }
 _meshio_to_gmsh_type = {v: k for k, v in _gmsh_to_meshio_type.items()}
@nschloe
Copy link
Owner

nschloe commented Nov 13, 2017

Perhaps we can enhance this with the rest of the gmsh types (if there are any).

@nschloe
Copy link
Owner

nschloe commented Nov 13, 2017

And yes, a PR would make things really easy for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants