integratedNonUniformTable Class Reference

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

Inheritance diagram for integratedNonUniformTable:
[legend]
Collaboration diagram for integratedNonUniformTable:
[legend]

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, using "values" for the lookup. 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 writeData (Ostream &os) const
 Write the function coefficients. 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
\integratedNonUniformTable Property | Description values | List of (temperature property) value pairs \endintegratedNonUniformTable

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 75 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 55 of file integratedNonUniformTableThermophysicalFunction.C.

References forAll, Foam::constant::standard::Pstd, Foam::constant::standard::Tstd, and Foam::HashTableOps::values().

Here is the call graph for this function:

◆ integratedNonUniformTable() [2/2]

integratedNonUniformTable ( const dictionary dict)
explicit

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

Definition at line 86 of file integratedNonUniformTableThermophysicalFunction.C.

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 97 of file integratedNonUniformTableThermophysicalFunction.C.

References lambda(), p, T, and Foam::HashTableOps::values().

Here is the call 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 115 of file integratedNonUniformTableThermophysicalFunction.C.

References Foam::log(), p, T, and Foam::HashTableOps::values().

Here is the call graph for this function:

◆ writeData()

void writeData ( Ostream os) const

Write the function coefficients.

Definition at line 132 of file integratedNonUniformTableThermophysicalFunction.C.

References writeData().

Here is the call graph for this function:

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