[Gmsh] Meshing Looping how to debug.
Keith Sloan
keith at sloan-home.co.uk
Wed Jun 17 13:00:26 CEST 2020
I have code as below
def initialize() :
gmsh.initialize()
gmsh.option.setNumber('Mesh.Algorithm3D',1)
gmsh.option.setNumber("Geometry.OCCFixDegenerated", 1)
gmsh.option.setNumber("Mesh.SaveGroupsOfNodes", 1)
gmsh.option.setNumber("Mesh.CharacteristicLengthMax", 2)
gmsh.option.setNumber("Mesh.CharacteristicLengthFromCurvature", 0)
gmsh.option.setNumber("Mesh.CharacteristicLengthFromPoints", 1)
gmsh.option.setNumber("Mesh.SaveAll", 0)
gmsh.option.setNumber("Mesh.OptimizeNetgen", 1)
gmsh.option.setNumber("Mesh.MaxNumThreads3D", 4)
gmsh.option.setString("Geometry.OCCTargetUnit", 'mm');
gmsh.option.setString("General.ErrorFileName", '/tmp/error.log');
def meshObj(obj, dim) :
obj.Shape.exportBrep("/tmp/Shape2Mesh.brep")
ab = gmsh.open('/tmp/Shape2Mesh.brep')
gmsh.model.occ.synchronize()
print(dir(ab))
gmsh.model.mesh.generate(dim)
print('Mesh Generated')
gmsh.model.mesh.renumberNodes()
I am passing 3 as the value of dim.
One object a Cube works just fine, but another Cube
which seems the same just loops.
Suggestions on how to debug please?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20200617/19adec3a/attachment.html>
More information about the gmsh
mailing list