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
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:
Explains manifold and spatial dimensions, the five fields of Mesh, and why every cell is a simplex.
Covers data on points, cells, and the whole mesh, how each rank transforms, and FieldSchema.
Create, transform, differentiate, query, edit, and save meshes, with notes on which method to pick.
Shows how one DomainMesh holds an interior, its named boundaries, and global metadata.
Covers preprocessing at training time, batching, features, augmentation, and field declarations.
The edge graph of any mesh is a Mesh[1, n]. Build graphs, edge features, and message passing on plain tensors.
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:
Build a mesh, attach fields, draw it, and differentiate through its geometry.
Read VTK and STL files, triangulate polygons, and save to .pmsh and Zarr.
Load example meshes, fill a boundary, and mesh an implicit shape.
Transform, subdivide, slice, and merge meshes, and extract edge graphs.
Take gradients, divergences, and Laplacians, and build a physics loss.
Query adjacency, build a bounding volume hierarchy, and sample fields at any point.
Measure cell quality, find defects, and repair them.
Hold an interior and its named boundaries as one DomainMesh.
Batch meshes, compute features, and train a graph model.
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},
}