Function entropy_d_pressure

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

Derivative of entropy w.r.t. pressure

Entropy, J/mol/K, 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-393.15] K, [0-12e6] Pa and x[NaCl]=[0,0.04033898281] mol/mol

#Arguments

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

ยงReturns

Derivative of entropy w.r.t. pressure, J/mol/K/Pa, or an error