mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-03 10:24:58 -05:00
fed41d45185164be2fb3ee96792692d33d3ff948
``` C++
std::vector<std::string> names; names.push_back("Methane"); names.push_back("H2S");
shared_ptr<CoolProp::HelmholtzEOSMixtureBackend> mix(new CoolProp::HelmholtzEOSMixtureBackend(names));
mix->specify_phase(iphase_gas);
std::vector<CoolPropDbl> z(2,0);
for (double x0 = 0.01; x0 < 0.5; x0 += 0.01)
{
z[0] = x0; z[1] = 1-x0;
mix->set_mole_fractions(z);
std::vector<CoolProp::SimpleState> critpts = mix->find_all_critical_points();
int rr = 4;
}
```
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, currently a post-doc at the University of Liege, in Liege, Belgium.
* CoolProp has flexible licensing terms: Commercial - ok! Academic? - ok! |ghlicense|
* For Python, get the latest release via ``pip install coolprop`` |pypidownloads| |pypiversion|
* ... other binaries are available from `SourceForge <http://sourceforge.net/projects/coolprop/files>`_ |sfdownloads| |ghversion|
* There is also a bleeding edge nightly build of the `development version <http://sourceforge.net/projects/coolprop/files/CoolProp/nightly>`_ .
* The documentation is available for the `latest release <http://www.coolprop.org>`_ and the `development version <http://www.coolprop.org/dev>`_
* Please, if there are any issues of any kind, file an issue `here <https://github.com/CoolProp/CoolProp/issues>`_
* ... you might also find answers in our `FAQ <https://github.com/CoolProp/CoolProp/blob/master/FAQ.md>`_
* Accelerate development of things you really need implemented by posting at `Bountysource <https://www.bountysource.com/teams/coolprop>`_
..
Downloads and other stats
-------------------------
=============== ==============================
Binary release: |sfdownloads| |ghversion|
PyPI release: |pypidownloads| |pypiversion|
=============== ==============================
.. |ghversion| image:: https://img.shields.io/github/release/CoolProp/CoolProp.svg?label=SF-binaries
:alt: CoolProp version tag
.. |sfdownloads| image:: https://img.shields.io/sourceforge/dm/CoolProp.svg?label=SF-downloads
:target: http://sourceforge.net/projects/coolprop/files
:alt: sourceforge downloads
.. |pypidownloads| image:: https://img.shields.io/pypi/dm/CoolProp.svg?label=PyPI-downloads
:target: http://pypi.python.org/pypi/CoolProp/
:alt: PyPI downloads
.. |pypiversion| image:: https://img.shields.io/pypi/v/coolprop.svg?label=PyPI-binaries
:target: http://pypi.python.org/pypi/CoolProp/
:alt: PyPI version
.. |ghlicense| image:: https://img.shields.io/github/license/CoolProp/CoolProp.svg
:target: https://github.com/CoolProp/CoolProp/blob/master/LICENSE
:alt: license
..
image:: https://www.bountysource.com/badge/team?team_id=14160&style=raised
.. |bounties| image:: https://img.shields.io/bountysource/team/coolprop/activity.svg
:alt: Post a bounty at https://www.bountysource.com/teams/coolprop
:target: https://www.bountysource.com/teams/coolprop?utm_source=CoolProp&utm_medium=shield&utm_campaign=raised
..
image:: https://badges.gitter.im/Join%20Chat.svg
:alt: Join the chat at https://gitter.im/CoolProp/CoolProp
:target: https://gitter.im/CoolProp/CoolProp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
Languages
C++
59%
Python
24.5%
CMake
2.5%
TeX
2.3%
Cython
2.3%
Other
9%