Function density

Source
pub fn density(
    temperature: f64,
    pressure: f64,
    x_nacl: f64,
) -> Result<f64, String>
Expand description

Density

Density, mol/m3, is calculated from:

Kishor G. Nayar, Mostafa H. Sharqawy, Leonardo D. Banchik, John H. Lienhard V, Desalination, doi 10.1016/j.desal.2016.02.024

It is valid in the range of [273.15-453.15] K, [0-12e6] Pa and x[NaCl]=[0,0.05159128949] mol/mol

#Arguments

  • temperature - temperature, K
  • pressure - pressure, Pa
  • x_nacl - mole fraction of NaCl, mol/mol

ยงReturns

Density, mol/m3, or an error