feos-org / feos

FeOs - A Framework for Equations of State and Classical Density Functional Theory
Other
110 stars 22 forks source link

Revive PhaseEquilibrium::new_npt in the public interface #164

Closed prehner closed 1 year ago

prehner commented 1 year ago

Currently there is no way to create a PhaseEquilibrium object without calling any of the solvers. Some solvers (e.g., the tp flash), however, use a PhaseEquilibrium as initialization. Therefore the new_npt function can be used to create custom initial guesses. Currently the docstring informs the users that the result is not a phase equilibrium, but I would not be surprised if someone uses the function with the assumption that it is a (much faster and better converging) tp flash.