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...
 
scalar intfdT (scalar T) const
 Integrate the function and return the result. More...
 
scalar intfByTdT (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< scalar >
 TypeName ("nonUniformTable")
 Runtime type information. More...
 
 NonUniformTable (const word &name, const dictionary &dict)
 Construct from name and dictionary. More...
 
 NonUniformTable (const NonUniformTable< scalar > &nut)
 Copy constructor. More...
 
const List< Tuple2< scalar, scalar > > & values () const
 Return the non-uniform table of values. More...
 
virtual scalar value (scalar x) const
 Evaluate the function and return the result. More...
 
virtual scalar integral (const scalar x1, const scalar x2) const
 Integrate between two scalar values. More...
 
scalar dfdT (scalar T) const
 Evaluate the derivative of the function and return the result. More...
 
void write (Ostream &os) const
 Write the function coefficients. More...
 
void operator= (const NonUniformTable< scalar > &)
 Assignment. More...
 
- Public Member Functions inherited from FieldFunction1< scalar, NonUniformTable< scalar > >
 FieldFunction1 (const word &name)
 Construct from name. More...
 
virtual tmp< Function1< scalar > > clone () const
 Construct and return a clone. More...
 
virtual ~FieldFunction1 ()
 Destructor. More...
 
virtual tmp< Field< scalar > > value (const scalarField &x) const
 Return value as a function of one scalar field. More...
 
virtual tmp< Field< scalar > > integral (const scalarField &x1, const scalarField &x2) const
 Integrate between two scalar fields. More...
 
- Public Member Functions inherited from Function1< scalar >
 Function1 (const word &name)
 Construct from name. More...
 
 Function1 (const Function1< scalar > &f1)
 Copy constructor. More...
 
const wordname () const
 Return the name of the entry. More...
 
 TypeName ("Function1") declareRunTimeSelectionTable(autoPtr
 Runtime type information. More...
 
virtual ~Function1 ()
 Destructor. More...
 
void operator= (const Function1< scalar > &)
 Assignment. More...
 
- Public Member Functions inherited from refCount
int count () const
 Return the current reference count. More...
 
bool unique () const
 Return true if the reference count is zero. More...
 
void operator++ ()
 Increment the reference count. More...
 
void operator++ (int)
 Increment the reference count. More...
 
void operator-- ()
 Decrement the reference count. More...
 
void operator-- (int)
 Decrement the reference count. More...
 

Additional Inherited Members

- Public Types inherited from Function1< scalar >
typedef scalar returnType
 
- Static Public Member Functions inherited from Function1< scalar >
static autoPtr< Function1< scalar > > New (const word &name, const dictionary &dict)
 Selector. More...
 
- Public Attributes inherited from Function1< scalar >
 Function1
 
 dictionary
 
const wordname
 
const word const dictionary name
 
const word const dictionarydict
 
const word const dictionary dict
 
- Protected Member Functions inherited from NonUniformTable< scalar >
label index (scalar x) const
 Return the lower index of the interval in the table. More...
 
- Protected Member Functions inherited from refCount
 refCount ()
 Construct null initialising count to 0. More...
 
- Protected Attributes inherited from Function1< scalar >
const word name_
 Name of entry. 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 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 79 of file integratedNonUniformTable1.H.

Constructor & Destructor Documentation

◆ integratedNonUniformTable()

integratedNonUniformTable ( const word name,
const dictionary dict 
)

Construct from entry name and dictionary.

Definition at line 44 of file integratedNonUniformTable1.C.

References forAll, integratedNonUniformTable::intfdT(), and Foam::constant::standard::Tstd.

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "integratedNonUniformTable"  )

Runtime type information.

◆ intfdT()

Foam::scalar intfdT ( scalar  T) const

Integrate the function and return the result.

Definition at line 76 of file integratedNonUniformTable1.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  T) const

Integrate the function divided by T and return the result.

Definition at line 93 of file integratedNonUniformTable1.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 Function1< scalar >.

Definition at line 109 of file integratedNonUniformTable1.C.

References NonUniformTable< Type >::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: