bubble_pressure
despasito.thermodynamics.calculation_types.bubble_pressure
- bubble_pressure(Eos, **sys_dict)[source]
Calculates pressure and vapor compositions given liquid mole fractions and temperature.
- 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 to composition in xilist. If one set is given, this temperature will be used for all compositions.
Pguess (list/float, Optional) – [Pa] Guess the system pressure at the bubble point. If a list of length one is provided, that value is used for all temperature-composition sets given.
Pmin (list, Optional) – [Pa] Set the upper bound for the minimum system pressure at the bubble point. If not defined, the default in
calc_bubble_pressure()is used. If a list of length one is provided, that value is used for all temperature-composition sets given.Pmax (list, Optional) – [Pa] Set the upper bound for the maximum system pressure at the bubble point. If not defined, the default in
calc_bubble_pressure()is used. If a list of length one is provided, that value is used for all temperature-composition sets given.MultiprocessingObject (obj, Optional) – Multiprocessing object,
MultiprocessingJobkwargs (Optional) – Keyword arguments for
calc_saturation_properties()andcalc_bubble_pressure()
- Returns:
output_dict – Output dictionary containing given and calculated arrays
T: [K] Temperature array generated from given instructions
xi: Given array of liquid compositions
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 - P: [Pa] Pressure values evaluated for given conditions - yi: Vapor mole fraction evaluated for given conditions - 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 - obj: List of objective values
- Return type:
dict