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

GERG-2008 flash calculation #19

Open
qingqi-code opened this issue Oct 9, 2021 · 0 comments
Open

GERG-2008 flash calculation #19

qingqi-code opened this issue Oct 9, 2021 · 0 comments

Comments

@qingqi-code
Copy link

Hi, I am working to use GERG-2008 to calculate flash model. I have a question about the density calculation.
The code

            if T and P:
                rhoo = 2.
                rho = fsolve(lambda rho: self._solve(rho, T)["P"]-P*1e6, rhoo)

seems need manually guess a density. However, if the guess is too far away from the root, the code can not run successfully. So I am wondering when it comes to phase envelope calculation, how can I manually change the guess figure? Can you modify this part? Thank you so much!

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

1 participant