pub fn ps<R>(p: f64, s: f64, o_id_reg: R) -> f64where
R: Into<o_id_region_args>,Expand description
ps(p,s,o_id) - the propertry of o_id (thermodynamic,transport,etc)
ps(p,s,(o_id,reg)) - the propertry of o_id in the region of reg(thermodynamic,transport,etc)
Examples
use if97::*;
let p:f64= 3.0;
let s:f64= 0.392294792;
let t=ps(p,s,OT);
// set the region
let h=ps(p,s,(OH,1));
println!("p={p:.6} s={s:.6} t={t:.6} h={h:6}");