Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binary mixture #31

Open
achremos opened this issue Jan 18, 2024 · 3 comments
Open

binary mixture #31

achremos opened this issue Jan 18, 2024 · 3 comments

Comments

@achremos
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants