-
Notifications
You must be signed in to change notification settings - Fork 14
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
[SAFT-Gamma-Mie] Errors with flash calculation #17
Comments
Dear YouHyin, Thank you very much for your question! The fact you are testing
See some solutions with the above (I'm preventing the ASS step because is jumping between solutions)
I'll update a new version that checks if the density solver converged correctly shortly. Edit: I just updated a new version to pypi. For now, I only uploaded a precompiled version for OSX; soon, I'll upload a compiled version for Windows. Regards, |
First of all, I'm really sorry for the late response. Thank you so much for your response and updating the package so quickly. I'll refer to your answer and proceed with the flash calculation. Thanks to you, it was very helpful. Best whises! |
Hello Gustavo!
Your updates to sgtpy have been a great help in my research. Thank you very much. The flash calculations are converging much better than before, but I have a problem.
When I run this code, the liquid and vapor mole fractions come out as nan. I think that during the flash calculation process, there might be an formula in the form of 1/x, and x is becoming 0, leading to nan values. I attempted to debug and change this expression to the form 1/(x+10^-8) to prevent it from diverging to infinity, but I couldn't find the exact expression.
Can you give me any advice on how to change the formula in the flash calculation process so that the nan value does not come out?
Thank as always for your help.
Best wish!
The text was updated successfully, but these errors were encountered: