Can't call `gmsh.model.mesh.setAlgorithm(dim,tag,val)` with val= 11 (Quasi stuctured quad algorithm)
Hello,
I am writing a python script where I want to call different meshing algorithsm on different regions of a model :
#Init
gmsh.initialize()
gmsh.merge("model.geo")
region_triangles = [23,22,26,21,24,9,31,25,12]
region_quad=[1,2,3,4,5,6,7,8,10,11,13,14,15,16,17,18,19,20,27,28,29,30,32]
gmsh.model.occ.synchronize()
for r in region_quad:
gmsh.model.mesh.setAlgorithm(2,r,11)
for r in region_triangles:
gmsh.model.mesh.setAlgorithm(2,r,5)
gmsh.model.mesh.generate(2)
gmsh.fltk.run()
gmsh.finalize()
the line gmsh.model.mesh.setAlgorithm(2,r,11)
doesn't seem to do anything, because I have the following log :
Info : Meshing 2D...
Info : [ 0%] Meshing surface 1 (Plane, Unknown)
Info : [ 10%] Meshing surface 2 (Plane, Unknown)
Info : [ 10%] Meshing surface 3 (Plane, Unknown)
Info : [ 10%] Meshing surface 4 (Plane, Unknown)
Info : [ 20%] Meshing surface 5 (Plane, Unknown)
Info : [ 20%] Meshing surface 6 (Plane, Unknown)
Info : [ 20%] Meshing surface 7 (Plane, Unknown)
Info : [ 30%] Meshing surface 8 (Plane, Unknown)
Info : [ 30%] Meshing surface 9 (Plane, Delaunay)
Info : [ 30%] Meshing surface 10 (Plane, Unknown)
Info : [ 40%] Meshing surface 11 (Plane, Unknown)
Info : [ 40%] Meshing surface 12 (Plane, Delaunay)
Info : [ 40%] Meshing surface 13 (Plane, Unknown)
Info : [ 50%] Meshing surface 14 (Plane, Unknown)
Info : [ 50%] Meshing surface 15 (Plane, Unknown)
Info : [ 50%] Meshing surface 16 (Plane, Unknown)
Info : [ 50%] Meshing surface 17 (Plane, Unknown)
Info : [ 60%] Meshing surface 18 (Plane, Unknown)
Info : [ 60%] Meshing surface 19 (Plane, Unknown)
Info : [ 60%] Meshing surface 20 (Plane, Unknown)
Info : [ 70%] Meshing surface 21 (Plane, Delaunay)
Info : [ 70%] Meshing surface 22 (Plane, Delaunay)
Info : [ 70%] Meshing surface 23 (Plane, Delaunay)
Info : [ 80%] Meshing surface 24 (Plane, Delaunay)
Info : [ 80%] Meshing surface 25 (Plane, Delaunay)
Info : [ 80%] Meshing surface 26 (Plane, Delaunay)
Info : [ 90%] Meshing surface 27 (Plane, Unknown)
Info : [ 90%] Meshing surface 28 (Plane, Unknown)
Info : [ 90%] Meshing surface 29 (Plane, Unknown)
Info : [100%] Meshing surface 30 (Plane, Unknown)
Info : [100%] Meshing surface 31 (Plane, Delaunay)
Info : [100%] Meshing surface 32 (Plane, Unknown)
So I am falling on the default algorithm.
I try with other values (9
, 8,
etc...) and it works as expected. I am guessing the recent algorithm "Quasi Structured Quad" is not yet recognised by this method ? Or maybe there is an exception like it can't be applied on specific regions ?
Best,
Antoine