Research software
MESO
Grid and particle methods for fluid simulation
MESO implements fluid solvers in C++ and CUDA. The code includes an Eulerian grid solver, a smoothed particle hydrodynamics (SPH) solver and a particle-in-cell solver that transfers velocity between particles and a grid.
I led the team that started MESO in 2022.
Research supported by MESO
Journal of Computational Physics · 2025
Triangle Edge Cuts
Compact, volume-conserving interface tracking on unstructured triangle meshes.
An interface tracking method with triangle edge cuts
NeurIPS · 2024
NeuralFluid
Fluidic system design and control through differentiable simulation.
NeuralFluid: Neural Fluidic System Design and Control with Differentiable Simulation
Thin-Walled Structures · 2024
Thin-shell Optimisation
Structural topology optimisation using a reduced-order elastic shell model.
Nonlinear topology optimization on thin shells using a reduced-order elastic shell model
Numerical methods
In the Eulerian solver, MESO uses discrete exterior calculus to compute velocity divergence on grid cells and pressure gradients on grid faces. It solves the pressure Poisson equation with conjugate gradients, using a multigrid V-cycle as the preconditioner.
Numerical performance
The repository reports a multigrid-preconditioned conjugate-gradient (MGPCG) Poisson solve benchmark on an NVIDIA RTX 4080. At a convergence tolerance of 10−5, the reported Dirichlet case takes 112 ms at 256³ and 757 ms at 512³. These measurements concern the linear solver used in pressure projection.
View the reported solver timings and iteration counts
| Boundary conditions | 128³ | 256³ | 512³ |
|---|---|---|---|
| Dirichlet | 25 ms / 5 iterations | 112 ms / 5 iterations | 757 ms / 5 iterations |
| Neumann | 41 ms / 9 iterations | 244 ms / 13 iterations | 2411 ms / 18 iterations |
| Mixed | 71 ms / 17 iterations | 451 ms / 24 iterations | 4750 ms / 35 iterations |
Source: MESO README. Reported timings for the benchmark configuration above.
Contributors
The repository credits Mengdi Wang, Yuchen Sun, Yitong Deng and Fan Feng as contributors.
Explore the code
The public repository contains the framework, examples and test scripts. Its getting-started guide introduces the C++/CUDA toolchain, xmake build workflow and ParaView visualisation.