Tabulated property function that linearly interpolates between the table values. More...
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< thermophysicalFunction > | New (const dictionary &dict, const word &name) |
Return pointer to new thermophysicalFunction created from dict. More... | |
Tabulated property function that linearly interpolates between the table values.
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.
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().
TypeName | ( | "table" | ) |
Runtime type information.
|
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().
|
virtual |
Write the function coefficients.
Implements thermophysicalFunction.
Definition at line 88 of file tableThermophysicalFunction.C.
References Foam::writeEntry().