Function unconstrained_dx

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

Unconstrained mole fraction derivatives for any property

The water mole fraction is ignored in the calculation; the salinity is determined from the NaCl mole fraction only (assuming that the mole fractions are normalized). So the derivative w.r.t. water mole fraction is identically zero.

§Arguments

  • d_x_nacl - NaCl mole fraction derivative, or an error

§Returns

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