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


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< thermophysicalFunction > | New (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... | |
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.
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.
| 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 | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 83 of file integratedNonUniformTableThermophysicalFunction.C.
References integratedNonUniformTable::intfdT().

| TypeName | ( | "integratedNonUniformTable" | ) |
Runtime type information.
| 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().


| 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().


|
virtual |
Write the function coefficients.
Implements thermophysicalFunction.
Definition at line 129 of file integratedNonUniformTableThermophysicalFunction.C.
References nonUniformTable::write().
Referenced by integratedNonUniformTable::intfByTdT().

