pub fn compute_pressure_force_gpu(
buf: &GpuSphBuffer,
pressures: &[f32],
params: &GpuSphParams,
) -> Vec<[f32; 3]>Expand description
Compute pressure forces on all particles.
Uses the symmetric SPH momentum equation:
f_i = -Σ_j m_j (P_i/ρ_i² + P_j/ρ_j²) ∇W