integratedNonUniformTable Class Reference

Non-uniform tabulated property function that linearly interpolates between the values. More...

Inheritance diagram for integratedNonUniformTable:
Collaboration diagram for integratedNonUniformTable:

Public Member Functions

 TypeName ("integratedNonUniformTable")
 Runtime type information. More...
 
 integratedNonUniformTable (const word &name, const dictionary &dict)
 Construct from entry name and dictionary. More...
 
 integratedNonUniformTable (const dictionary &dict)
 Construct from dictionary. More...
 
scalar intfdT (scalar p, scalar T) const
 Integrate the function and return the result. More...
 
scalar intfByTdT (scalar p, scalar T) const
 Integrate the function divided by T and return the result. More...
 
void write (Ostream &os) const
 Write the function coefficients. More...
 
- Public Member Functions inherited from nonUniformTable
 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. 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 write (Ostream &os) const
 Write the function coefficients. More...
 
- Public Member Functions inherited from thermophysicalFunction
 TypeName ("thermophysicalFunction")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, thermophysicalFunction, dictionary,(const dictionary &dict),(dict))
 
 thermophysicalFunction ()
 Construct null. More...
 
virtual ~thermophysicalFunction ()
 Destructor. More...
 
virtual void write (Ostream &os, const word &name) const
 Write the function coefficients within the property sub-dictionary. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from thermophysicalFunction
static autoPtr< thermophysicalFunctionNew (const dictionary &dict, const word &name)
 Return pointer to new thermophysicalFunction created from dict. More...
 
- Protected Member Functions inherited from nonUniformTable
label index (scalar p, scalar T) const
 Return the lower index of the interval in the table. More...
 

Detailed Description

Non-uniform tabulated property function that linearly interpolates between the values.

To speed-up the search of the non-uniform table a uniform jump-table is created on construction which is used for fast indirect addressing into the table.

Usage
Property | Description values | List of (temperature property) value pairs

Example for the density of water between 280 and 350K

rho
{
    type    integratedNonUniformTable;

    values
    (
        (280 999.87)
        (300 995.1)
        (350 973.7)
    );
}

Definition at line 73 of file integratedNonUniformTableThermophysicalFunction.H.

Constructor & Destructor Documentation

◆ integratedNonUniformTable() [1/2]

integratedNonUniformTable ( const word name,
const dictionary dict 
)

Construct from entry name and dictionary.

Definition at line 52 of file integratedNonUniformTableThermophysicalFunction.C.

References forAll, Foam::constant::standard::Pstd, and Foam::constant::standard::Tstd.

◆ integratedNonUniformTable() [2/2]

Construct from dictionary.

Definition at line 83 of file integratedNonUniformTableThermophysicalFunction.C.

References integratedNonUniformTable::intfdT().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "integratedNonUniformTable"  )

Runtime type information.

◆ intfdT()

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

Integrate the function and return the result.

Definition at line 94 of file integratedNonUniformTableThermophysicalFunction.C.

References integratedNonUniformTable::intfByTdT(), and lambda().

Referenced by integratedNonUniformTable::integratedNonUniformTable().

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

◆ intfByTdT()

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

Integrate the function divided by T and return the result.

Definition at line 112 of file integratedNonUniformTableThermophysicalFunction.C.

References Foam::log(), and integratedNonUniformTable::write().

Referenced by integratedNonUniformTable::intfdT().

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

◆ write()

void write ( Ostream os) const
virtual

Write the function coefficients.

Implements thermophysicalFunction.

Definition at line 129 of file integratedNonUniformTableThermophysicalFunction.C.

References nonUniformTable::write().

Referenced by integratedNonUniformTable::intfByTdT().

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

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