pub fn pt<R>(p: f64, t: f64, o_id_reg: R) -> f64where
R: Into<o_id_region_args>,Expand description
pt(p,t,o_id) - the propertry of o_id (thermodynamic,transport,etc)
pt(p,t,(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 t:f64= 300.0-273.15;
let h=pt(p,t,OH);
// set the region
let s=pt(p,t,(OS,1));
println!("p={p:.6} t={t:.6} h={h:.6} s={s:.6}");