dew_pressure

despasito.thermodynamics.calculation_types.dew_pressure

dew_pressure(Eos, **sys_dict)[source]

Calculate pressure and liquid composition given vapor mole fractions, yi, and temperature.

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.0 for 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 yilist. If one set is given, this pressure will be used for all compositions.

  • Pguess (list/float, Optional) – [Pa] Guess the system pressure at the dew 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 dew point. If not defined, the default in calc_dew_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 dew point. If not defined, the default in calc_dew_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, MultiprocessingJob

  • kwargs (Optional) – Keyword arguments for calc_saturation_properties() and calc_dew_pressure()

Returns:

output_dict – Output dictionary containing given and calculated values

  • T: [K] Temperature array generated from given instructions

  • yi: Given array of vapor compositions

  • 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 - P: [Pa] Pressure values evaluated for given conditions - xi: Liquid mole fraction evaluated for given conditions - 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 - obj: List of objective values

Return type:

dict