feos.dft.State.tp_flash¶
- State.tp_flash(initial_state=None, max_iter=None, tol=None, verbosity=None, non_volatile_components=None)¶
Calculates a two phase Tp-flash with the state as feed.
- Parameters:
initial_state (PhaseEquilibrium, optional) – A phase equilibrium used as initial guess. Can speed up convergence.
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.