Expand description
GPU SPH pressure solver (CPU mock backend).
Implements the Smoothed Particle Hydrodynamics pressure and viscosity force computation pipeline using Poly6, Spiky, and Viscosity kernels. The GPU dispatch is mocked by plain Rust loops for portability.
Structs§
- GpuSph
Pressure Solver - GPU SPH pressure solver holding all per-particle state.
- GpuSph
Stats - Statistics computed from the pressure solver state.
Functions§
- kernel_
poly6 - Poly6 SPH kernel: W_poly6(r, h).
- kernel_
spiky_ grad - Gradient of the Spiky kernel: ∇W_spiky(r_vec, r, h).
- kernel_
viscosity_ laplacian - Viscosity kernel Laplacian: ∇²W_visc(r, h).
- pcisph_
gpu_ correction - PCISPH pressure correction loop.
- wcsph_
tait_ eos - WCSPH Tait equation of state.