1

Previous: Type of energy Up: Structure and compilation Next: Transport model

This is an automatically generated documentation by LaTeX2HTML utility. In case of any issue, please, contact us at info@cfdsupport.com.

Thermo

Irregardless of choice of thermodynamic potential, user is not presented with the potential itself, but with temperature. This is what Class thermo (declared in namespace species, and thus referred to as species::thermo in the source code) is for. It connects two previous classes and handles conversion of energy variable (given by the base class, in our case sensibleInternalEnergy) to temperature and vice versa. In the figure crossref 3 you can see the inheritance structure. Note, that thermo is derived from template class, which is instantiated from class thermo itself. This technique is called curiously recurring template pattern (CRTP). This enables static polymorphism (i.e. use of member functions of the derived class in the base class).Source code for class thermo can be found found in

$FOAM_SRC/thermophysicalModels/specie/thermo/thermo

in subdirectories named after respective thermophysical models, eg.

thermo.C
thermo.H
thermoI.H

CFDsupport programming training thermo inheritance diagram

Figure: species::thermo inheritance diagram