pub fn compute_pressure_gpu(
densities: &[f32],
params: &GpuSphParams,
) -> Vec<f32>Expand description
Compute per-particle pressures using the Tait equation of state.
P = k * (ρ/ρ₀)^γ - k where ρ₀ = 1000 kg/m³.
pub fn compute_pressure_gpu(
densities: &[f32],
params: &GpuSphParams,
) -> Vec<f32>Compute per-particle pressures using the Tait equation of state.
P = k * (ρ/ρ₀)^γ - k where ρ₀ = 1000 kg/m³.