gridfoam is a differentiable finite-volume solver for incompressible flow on Fluxel hierarchical grids. It provides SIMPLE, PISO, and PIMPLE algorithms, immersed boundaries, and PyTorch gradients through linear solves.
Start with the CPU cavity quickstart. See configuration for YAML settings and running cases for bundled examples.
examples/contains runnable flow, motion, and optimization cases.assets/contains reusable Jinja configuration templates.experiments/contains numerical and OpenFOAM comparisons.tests/profile/contains CPU/CUDA performance tools.
For development, see the setup guide
and data contracts.
Build the HTML documentation with make document; the result is in docs/build/.