Function extenstive_reciprocal_dn

Source
pub fn extenstive_reciprocal_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 molar volume 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.

This routine gives the mole number derivatives of volume, given density.

§Arguments:

  • d_x_nacl - NaCl mole fraction derivative of density, 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.