feos.eos.PhaseEquilibrium.new_npt¶
- static PhaseEquilibrium.new_npt(eos, temperature, pressure, vapor_moles, liquid_moles)¶
Creates a new PhaseEquilibrium that contains two states at the specified temperature, pressure and moles.
The constructor can be used in custom phase equilibrium solvers or, e.g., to generate initial guesses for an actual VLE solver. In general, the two states generated are NOT in an equilibrium.
- Parameters:
eos (EquationOfState) – The equation of state.
temperature (SINumber) – The system temperature.
pressure (SINumber) – The system pressure.
vapor_moles (SIArray1) – Amount of substance of the vapor phase.
liquid_moles (SIArray1) – Amount of substance of the liquid phase.
- Return type: