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

error while running example 3_pure_fluid_calculations in GC_SAFT--Gamma-Mie example #11

Open
funkvps opened this issue May 26, 2023 · 3 comments

Comments

@funkvps
Copy link

funkvps commented May 26, 2023

error like below

C:\Users\cools\AppData\Roaming\Python\Python311\site-packages\sgtpy\sgt\sgtpure.py:65: RuntimeWarning: invalid value encountered in sqrt
tenint = np.nan_to_num(np.sqrt(2*dOm))

@gustavochm
Copy link
Owner

Hey funkvps,

Could you provide the script to reproduce that error?

Gustavo

@funkvps
Copy link
Author

funkvps commented May 28, 2023

Hello, I'm just running the example from sgtpy. As attached.
3_pure_fluid_calculations.zip

@gustavochm
Copy link
Owner

I see, I just checked the example and that warning is due to the Grand Potential Difference being negative. This usually happens when the liquid and vapour phases do not have exactly the same chemical potential (due to tolerance errors). The warning doesn't affect the result due to the np.nan_to_num function.

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