Ian Bell 4ad372b0b2 fix(flash): return rhomolar_critical from PT_flash at the critical point (#2738) (#2750)
At the critical point dP/drho -> 0, so solver_rho_Tp is ill-conditioned and
a tight pressure residual does not imply a tight density. PropsSI('Dmass',
'T', Tcrit, 'P', Pcrit, 'CO2') returned 466.207 kg/m^3 instead of the true
467.600 kg/m^3. Add a short-circuit at the top of PT_flash (mirroring the
existing guard in PQ_flash) that detects exact-critical inputs within 1e-10
relative on both T and p and returns the tabulated critical density.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 15:46:50 -04:00
2018-03-06 07:51:58 -07:00
2023-06-19 13:42:09 -04:00
2018-04-17 09:46:37 +02:00
2025-10-11 16:32:58 -04:00
2018-08-14 23:06:49 -06:00

Welcome to CoolProp

CoolProp is a thermophysical property database and wrappers for a selection of programming environments. It offers similar functionality to REFPROP, but CoolProp is open-source and free. It was originally developed by Ian Bell, at the time a post-doc at the University of Liege, in Liege, Belgium.

  • CoolProp has flexible licensing terms: Commercial - ok! Academic? - ok! license

  • For Python, get the latest release via pip install coolprop PyPI downloads PyPI version

  • ... other binaries are available from SourceForge sourceforge downloads CoolProp version tag

  • There is also a bleeding edge nightly build of the development version.

  • The documentation is available for the latest release and the development version

  • For any kind of question regarding CoolProp and its usage, you can ask the CoolProp Discussions

  • ... you might also find answers in our FAQ

  • If you found a bug or have an issue that requires the developers to become active, please file an issue in our issue tracker

  • Contributions to this project are welcomed and encouraged! If you wish to contribute bug fixes, patches, or new features, wrappers, or material properties, please submit a Pull Request with your code.

  • If you are new to Git and Github, please see the CoolProp Wiki for guidance on becoming a contributor to the project.

  • Have a look at the coverity stats Coverity Scan Build Status

Description
No description provided
Readme MIT Cite this repository 58 MiB
Languages
C++ 59.2%
Python 24%
CMake 3.2%
TeX 2.4%
Cython 2.2%
Other 8.7%