flash
despasito.thermodynamics.calculation_types.flash
- flash(Eos, **sys_dict)[source]
Flash calculation of vapor and liquid mole fractions. Only binary systems are currently supported
Input and system information are assessed first. An output file is generated with T, yi, and corresponding P and xi.
- Parameters:
Eos (obj) – An instance of the defined EOS class to be used in thermodynamic computations.
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_flash()
- 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: 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 - 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