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

Virial EoS #11

Open
thorade opened this issue Jan 27, 2013 · 2 comments
Open

Virial EoS #11

thorade opened this issue Jan 27, 2013 · 2 comments

Comments

@thorade
Copy link
Owner

thorade commented Jan 27, 2013

For the gas region (not liquid!!), a virial equation could be used to calculate start values.
See http://en.wikipedia.org/wiki/Compressibility_factor for an introduction

Add four new properties:
Compressibility factor Z
Second virial coefficient B
Third virial coefficient C
Fourth virial coefficient D

Usually, the input properties are temperature and volume.
Kabelac 1991 shows how to solve for volume, when temperature and pressure are given:
http://dx.doi.org/10.1016/0140-7007(91)90006-3 (in the appendix)

@thorade
Copy link
Owner Author

thorade commented Jan 28, 2013

The virial coefficients are calculated at lim d->0
http://books.google.de/books?id=dd410GGw8wUC&pg=PA40
Therefore, f_rd, f_rdd and f_rddd should check for delta<Modelica.Constants.small.

Also see this discussion:
https://trac.modelica.org/Modelica/ticket/605
modelica/ModelicaStandardLibrary#605

thorade added a commit that referenced this issue Jan 28, 2013
thorade added a commit that referenced this issue Jan 28, 2013
thorade added a commit that referenced this issue Jul 16, 2013
@thorade
Copy link
Owner Author

thorade commented Jul 27, 2013

RefProp 9.1 has two subroutines (in PROP_SUB.FOR):
subroutine VIRB uses rho=1e-8 for B and C and rho=1e-4 for D,
subroutine VIRBCD uses rho=0

thorade added a commit that referenced this issue Jul 30, 2013
thorade added a commit that referenced this issue Jul 30, 2013
thorade referenced this issue Nov 27, 2021
to avoid that it runs into numerical noise failures in CI
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