Algorithm 11 (Quasi-structured Quad) does not work with gmsh.model.mesh.setAlgorithm() (Python-API)
Hi,
I have an issue with the setAlgorithm method. I need to use different meshing algorithms on the surfaces of my 2D-model, so I went with the gmsh.model.(geo.)mesh.setAlgorithm method (I'm working with the python API). However, for algorithm 11 this seems not to work. I constructed a simple example to reproduce this:
import gmsh
gmsh.initialize()
gmsh.model.add("test_setAlgorithm")
p0 = gmsh.model.geo.addPoint(0, 0, 0)
p1 = gmsh.model.geo.addPoint(1, 0, 0)
l1 = gmsh.model.geo.addLine(p0, p1)
l2, s1, l3, l4 = gmsh.model.geo.extrude([(1, l1)], 0, 1, 0)
l5, s2, l6, l7 = gmsh.model.geo.extrude([l2], 0, 1, 0)
# now set the algorithms
gmsh.model.geo.mesh.setAlgorithm(*s1, 6)
gmsh.model.geo.mesh.setAlgorithm(*s2, 11)
gmsh.model.geo.synchronize()
# gmsh.model.mesh.setAlgorithm(*s1, 6)
# gmsh.model.mesh.setAlgorithm(*s2, 11)
gmsh.model.mesh.setTransfiniteAutomatic([s1], recombine=True)
gmsh.model.mesh.generate(2)
gmsh.fltk.run()
gmsh.finalize()
The quad-meshing algorithm is not being used, but a unknown
algorithm:
Info : Meshing 1D...
Info : [ 0%] Meshing curve 1 (Line)
Info : [ 20%] Meshing curve 2 (Line)
Info : [ 30%] Meshing curve 3 (Line)
Info : [ 50%] Meshing curve 4 (Line)
Info : [ 60%] Meshing curve 6 (Line)
Info : [ 80%] Meshing curve 7 (Line)
Info : [ 90%] Meshing curve 8 (Line)
Info : Done meshing 1D (Wall 0.000844071s, CPU 0.00046s)
Info : Meshing 2D...
Info : [ 0%] Meshing surface 5 (Transfinite)
Info : [ 50%] Meshing surface 9 (Surface, Unknown)
Info : Done meshing 2D (Wall 0.0151529s, CPU 0.01235s)
Info : 76 nodes 136 elements
Is algorithm 11 only supported for global meshing? With gmsh.option.setNumber("Mesh.Algorithm", 11)
I can get a quad mesh globally, but I only want it for some and not all of my surfaces. The remaining surfaces should be meshed with a transfinite constraint.
Thanks in advance!
Version information:
-------------------------------------------------------
Version : 4.11.1
License : GNU General Public License
Build OS : Linux64-sdk
Build date : 20221221
Build host : gmsh.info
Build options : 64Bit ALGLIB[contrib] ANN[contrib] Bamg Blas[petsc] Blossom Cgns DIntegration Dlopen DomHex Eigen[contrib] Fltk Gmm[contrib] Hxt Jpeg Kbipack Lapack[petsc] LinuxJoystick MathEx[contrib] Med Mesh Metis[contrib] Mmg Mpeg Netgen ONELAB ONELABMetamodel OpenCASCADE OpenCASCADE-CAF OpenGL OpenMP OptHom PETSc Parser Plugins Png Post QuadMeshingTools QuadTri Solver TetGen/BR Voro++[contrib] WinslowUntangler Zlib
FLTK version : 1.4.0
PETSc version : 3.14.4 (real arithmtic)
OCC version : 7.6.1
MED version : 4.1.0
Packaged by : geuzaine
Web site : https://gmsh.info
Issue tracker : https://gitlab.onelab.info/gmsh/gmsh/issues
-------------------------------------------------------