liquid_properties
despasito.thermodynamics.calculation_types.liquid_properties
- liquid_properties(Eos, **sys_dict)[source]
Computes the liquid density and fugacity coefficient given a temperature, pressure, and liquid mole fractions.
Input and system information are assessed first. An output file is generated with P, T, xi, \(\rho_{l}\), and \(\phi_{l}\).
- Parameters:
Eos (obj) – An instance of the defined EOS class to be used in thermodynamic computations.
xilist (list) – List of component mole fraction sets, where
sum(xi)=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_liquid_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
xi: Composition generated from given instructions
rhol: [mol/\(m^3\)] Evaluated liquid density
phil: Evaluated liquid fugacity coefficient
flagl: Phase flag for liquid 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