-
Notifications
You must be signed in to change notification settings - Fork 1
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
Doubt with residual parameters calculation #1
Comments
It's possible that you have the same mistake i had. Let me know if i'm right.
PS: |
Thanks for the quick response! |
When you run CalculateDensity. This routine is inside the loop of the Newton Raphson method.
|
I have a doubt on how you calculate the residual Helmholtz energy, specifically the first derivative with the reduced density.
According to the GERG-2008 paper the polinomial term should be:
In your code, around line 555:
For what I understood,
taup[i][k]
equals ton_{oi,k} * tau ^ t_{oi,k}
. So each term of the derivative is calculated like:delta^d_{oi,j} * n_{oi,k} * tau ^ t_{oi,k} * d_{oi,j}
When the term of the paper is:
delta^(d_{oi,j}-1) * n_{oi,k} * tau ^ t_{oi,k} * d_{oi,j}
I'm sure your code work, since I've tested a bit of it and reached good results, could you tell me what I'm reading wrongly?
(I'm trying to make my own implementation on Python and Fortran and not getting the expected results)
Thank you for your time!
The text was updated successfully, but these errors were encountered: