-
Notifications
You must be signed in to change notification settings - Fork 52
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
default models? #111
Comments
Hi John, There are no default models in Clapeyron perse. We provide generalised equations of state which, in theory, can be used for any fluid. That being said, depending on the conditions, I'd imagine something like Peng-Robinson would be sufficient? If you're dealing with cryogenics, then perhaps you would need something more-advanced such as QCPR or SAFT-VRQ Mie (which are more-computational expensive). I believe most of the species you've listed are available in those equations. To use Clapeyron to obtain the molar densities, all you would need to do is: julia> using Clapeyron
julia> model = PR(["helium"])
PR{BasicIdeal, PRAlpha, NoTranslation, vdW1fRule} with 1 component:
"helium"
Contains parameters: a, b, Tc, Pc, Mw
julia> molar_density(model,1e5,298.15,[1.])
40.33399603269461 The above can be done for any of the equations of state I've mentioned. Just in case I've given you the wrong advice, what are the conditions you are looking at and for what application? |
As someone who has developed CoolProp and REFPROP, you definitely want to be using the multiparameter EOS, at the very least to check these other EOS against them. The multiparameter EOS are the gold standard, even if other models might yield reasonable values for some properties, sometimes. Clapeyron implements the multiparameter EOS for a few species (water, propane, etc.). Clapeyron could be extended to add these EOS, as I did in teqp (https://github.com/usnistgov/teqp), which is spiritually very similar to Clapeyron. |
Currently I am struggling with the mass density of liquid hydrogen. I spent some time to find by trial and error a method that seems to work, I have the impression, that
|
For hydrogen, QCPR should be better empirically than VRQ-Mie. after all, the QCPR paper takes the corrected quantum potentials present in VRQ Mie and adapt those to match the critical point (Tc(hydrogen) = 33.19 K). from the QCPR Paper:
CoolProp uses this: https://doi.org/10.1063/1.3160306, so probably is more accurate. We have an older model of Hydrogen, the one used in the
That is #131. it is fixed on master (and to be released probably today). Extending the plot results in this. There is also the speed on which the density is calculated. a QCPR model, because is a cubic, has a very fast density calculation in comparison with every other model:
(haven't measured |
Thank you so much for your great work!!! |
Hi, we currently use CoolProp to get molar densities for noble gases and some molecules (not mixtures). E.g. helium, argon, hydrogen, nitrogen etc. We need a reasonable span of pressure and temperature, but nothing more complicated. We are considering using Clapeyron instead of CoolProp, but it is very hard for an ignorant user like me to understand which model to use for each fluid. CoolProp (and REFPROP previously) just had a default model (or perhaps only one, I never checked). Do you have a table of which model is best for each basic fluid?
The text was updated successfully, but these errors were encountered: