pub fn enthalpy(sa: f64, ct: f64, p: f64) -> Result<f64>
Expand description
Specific enthalpy of seawater (75-term polynomial approximation)
Arguments
sa
: Absolute Salinity [g kg-1]ct
: Conservative Temperature (ITS-90) [deg C]p
: sea pressure [dbar] (i.e. absolute pressure - 10.1325 dbar)
use gsw::volume::enthalpy;
let h = enthalpy(32.0, 10.0, 100.0).unwrap();
assert!((h - 40894.546501415374).abs() <= f64::EPSILON);