Thermal conductivity library routines
Files
Input
Reading an thermal conductivity of unknown type
- i.e. reading to an object of class (tcond *) -
a word is read first, and compared against the name of each thermal conductivity class.
If a match is found, an object of that class is instantiated.
The data for that object is then read (see below for manuals on specific
classes).
In other words:
tcond_type
tcond_parameters
Software interface
tcond.h defines a `state' class
and an abstract `tcond' class.
Generic thermal conductivity (`thermal_conductivity') class
Specific thermal conductivity types inherit from `thermal_conductivity'.
As `tcond' is abstract, members can't be instantiated
- if you don't know what type an thermal conductivity will be
until run-time, only a pointer to an thermal conductivity
can be used in the program.
The `thermal_conductivity' class includes methods for calculating
thermodynamic quantities. All take a state
as argument. The methods are
- conductivity(const double rho, const double t) const
- operator()(const double rho, const double t) const
- which just calls `conductivity'.
Specific thermal conductivity types