Skip to main content

Module gpu_fluid_euler

Module gpu_fluid_euler 

Source
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§

FluidSimStats
Statistics for a fluid simulation step.
GpuEulerGrid
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.