feos.PhaseEquilibrium.ph_flash¶
- static PhaseEquilibrium.ph_flash(eos, pressure, molar_enthalpy, feed, initial_temperature, max_iter=None, tol=None, verbosity=None)¶
Create a liquid and vapor state in equilibrium for given pressure, enthalpy and feed composition.
Can also be used to calculate liquid liquid phase separation.
- Parameters:
eos (EquationOfState) – The equation of state.
pressure (SINumber) – The system pressure.
molar_enthalpy (SINumber) – The molar enthalpy of the system.
feed (float | SINumber | numpy.ndarray[float] | SIArray1 | list[float]) – Feed composition.
initial_temperature (SINumber) – The system temperature.
max_iter (int, optional) – The maximum number of iterations.
tol (float, optional) – The solution tolerance.
verbosity (Verbosity, optional) – The verbosity.
- Return type:
- Raises:
RuntimeError – When pressure iteration fails or no phase equilibrium is found.