vapor_properties
despasito.thermodynamics.calculation_types.vapor_properties
- vapor_properties(Eos, **sys_dict)[source]
Computes the vapor density and fugacity coefficient given a temperature, pressure, and vapor mole fractions.
Input and system information are assessed first. An output file is generated with P, T, yi, \(\rho_{v}\), and \(\phi_{v}\).
- Parameters:
Eos (obj) – An instance of the defined EOS class to be used in thermodynamic computations.
yilist (: list) – List of component mole fraction sets, where
sum(yi)=1.0for each set. Each set of components corresponds to a temperature in Tlist, or if one set is given, this composition will be used for all temperatures.Tlist (list, Optional, default=298.15) – [K] Temperature of the system corresponding Plist. If one value is given, this temperature will be used for all temperatures.
Plist (list, Optional, default=101325.0) – [Pa] Pressure of the system corresponding to Tlist. If one value is given, this pressure will be used for all temperatures.
MultiprocessingObject (obj, Optional) – Multiprocessing object,
MultiprocessingJobkwargs (Optional) – Keyword arguments for
calc_vapor_fugacity_coefficient()
- Returns:
output_dict – Output dictionary containing given and calculated values
T: [K] Temperature array generated from given instructions
P: [Pa] Pressure array generated from given instructions
yi: Composition generated from given instructions
rhov: [mol/\(m^3\)] Evaluated vapor density
phiv: Evaluated vapor fugacity coefficient
flagv: Phase flag for vapor given temperature and calculated pressure, a
value of 0 is vapor, 1 is liquid, 2 mean a critical fluid, 3 means that neither is true, 4 means we should assume ideal gas
- Return type:
dict