pub fn tv<R>(t: f64, v: f64, o_id_reg: R) -> f64where
R: Into<o_id_region_args>,Expand description
tv(t,v,o_id) - the propertry of o_id(thermodynamic,transport,etc)
tv(t,v,(o_id,reg)) - the propertry of o_id in the region of reg(thermodynamic,transport,etc)
Examples
use if97::*;
let t:f64=300.0-273.15;
let v:f64= 0.100215168e-2;
let p=tv(t,v,OP);
//set the regiion
let s=tv(t,v,(OS,1));
println!("t={p:.6} v={v:.6} p={p:.6} s={s:.6}");