Santiso-Group / despasito

DESPASITO: Determining Equilibrium State and Parametrization Application for SAFT, Intended for Thermodynamic Output
https://despasito.readthedocs.io
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

binary mixture #31

Closed achremos closed 1 week ago

achremos commented 10 months ago

Bubble + dew point routines use the composition as input and estimate the pressure. But this needs to be expanded.

What is missing (I think) is a routine that uses the xi or yi as initial guesses and provides resulting values of the xi and yi at specified conditions of T and P.

jaclark5 commented 10 months ago

You'll find that there is already a flash calculation type, although as a warning this type of thermodynamic calculation is notoriously unstable to converge.

achremos commented 10 months ago

Will initial guesses for compositions improve the stability & convergence of the calculation by searching at regions of interest?

In SW bubble point requires an initial guess.

jaclark5 commented 10 months ago

Yes it will! Make sure you're using a gradient decent optimization method in that case so that the initial guess is used. You can also apply a tighter pressure range to search.