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

Two ways of interpolating F(V) to F(P) #21

Open
singularitti opened this issue Dec 29, 2020 · 0 comments
Open

Two ways of interpolating F(V) to F(P) #21

singularitti opened this issue Dec 29, 2020 · 0 comments

Comments

@singularitti
Copy link
Member

singularitti commented Dec 29, 2020

For any function F(V), want to change the variable from V to P, you can either:

  1. Interpolate F(V) to a finer grid, use an EOS to find the inversed volumes of pressures, evaluate F on these volumes;
  2. Use an EOS to calculate the pressures corresponding to the input volumes, interpolate F(P), and find the properties on output volumes.
    I used to think of the first way, but the second way was what we used in qha (except the fact that we used P from finite difference of E). The first way require we know the inverse function V(P), which, for most EOSs, are not known. So we are going to use the 2nd way.
singularitti added a commit that referenced this issue Dec 30, 2020
as mentioned in #21 (comment)
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