Skip to main content

wcsph_pressure

Function wcsph_pressure 

Source
pub fn wcsph_pressure(rho: f64, rho0: f64, b: f64, gamma: f64) -> f64
Expand description

Equation of state for WCSPH: p = B * ((rho/rho0)^gamma - 1).

Typical values: gamma = 7, B = rho0 * c_s^2 / gamma.