Function extenstive_dn

Source
pub fn extenstive_dn(
    d_x_nacl: Result<f64, String>,
    prop_value: Result<f64, String>,
    x_nacl: f64,
) -> Result<[f64; 2], String>
Expand description

Mole number derivatives for extenstive property for a total number of moles of 1

Mole numbers derivatives for extensive properties in CAPE-OPEN are defined as the derivatives of the total property (the molar property multiplied by the number of moles) w.r.t. the mole numbers, for a total number of moles of 1.

§Arguments:

  • d_x_nacl - NaCl mole fraction derivative, or an error
  • prop_value - density, mol/m3
  • x_nacl - the mole fraction of NaCl

§Returns

The mole number derivatives with respect to both compounds, or an error.