Hi Guys
This may be a bit of a noob question. It is my first time working with solid meshes on GMSH.
Below is my code to mesh a .stp file which just contains a simple cube. The mesh does not contain any type 5 (hexahedron) elements. Hoe do I force GMSH to only give hexahedron elements?
def create_msh():
# Initialize Gmsh
gmsh.initialize()
# Create a new model
gmsh.model.add("hex_mesh_model")
# Import the STEP file
gmsh.model.occ.importShapes(File_Location_STP)
gmsh.model.occ.synchronize()
gmsh.option.setNumber('Mesh.MeshSizeMin', 100)
gmsh.option.setNumber('Mesh.MeshSizeMax', 200)
gmsh.model.mesh.recombine()
gmsh.option.setNumber("Mesh.Algorithm3D", 1)
gmsh.option.setNumber("Mesh.RecombineAll", 1)
gmsh.option.setNumber("Mesh.SubdivisionAlgorithm", 2)
gmsh.option.setNumber("Mesh.ElementOrder",1)
gmsh.option.setNumber('Mesh.Recombine3DLevel', 1)
gmsh.option.setNumber("Mesh.RecombinationAlgorithm", 1)
gmsh.option.setNumber("Mesh.SubdivisionAlgorithm", 1)
gmsh.model.mesh.refine()
gmsh.model.mesh.generate(3)
gmsh.option.setNumber("Mesh.MshFileVersion",2.2)
gmsh.write(File_Location)
gmsh.finalize()