triangulax: Differentiable Simulations with Triangular Meshes across Soft Matter Physics
Abstract
Many physical and biological systems -foams, membranes, elastic shells, or tissue sheets- can be mathematically described as 2D surfaces. These surfaces can host complex dynamics, like reaction-diffusion systems, and undergo drastic deformations. Here, we present triangulax, an open-source Python library for simulations and geometry processing that discretizes surfaces using triangular meshes available at https://github.com/nikolas-claussen/triangulax. It combines two features. First, discrete differential geometry provides coordinate-free discretization, which allows simulating strongly deforming surfaces. Second, the library is built on the machine-learning framework JAX, so mesh-based energies and entire simulations can be differentiated automatically (including simulations with stochastic forces or topological modifications). This simplifies multi-physics simulations by computing forces automatically and allows fitting model parameters to experimental data or design objectives. We implement an algorithm to preserve mesh quality in strongly deforming surfaces and apply it to a model of membrane mechanics coupled to an on-membrane concentration field. We validate our approach against exact solutions and existing software, and demonstrate triangulax across a range of problems, including membrane mechanics, vertex models, and inverse design of a shape-morphing elastomer sheet.
Related
- Generalizable data-driven turbulence closure modeling on unstructured grids with differentiable physics
- JZ-FMM: GPU-native differentiable N-body simulations with the Fast Multipole Method
- PhysicsNeMo-Mesh: GPU-Native Meshes and Simulation Cases for Physics AI
- Benchmarking Optimizers to Solve Inverse Problems with Differentiable Physics Simulators
- Interplay of disorder and spin liquid physics in the triangular-lattice antiferromagnet YbZn 2 GaO 5
BibTeX
@misc{silliman2026triangulax,
title = {{triangulax: Differentiable Simulations with Triangular Meshes across Soft Matter Physics}},
author = {Samuel Silliman and Qiwei Yu and Nikolas Claussen},
howpublished = {arXiv},
year = {2026},
month = oct,
doi = {10.48550/arxiv.2610.02566},
eprint = {2610.02566},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2610.02566},
note = {CC BY 4.0},
}
RIS
TY - UNPB
TI - triangulax: Differentiable Simulations with Triangular Meshes across Soft Matter Physics
AU - Samuel Silliman
AU - Qiwei Yu
AU - Nikolas Claussen
PY - 2026
DA - 2026/10/01
PB - arXiv
DO - 10.48550/arxiv.2610.02566
UR - https://arxiv.org/abs/2610.02566
AB - Many physical and biological systems -foams, membranes, elastic shells, or tissue sheets- can be mathematically described as 2D surfaces. These surfaces can host complex dynamics, like reaction-diffusion systems, and undergo drastic deformations. Here, we present triangulax, an open-source Python library for simulations and geometry processing that discretizes surfaces using triangular meshes available at https://github.com/nikolas-claussen/triangulax. It combines two features. First, discrete differential geometry provides coordinate-free discretization, which allows simulating strongly deforming surfaces. Second, the library is built on the machine-learning framework JAX, so mesh-based energies and entire simulations can be differentiated automatically (including simulations with stochastic forces or topological modifications). This simplifies multi-physics simulations by computing forces automatically and allows fitting model parameters to experimental data or design objectives. We implement an algorithm to preserve mesh quality in strongly deforming surfaces and apply it to a model of membrane mechanics coupled to an on-membrane concentration field. We validate our approach against exact solutions and existing software, and demonstrate triangulax across a range of problems, including membrane mechanics, vertex models, and inverse design of a shape-morphing elastomer sheet.
ER -