calc_vapor_fugacity_coefficient

despasito.thermodynamics.calc.calc_vapor_fugacity_coefficient

calc_vapor_fugacity_coefficient(P, T, yi, Eos, density_opts={}, **kwargs)[source]

Computes vapor fugacity coefficient under system conditions.

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

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

  • yi (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:

  • phiv (float) – Fugacity coefficient of vapor at system pressure

  • rhov (float) – [mol/\(m^3\)] Density of vapor 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, 4 means ideal gas is assumed