upxo.meshing.gbconformant.d3v2p1.gmsh_tets module

Grain-parallel conforming tetrahedral meshing of repaired grain shells.

Same result contract as d3v2p0.gmsh_tets.mesh_repaired_rve_gmsh: surface triangles stay fixed, so each grain’s volume is meshed independently of every other grain (their shared interface triangles cannot change). Grains are distributed over worker processes, largest first; each worker meshes its grains one Gmsh model at a time with the d3v2p0 options. Results are merged on the fixed surface-node numbering and verified exactly as in d3v2p0 (conformity per grain, positive volumes, grain and RVE volumes, quality, dihedral statistics, readiness).

upxo.meshing.gbconformant.d3v2p1.gmsh_tets.mesh_repaired_rve_gmsh(surface, mesh_size=1.5, verbose=False, optimize_netgen=True, minimum_quality=0.05, netgen_all_volumes=False, optimize_threshold=None, minimum_dihedral=None, n_workers=None, precheck=True, backend='auto')[source]

Grain-parallel version of d3v2p0.gmsh_tets.mesh_repaired_rve_gmsh.

backend / n_workers: see d3v2p1.backend (None = automatic); grains are meshed in separate Gmsh models, so the mesh does not depend on them. precheck: run the d3v2p0 surface validation first (as d3v2p0 does). Other arguments as in d3v2p0. Returns a GrainTetrahedra whose first len(surface.points) nodes are the surface points.