[Gmsh] Meshing Looping how to debug.

Christophe Geuzaine cgeuzaine at uliege.be
Wed Jun 17 13:24:21 CEST 2020



> On 17 Jun 2020, at 13:00, Keith Sloan <keith at sloan-home.co.uk> wrote:
> 
> 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?
> 

Set 

gmsh.option.setNumber('General.Terminal',1)

to see the messages.


> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine






More information about the gmsh mailing list