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