fugacity_test_1

despasito.thermodynamics.calc.fugacity_test_1

fugacity_test_1(P, T, xi, rho, Eos, step_size=1e-05, **kwargs)[source]

A consistency test where d(ln φ)/dP = (Z-1)/P.

Parameters:
  • P (float) – [Pa] Pressure of the system

  • T (float) – [K] Temperature of the system

  • xi (numpy.ndarray) – Liquid mole fraction of each component, sum(xi) should equal 1.0

  • rho (float) – [mol/\(m^3\)] Molar density

  • Eos (obj) – An instance of the defined EOS class to be used in thermodynamic computations.

  • step_size (float, Optional, default=1e-5) – Step size in central difference method

Returns:

Residual – Residual from thermodynamic identity

Return type:

float