nonUniformTable Class Reference
Inheritance diagram for nonUniformTable:
[legend]
Collaboration diagram for nonUniformTable:
[legend]

Public Member Functions

 TypeName ("nonUniformTable")
 Runtime type information. More...
 
 nonUniformTable (const word &name, const dictionary &dict)
 Construct from entry name and dictionary. More...
 
 nonUniformTable (const dictionary &dict)
 Construct from dictionary, using "values" for the lookup. More...
 
const List< Tuple2< scalar, scalar > > & values () const
 Return the non-uniform table of values. More...
 
scalar f (scalar p, scalar T) const
 Evaluate the function and return the result. More...
 
scalar dfdT (scalar p, scalar T) const
 Evaluate the derivative of the function and return the result. More...
 
void writeData (Ostream &os) const
 Write the function coefficients. More...
 
- Public Member Functions inherited from thermophysicalFunction
 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...
 

Protected Member Functions

label index (scalar p, scalar T) const
 

Additional Inherited Members

- Static Public Member Functions inherited from thermophysicalFunction
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...
 

Detailed Description

Definition at line 76 of file nonUniformTableThermophysicalFunction.H.

Constructor & Destructor Documentation

◆ nonUniformTable() [1/2]

nonUniformTable ( const word name,
const dictionary dict 
)

Construct from entry name and dictionary.

Definition at line 50 of file nonUniformTableThermophysicalFunction.C.

References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::FatalIOError, FatalIOErrorInFunction, forAll, Foam::min(), Foam::nl, and T.

Here is the call graph for this function:

◆ nonUniformTable() [2/2]

nonUniformTable ( const dictionary dict)
explicit

Construct from dictionary, using "values" for the lookup.

Definition at line 113 of file nonUniformTableThermophysicalFunction.C.

Member Function Documentation

◆ index()

Foam::label index ( scalar  p,
scalar  T 
) const
inlineprotected

Return the lower index of the interval in the table corresponding to the given temperature.

Checks the temperature range

Definition at line 34 of file nonUniformTableThermophysicalFunctionI.H.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and T.

Here is the call graph for this function:

◆ TypeName()

TypeName ( "nonUniformTable"  )

Runtime type information.

◆ values()

const List<Tuple2<scalar, scalar> >& values ( ) const
inline

Return the non-uniform table of values.

Definition at line 124 of file nonUniformTableThermophysicalFunction.H.

◆ f()

Foam::scalar f ( scalar  p,
scalar  T 
) const
virtual

Evaluate the function and return the result.

Implements thermophysicalFunction.

Definition at line 124 of file nonUniformTableThermophysicalFunction.C.

References lambda(), p, and T.

Here is the call graph for this function:

◆ dfdT()

Foam::scalar dfdT ( scalar  p,
scalar  T 
) const

Evaluate the derivative of the function and return the result.

Definition at line 140 of file nonUniformTableThermophysicalFunction.C.

References p, and T.

◆ writeData()

void writeData ( Ostream os) const
virtual

Write the function coefficients.

Implements thermophysicalFunction.

Definition at line 153 of file nonUniformTableThermophysicalFunction.C.

References Ostream::writeEntry().

Here is the call graph for this function:

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