Giter VIP home page Giter VIP logo

gerg2008's Issues

Doubt with residual parameters calculation

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:
image

In your code, around line 555:

for(let k = 1; k <= kpol[i]; k++){
          ndt = x[i] * delp[doik[i][k]] * taup[i][k];
          ndtd = ndt * doik[i][k];
          ar[0][1] = ar[0][1] + ndtd;

For what I understood, taup[i][k] equals to n_{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!

Licence

Hi Joaquin,
There's no licence file in this repository, so I'm not sure whether you're open to this being used by others or if the code is just here for reference.
Would you mind adding a licence file? The convention is simply to put your licence terms in a file named LICENCE.md in the root of your repository. (I'd love to see it with an MIT licence, but anything describing permitted use would be helpful)
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.