Loading...
Searching...
No Matches
thermophysicalFunction Class Referenceabstract

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

#include <thermophysicalFunction.H>

Inheritance diagram for thermophysicalFunction:

Public Member Functions

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

Static Public Member Functions

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

Friends

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

Detailed Description

Abstract base class for thermo-physical functions.

Definition at line 47 of file thermophysicalFunction.H.

Constructor & Destructor Documentation

◆ thermophysicalFunction()

thermophysicalFunction ( )
inline

Construct null.

Definition at line 84 of file thermophysicalFunction.H.

Referenced by declareRunTimeSelectionTable(), declareRunTimeSelectionTable(), and operator<<.

Here is the caller graph for this function:

◆ ~thermophysicalFunction()

virtual ~thermophysicalFunction ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "thermophysicalFunction" )

Runtime type information.

◆ declareRunTimeSelectionTable() [1/2]

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

References thermophysicalFunction().

Here is the call graph for this function:

◆ declareRunTimeSelectionTable() [2/2]

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

References dict, and thermophysicalFunction().

Here is the call graph for this function:

◆ New() [1/2]

Return pointer to new thermophysicalFunction created from input.

Definition at line 37 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 62 of file thermophysicalFunction.C.

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

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, NSRDSfunc14, NSRDSfunc1, NSRDSfunc2, NSRDSfunc3, NSRDSfunc4, NSRDSfunc5, NSRDSfunc6, and NSRDSfunc7.

References p, and Foam::T().

Referenced by operator<<.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeData()

virtual void writeData ( Ostream & os) const
pure virtual

Write the function coefficients.

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

References os().

Here is the call graph for this function:

◆ operator<<

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

Definition at line 119 of file thermophysicalFunction.H.

References f(), os(), and thermophysicalFunction().


The documentation for this class was generated from the following files:
  • src/thermophysicalModels/thermophysicalProperties/thermophysicalFunctions/thermophysicalFunction/thermophysicalFunction.H
  • src/thermophysicalModels/thermophysicalProperties/thermophysicalFunctions/thermophysicalFunction/thermophysicalFunction.C