PhysicsNeMo-Mesh#

PhysicsNeMo-Mesh is a GPU-accelerated mesh library for physics AI, built on PyTorch. One Mesh type holds point clouds, graphs and curves, surfaces, and volumes, with differentiable geometry, calculus, and topology.

GPU autograd any dimension torch.compile

One lumpy blob shown four ways, each one Mesh object. A point cloud, Mesh[0, 3]. An edge graph, Mesh[1, 3]. A triangle surface, Mesh[2, 3]. A tetrahedral volume cut open, Mesh[3, 3].

Simulation engineers work with volume meshes, graphics programmers with surfaces, vision researchers with point clouds, and graph network researchers with graphs. PhysicsNeMo-Mesh handles all of them as one type. Install it with the extra that matches your CUDA version:

pip install "nvidia-physicsnemo[cu13,mesh-extras]"
pip install "nvidia-physicsnemo[cu12,mesh-extras]"
pip install "nvidia-physicsnemo[mesh-extras]"

Without a CUDA extra, pip installs the default PyTorch wheel from PyPI.

The mesh-extras extra adds matplotlib, PyVista, and VTK, for drawing and file I/O. Ask questions in GitHub Discussions.

Chapters#

This User Guide explains the concepts and helps you choose between methods. The API reference documents every public function and class. The guide has five chapters and a section on graph networks:

A small triangle mesh with one cell highlighted
Concepts and Data Model

Explains manifold and spatial dimensions, the five fields of Mesh, and why every cell is a simplex.

Concepts and Data Model
A square mesh with a scalar and a vector field, rotated 30 degrees
Fields, Ranks, and Schemas

Covers data on points, cells, and the whole mesh, how each rank transforms, and FieldSchema.

Fields, Ranks, and Schemas
A curved sheet colored by a point field
Using Mesh

Create, transform, differentiate, query, edit, and save meshes, with notes on which method to pick.

Using Mesh
Pressure around a cylinder, with the wall and the far field drawn as two boundaries
Simulation Domains with DomainMesh

Shows how one DomainMesh holds an interior, its named boundaries, and global metadata.

Simulation Domains with DomainMesh
Three meshes merged into one batch, one color for each sample
Mesh in ML Pipelines

Covers preprocessing at training time, batching, features, augmentation, and field declarations.

Mesh in ML Pipelines
The edge graph of a curved sheet, drawn as nodes and edges
Graph Networks on Meshes

The edge graph of any mesh is a Mesh[1, n]. Build graphs, edge features, and message passing on plain tensors.

Graph Networks on Meshes

Tutorials#

The nine tutorial notebooks are in examples/minimal/mesh/. They run on a CPU and use a GPU when one is present. Take them in order:

1. Getting Started

Build a mesh, attach fields, draw it, and differentiate through its geometry.

https://github.com/NVIDIA/physicsnemo/blob/main/examples/minimal/mesh/tutorial_1_getting_started.ipynb
2. Loading and Saving

Read VTK and STL files, triangulate polygons, and save to .pmsh and Zarr.

https://github.com/NVIDIA/physicsnemo/blob/main/examples/minimal/mesh/tutorial_2_io_interop.ipynb
3. Primitives and Generation

Load example meshes, fill a boundary, and mesh an implicit shape.

https://github.com/NVIDIA/physicsnemo/blob/main/examples/minimal/mesh/tutorial_3_primitives_generation.ipynb
4. Mesh Operations

Transform, subdivide, slice, and merge meshes, and extract edge graphs.

https://github.com/NVIDIA/physicsnemo/blob/main/examples/minimal/mesh/tutorial_4_operations.ipynb
5. Calculus and Curvature

Take gradients, divergences, and Laplacians, and build a physics loss.

https://github.com/NVIDIA/physicsnemo/blob/main/examples/minimal/mesh/tutorial_5_calculus.ipynb
6. Neighbors and Queries

Query adjacency, build a bounding volume hierarchy, and sample fields at any point.

https://github.com/NVIDIA/physicsnemo/blob/main/examples/minimal/mesh/tutorial_6_neighbors_spatial.ipynb
7. Quality and Repair

Measure cell quality, find defects, and repair them.

https://github.com/NVIDIA/physicsnemo/blob/main/examples/minimal/mesh/tutorial_7_quality_repair.ipynb
8. Simulation Domains

Hold an interior and its named boundaries as one DomainMesh.

https://github.com/NVIDIA/physicsnemo/blob/main/examples/minimal/mesh/tutorial_8_domain_mesh.ipynb
9. ML Pipelines

Batch meshes, compute features, and train a graph model.

https://github.com/NVIDIA/physicsnemo/blob/main/examples/minimal/mesh/tutorial_9_ml_integration.ipynb

Citation#

If PhysicsNeMo-Mesh supports your research, cite PhysicsNeMo-Mesh: GPU-Native Meshes and Simulation Cases for Physics AI:

@misc{sharpe2026physicsnemomeshgpunativemeshessimulation,
      title={PhysicsNeMo-Mesh: GPU-Native Meshes and Simulation Cases for Physics AI},
      author={Peter D. Sharpe and Corey Adams and Negin Sobhani and Sanjay Choudhry},
      year={2026},
      eprint={2610.39072},
      archivePrefix={arXiv},
      primaryClass={physics.comp-ph},
      url={https://arxiv.org/abs/2610.39072},
}