Files
CoolProp/Web/develop/backends.rst
Ian Bell d57a4d4bed Work on the docs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-12 23:41:00 +02:00

32 lines
1.1 KiB
ReStructuredText

.. _backends:
********************
Backends in CoolProp
********************
AbstractState
-------------
The :cpapi:`AbstractState` defines an interface between CoolProp and the rest of the world. The public methods like :cpapi:`AbstractState::rhomolar` are meant to be called by other code, while the protected functions like :cpapi:`AbstractState::calc_rhomolar` are meant to be implemented by the other backends.
Derived Backends
----------------
The backends in CoolProp provide the implementation of the protocol defined by the abstract base class. There are a few primary backends:
* :cpapi:`HelmholtzEOSMixtureBackend` : This backend is the backend that provides properties using the CoolProp code.
* :cpapi:`IncompressibleBackend` : This backend provided the thermophysical properties for incompressible pure fluids, incompressible mixtures, and brines
* :cpapi:`REFPROPMixtureBackend` : This backend provides a clean interface between CoolProp and REFPROP
Example Backend
---------------
Code
----
.. literalinclude:: snippets/ExampleBackend.cxx
:language: c++
Output
------
.. literalinclude:: snippets/ExampleBackend.cxx.output