hydrostatic_pressure_kernel

Function hydrostatic_pressure_kernel 

Source
pub fn hydrostatic_pressure_kernel(
    p0: &Pressure,
    density: &Density,
    depth: &Length,
) -> Result<Pressure, PhysicsError>
Expand description

Calculates hydrostatic pressure: $P = P_0 + \rho g h$.

§Arguments

  • p0 - Surface pressure / known reference pressure.
  • density - Fluid density ($\rho$).
  • depth - Depth below the surface or reference point ($h$).

§Returns

  • Ok(Pressure) - Total pressure at depth.