All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
table Class Reference

Tabulated property function that linearly interpolates between the table values. More...

Inheritance diagram for table:
Collaboration diagram for table:

Public Member Functions

 TypeName ("table")
 Runtime type information. More...
 
 table (const dictionary &dict)
 Construct from dictionary. More...
 
scalar f (scalar p, scalar T) const
 Evaluate 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...
 

Detailed Description

Tabulated property function that linearly interpolates between the table values.

Usage
Property Description
Tlow Lower temperature limit of the table
Thigh Upper temperature limit of the table
values Property values, assumed uniformly distributed

Example for the density of water between 280 and 350K

    rho
    {
        type    table;

        Tlow    280;
        Thigh   350;

        values
        (
            999.87
            991.53
            973.7
        );
    }

Definition at line 86 of file tableThermophysicalFunction.H.

Constructor & Destructor Documentation

◆ table()

table ( const dictionary dict)

Construct from dictionary.

Definition at line 43 of file tableThermophysicalFunction.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and List< T >::size().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "table"  )

Runtime type information.

◆ f()

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

Evaluate the function and return the result.

Implements thermophysicalFunction.

Definition at line 67 of file tableThermophysicalFunction.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, lambda(), Foam::nl, and List< T >::size().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write the function coefficients.

Implements thermophysicalFunction.

Definition at line 88 of file tableThermophysicalFunction.C.

References Foam::writeEntry().

Here is the call graph for this function:

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