Go to the documentation of this file.
35 #ifndef thermophysicalFunction_H
36 #define thermophysicalFunction_H
104 virtual scalar
f(scalar
p, scalar
T)
const = 0;
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Abstract base class for thermo-physical functions.
virtual void writeData(Ostream &os) const =0
Write the function coefficients.
declareRunTimeSelectionTable(autoPtr, thermophysicalFunction, Istream,(Istream &is),(is))
thermophysicalFunction()
Construct null.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual ~thermophysicalFunction()=default
Destructor.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual scalar f(scalar p, scalar T) const =0
Evaluate the function and return the result.
Macros to ease declaration of run-time selection tables.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
friend Ostream & operator<<(Ostream &os, const thermophysicalFunction &f)
TypeName("thermophysicalFunction")
Runtime type information.
static autoPtr< thermophysicalFunction > New(Istream &is)
Return pointer to new thermophysicalFunction created from input.