Skip to content

Meshing

Sunil Anandatheertha edited this page May 22, 2026 · 1 revision

Meshing

UPXO can generate Finite Element (FE) meshes directly from grain structures, both conformant and non-conformant to grain boundaries.


Conformant Meshing

Grain boundary geometry conformant meshes align element edges with grain boundaries, essential for accurate FE simulations of grain-scale phenomena.

Key module: meshing/conformal_mesher2d.py, meshing/gsmesh2d.py

Optional dependency: pip install upxo[mesh] (installs pyvoro and tetgen)


Non-Conformant Meshing

Non-conformant meshes use a regular grid overlay — faster to generate, suitable for phase-field and homogenisation approaches.

Key module: meshing/nonConformalMesher.py


Output Formats

  • VTK (.vtk, .vtu, .vti) — via pyvista
  • Abaqus input (.inp) — via meshing/pxtalmesh_01.py
  • Gmsh (.msh) — optional via gmsh

Coming Soon

  • Full 3D tetrahedral meshing workflow
  • Periodic boundary condition mesh generation
  • Direct export to commercial FE solvers

Clone this wiki locally