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