calc_liquid_fugacity_coefficient

despasito.thermodynamics.calc.calc_liquid_fugacity_coefficient

calc_liquid_fugacity_coefficient(P, T, xi, Eos, density_opts={}, **kwargs)[source]

Computes liquid fugacity coefficient under system conditions.

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

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

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

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

  • density_opts (dict, Optional, default={}) – Dictionary of options used in calculating pressure vs. specific volume in pressure_vs_volume_arrays()

Returns:

  • phil (float) – Fugacity coefficient of liquid at system pressure

  • rhol (float) – [mol/\(m^3\)] Density of liquid at system pressure

  • flag (int) – Flag identifying the fluid type. A value of 0 is vapor, 1 is liquid, 2 mean a critical fluid, 3 means that neither is true.