stellarmesh.GmshSurfaceOptions

class GmshSurfaceOptions(*, min_mesh_size: float | None = None, max_mesh_size: float | None = None, curvature_target: float | None = None, algorithm2d: GmshSurfaceAlgo = GmshSurfaceAlgo.AUTOMATIC, num_threads: int | None = None, _recombine: bool = False)Source

Gmsh surface meshing options.

See https://gmsh.info/doc/texinfo/gmsh.html#Mesh-options.

min_mesh_size

Min mesh element size.

Type:

float | None

max_mesh_size

Max mesh element size.

Type:

float | None

curvature_target

Target number of elements per 2pi radians.

Type:

float | None

algorithm2d

Gmsh meshing algorithm.

Type:

stellarmesh.mesh.GmshSurfaceAlgo

num_threads

Max number of threads to use when GMSH compiled with OpenMP

Type:

int | None

support. 0 for system default i.e. OMP_NUM_THREADS. Defaults to None.
set_options()Source

Set corresponding Gmsh options.