Closed translunar closed 1 year ago
Interestingly, it's also not working for the example given in the docs:
(Pdb) tol = Chemical('toluene')
(Pdb) tol.mug
(Pdb) p tol.kg
0.009393243373039812
Hi,
The legacy Chemical interface tries to provide the best properties for a chemical. In this case as nitrogen is a well studied library, it is trying to use CoolProp, a high accuracy third party library; since you are missing it no properties are returned for the properties that default to the CoolProp method. If you install it pip install CoolProp
, those calculations will work.
Alternatively the new interface allows much greater levels of customization and robustness.
Sincerely, Caleb
Perhaps this is a documentation issue? The README doesn't mention CoolProp as a requirement for this library, and I spent several hours yesterday trying to understand how to do the same thing with the newer interface as is relatively straightforward with Chemical.
Thank you!
Hi translunar,
I have now finished a long-term project to remove CoolProp as a default method for any purely temperature-dependent properties. Instead the same quality data is provided through a series of high-accuracy polynomial fits. For pressure-dependent properties (viscosity, thermal conductivity, volume) CoolProp is sometimes still the default but there will always be a backup method used if CoolProp is not available. The situation you ran into should no longer occur as of thermo==0.2.25.
Sincerely, Caleb
Newb here, so maybe I'm misunderstanding something, but with nitrogen gas, I'm having trouble getting certain properties:
Is there a workaround or something else I should be doing?