Skip to main content

bulk_modulus

Function bulk_modulus 

Source
pub fn bulk_modulus(pressure_change: f64, volume_strain: f64) -> Option<f64>
Expand description

Computes bulk modulus from pressure change and volumetric strain.

Formula: K = -ΔP / (ΔV / V).

Returns None when volume_strain is zero, when the result is negative, or when any input or result is not finite.