The long processing time in MeshAdapt
I'm working on a project that uses the GMSH Python API to generate triangular meshes over surfaces. However, the project involves processing large structure files, and I'm having some issues with MeshAdapt. On some surfaces, the MeshAdapt method is being applied almost infinitely, until it consumes all the memory and finishes the software.
The code uses is:
import gmsh
gmsh.initialize()
gmsh.model.occ.importShapes(filename, highestDimOnly = True)
gmsh.model.occ.synchronize()
gmsh.option.setNumber("Mesh.MeshSizeMin", 1)
gmsh.option.setNumber("Mesh.MeshSizeMax", 1e22)
gmsh.option.setNumber("General.ExpertMode", 1)
gmsh.option.setNumber("General.Verbosity", 99)
gmsh.model.mesh.generate(2)
gmsh.write(outputName)
gmsh.finalize()
I attach the last lines of the generated debug and the file that generated the problem below:
As it is complicated to get data from large structures we are fixing these cases to use as much data as we have. Is there any set of configurations within the API that we can use to be able to solve this?