Function if97::th

source ·
pub fn th<R>(t: f64, h: f64, o_id_reg: R) -> f64where
    R: Into<o_id_region_args>,
Expand description

th(t,h,o_id) - the propertry of o_id(thermodynamic,transport,etc)
th(t,h,(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 h:f64=0.115331273e+3;
 let p=th(t,h,OP);
 // set the region
 let s=th(t,h,(OS,1));
 println!("t={p:.6} h={h:.6} p={p:.6} s={s:.6}");