thermophysicalFunction Class Referenceabstract

Abstract base class for thermo-physical functions. More...

Inheritance diagram for thermophysicalFunction:
[legend]

Public Member Functions

 TypeName ("thermophysicalFunction")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, thermophysicalFunction, Istream,(Istream &is),(is))
 
 declareRunTimeSelectionTable (autoPtr, thermophysicalFunction, dictionary,(const dictionary &dict),(dict))
 
 thermophysicalFunction ()
 Construct null. More...
 
virtual ~thermophysicalFunction ()=default
 Destructor. More...
 
virtual scalar f (scalar p, scalar T) const =0
 Evaluate the function and return the result. More...
 
virtual void writeData (Ostream &os) const =0
 Write the function coefficients. More...
 

Static Public Member Functions

static autoPtr< thermophysicalFunctionNew (Istream &is)
 Return pointer to new thermophysicalFunction created from input. More...
 
static autoPtr< thermophysicalFunctionNew (const dictionary &dict)
 Return pointer to new thermophysicalFunction created from dict. More...
 

Friends

Ostreamoperator<< (Ostream &os, const thermophysicalFunction &f)
 

Detailed Description

Abstract base class for thermo-physical functions.

Definition at line 53 of file thermophysicalFunction.H.

Constructor & Destructor Documentation

◆ thermophysicalFunction()

Construct null.

Definition at line 86 of file thermophysicalFunction.H.

◆ ~thermophysicalFunction()

virtual ~thermophysicalFunction ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "thermophysicalFunction"  )

Runtime type information.

◆ declareRunTimeSelectionTable() [1/2]

declareRunTimeSelectionTable ( autoPtr  ,
thermophysicalFunction  ,
Istream  ,
(Istream &is)  ,
(is)   
)

◆ declareRunTimeSelectionTable() [2/2]

declareRunTimeSelectionTable ( autoPtr  ,
thermophysicalFunction  ,
dictionary  ,
(const dictionary &dict ,
(dict  
)

◆ New() [1/2]

Return pointer to new thermophysicalFunction created from input.

Definition at line 44 of file thermophysicalFunction.C.

References Foam::abort(), DebugInFunction, Foam::endl(), Foam::FatalError, and FatalErrorInLookup.

Here is the call graph for this function:

◆ New() [2/2]

Foam::autoPtr< Foam::thermophysicalFunction > New ( const dictionary dict)
static

Return pointer to new thermophysicalFunction created from dict.

Definition at line 69 of file thermophysicalFunction.C.

References Foam::abort(), DebugInFunction, dict, Foam::endl(), Foam::FatalIOError, FatalIOErrorInLookup, and dictionary::get().

Here is the call graph for this function:

◆ f()

virtual scalar f ( scalar  p,
scalar  T 
) const
pure virtual

Evaluate the function and return the result.

Implemented in APIdiffCoefFunc, NSRDSfunc0, NSRDSfunc1, NSRDSfunc14, NSRDSfunc2, NSRDSfunc3, NSRDSfunc4, NSRDSfunc5, NSRDSfunc6, and NSRDSfunc7.

◆ writeData()

virtual void writeData ( Ostream os) const
pure virtual

Write the function coefficients.

Implemented in APIdiffCoefFunc, NSRDSfunc0, NSRDSfunc1, NSRDSfunc14, NSRDSfunc2, NSRDSfunc3, NSRDSfunc4, NSRDSfunc5, NSRDSfunc6, and NSRDSfunc7.

Friends And Related Function Documentation

◆ operator<<

Ostream & operator<< ( Ostream os,
const thermophysicalFunction f 
)
friend

Definition at line 111 of file thermophysicalFunction.H.


The documentation for this class was generated from the following files: