Expand description
GPU Eulerian fluid simulation on a staggered MAC grid (CPU mock backend).
Implements a staggered Marker-and-Cell (MAC) grid fluid solver with: semi-Lagrangian advection, gravity forcing, Jacobi pressure projection, solid boundary conditions, vorticity confinement, and diagnostic utilities.
Structs§
- Fluid
SimStats - Statistics for a fluid simulation step.
- GpuEuler
Grid - A 3-D staggered MAC grid for Eulerian fluid simulation.
Functions§
- marker_
and_ cell_ init - Initialise fluid velocity in a rectangular region of the grid.