calc_saturation_properties

despasito.thermodynamics.calc.calc_saturation_properties

calc_saturation_properties(T, xi, Eos, density_opts={}, tol=1e-06, Pconverged=1, **kwargs)[source]

Computes the saturated pressure, gas and liquid densities for a single component system.

Parameters:
  • 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()

  • tol (float, Optional, default=1e-6) – Tolerance to accept pressure value

  • Pconverged (float, Optional, default=1.0) – If the pressure is negative (under tension), we search from a value just above vacuum

Returns:

  • Psat (float) – [Pa] Saturation pressure given system information

  • rhov (float) – [mol/\(m^3\)] Density of vapor at saturation pressure

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