[CIG-SEISMO] cubit2specfem3d.py patch for CUBIT 14.0

Brad Aagaard baagaard at usgs.gov
Fri Jul 12 10:28:30 PDT 2013


It looks like the entity names are case sensitive (at least on my Mac) 
in CUBIT 14.0. I had to change "Face" to "face" in several places in 
cubit2specfem3d.py to get it to run properly. The patch is attached.

Regards,
Brad
-------------- next part --------------
Index: cubit2specfem3d.py
===================================================================
--- cubit2specfem3d.py	(revision 22563)
+++ cubit2specfem3d.py	(working copy)
@@ -615,7 +615,7 @@
                     for f in faces:
                         if dic_quads_all.has_key(f):
                             #print f
-                            nodes=cubit.get_connectivity('Face',f)
+                            nodes=cubit.get_connectivity('face',f)
                             nodes_ok=self.normal_check(nodes,normal)
                             txt='%10i %10i %10i %10i %10i\n' % (h,nodes_ok[0],\
                                          nodes_ok[1],nodes_ok[2],nodes_ok[3])
@@ -680,7 +680,7 @@
                     faces=cubit.get_sub_elements('hex',h,2)
                     for f in faces:
                         if dic_quads_all.has_key(f):
-                            nodes=cubit.get_connectivity('Face',f)
+                            nodes=cubit.get_connectivity('face',f)
                             if not absflag:
                                 # checks with specified normal
                                 nodes_ok=self.normal_check(nodes,normal)
@@ -732,7 +732,7 @@
                     faces=cubit.get_sub_elements('hex',h,2)
                     for f in faces:
                         if dic_quads_all.has_key(f):
-                            nodes=cubit.get_connectivity('Face',f)
+                            nodes=cubit.get_connectivity('face',f)
                             txt='%10i %10i %10i %10i %10i\n' % (h,nodes[0],\
                                              nodes[1],nodes[2],nodes[3])
                             surfhex_local.write(txt)


More information about the CIG-SEISMO mailing list