upxo.meshing.gbconformant.d3v2p0 package
Submodules
- upxo.meshing.gbconformant.d3v2p0.abaqus_export module
- upxo.meshing.gbconformant.d3v2p0.adjacency_view module
- upxo.meshing.gbconformant.d3v2p0.defect_view module
- upxo.meshing.gbconformant.d3v2p0.discrete_topology module
- upxo.meshing.gbconformant.d3v2p0.exploration_views module
- upxo.meshing.gbconformant.d3v2p0.facet_angles module
- upxo.meshing.gbconformant.d3v2p0.geometry_guard module
- upxo.meshing.gbconformant.d3v2p0.gmsh_closed module
- upxo.meshing.gbconformant.d3v2p0.gmsh_interfaces module
- upxo.meshing.gbconformant.d3v2p0.gmsh_tets module
- upxo.meshing.gbconformant.d3v2p0.grain_subset_view module
- upxo.meshing.gbconformant.d3v2p0.guard_relaxation module
- upxo.meshing.gbconformant.d3v2p0.interfaces module
- upxo.meshing.gbconformant.d3v2p0.intersection_repair module
- upxo.meshing.gbconformant.d3v2p0.local_thickness module
- upxo.meshing.gbconformant.d3v2p0.mesh module
- upxo.meshing.gbconformant.d3v2p0.optimization module
- upxo.meshing.gbconformant.d3v2p0.paths module
- upxo.meshing.gbconformant.d3v2p0.pinch_cleaning module
- upxo.meshing.gbconformant.d3v2p0.quality_plots module
- upxo.meshing.gbconformant.d3v2p0.quality_view module
- upxo.meshing.gbconformant.d3v2p0.rve_caps module
- upxo.meshing.gbconformant.d3v2p0.small_grains module
- upxo.meshing.gbconformant.d3v2p0.spike_cleaning module
- upxo.meshing.gbconformant.d3v2p0.surface_angles module
- upxo.meshing.gbconformant.d3v2p0.surface_charts module
- upxo.meshing.gbconformant.d3v2p0.surface_export module
- upxo.meshing.gbconformant.d3v2p0.surface_intersections module
- upxo.meshing.gbconformant.d3v2p0.surface_metrics module
- upxo.meshing.gbconformant.d3v2p0.surface_quality module
- upxo.meshing.gbconformant.d3v2p0.tet_angles module
- upxo.meshing.gbconformant.d3v2p0.tet_quality_view module
- upxo.meshing.gbconformant.d3v2p0.tet_repair module
- upxo.meshing.gbconformant.d3v2p0.tet_smoothing module
- upxo.meshing.gbconformant.d3v2p0.tet_swaps module
- upxo.meshing.gbconformant.d3v2p0.tet_validation module
- upxo.meshing.gbconformant.d3v2p0.thickness_view module
- upxo.meshing.gbconformant.d3v2p0.thin_freeze module
- upxo.meshing.gbconformant.d3v2p0.unpinch module
- upxo.meshing.gbconformant.d3v2p0.views module
- upxo.meshing.gbconformant.d3v2p0.voxel_topology module
Module contents
Conforming, topology-preserving voxel-to-tetrahedron meshing.
- class upxo.meshing.gbconformant.d3v2p0.Mesh(points: numpy.ndarray, tetrahedra: numpy.ndarray, grain_ids: numpy.ndarray, boundary_triangles: numpy.ndarray, boundary_grains: numpy.ndarray, exterior: numpy.ndarray, node_kind: numpy.ndarray, fixed_axes: numpy.ndarray, original_points: numpy.ndarray, history: list, quality_history: list = <factory>, quality_before_optimization: numpy.ndarray | None = None)[source]
Bases:
object
- upxo.meshing.gbconformant.d3v2p0.mesh_voxels(labels, spacing=1.0, iterations=20, relaxation=0.35, min_quality=0.5, quality_iterations=60, quality_displacement=0.35)[source]
Mesh every voxel with six conforming tetrahedra, then relax globally.
Surface nodes average surface neighbors; junction line nodes average only neighbors on their junction line. Branch/end points and >=4-grain nodes are frozen. Interior nodes average volume neighbors. Backtracking enforces positive volumes and the requested mean-ratio quality floor globally. The initial mesh must meet that floor; otherwise a ValueError is raised. A subsequent tangential quality optimization runs for quality_iterations steps (0 disables it), with motion bounded by quality_displacement times the smallest voxel spacing from the post-Laplacian geometry.