feos.eos.PhaseEquilibrium.pure¶
- static PhaseEquilibrium.pure(eos, temperature_or_pressure, initial_state=None, max_iter=None, tol=None, verbosity=None)¶
Create a liquid and vapor state in equilibrium for a pure substance.
- Parameters:
eos (EquationOfState) – The equation of state.
temperature_or_pressure (SINumber) – The system temperature or pressure.
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.