Function if97::px

source ·
pub fn px(p: f64, x: f64, o_id: i32) -> f64
Expand description

px(p,x,o_id) - the propertry of o_id (thermodynamic)

Examples

  use if97::*;

  let p: f64 = 0.1;
  let x: f64 = 0.0; // x= 0.0 saturation water ,x=1.0 saturation steam
  let t: f64 = px(p, x, OT);
  let h: f64 = px(p, x, OH);
  println!("px: p={p:.6} x={x:.6} t={t:.6} h={h:.6}");