Tabulated property function that linearly interpolates between the uniformTable values. More...
Public Member Functions | |
TypeName ("uniformTable") | |
Runtime type information. More... | |
UniformTable (const word &name, const dictionary &dict) | |
Construct from name and dictionary. More... | |
const RectangularMatrix< Type > & | values () const |
Return the non-uniform table of values. More... | |
virtual Type | value (scalar x, scalar y) const |
Evaluate the function and return the result. More... | |
Type | dfdp (scalar p, scalar T) const |
Evaluate the derivative of the function w.r.t. p. More... | |
Type | dfdT (scalar p, scalar T) const |
Evaluate the derivative of the function w.r.t. T. More... | |
void | write (Ostream &os) const |
Write the function coefficients. More... | |
Public Member Functions inherited from FieldFunction2< Type, UniformTable< Type > > | |
FieldFunction2 (const word &name) | |
Construct from name. More... | |
virtual tmp< Function2< Type > > | clone () const |
Construct and return a clone. More... | |
virtual | ~FieldFunction2 () |
Destructor. More... | |
virtual tmp< Field< Type > > | value (const scalarField &x, const scalarField &y) const |
Return value as a function of two scalar fields. More... | |
Public Member Functions inherited from Function2< Type > | |
TypeName ("Function2") declareRunTimeSelectionTable(autoPtr | |
Runtime type information. More... | |
Function2 (const word &name) | |
Construct from name. More... | |
Function2 (const Function2< Type > &f1) | |
Copy constructor. More... | |
virtual | ~Function2 () |
Destructor. More... | |
const word & | name () const |
Return the name of the entry. More... | |
void | operator= (const Function2< Type > &) |
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 Function2< Type > | |
typedef Type | returnType |
Static Public Member Functions inherited from Function2< Type > | |
static autoPtr< Function2< Type > > | New (const word &name, const dictionary &dict) |
Selector. More... | |
Public Attributes inherited from Function2< Type > | |
Function2 | |
dictionary | |
const word & | name |
const word const dictionary & | dict |
const word const dictionary | name |
const word const dictionary | dict |
Protected Member Functions inherited from refCount | |
refCount () | |
Construct null initialising count to 0. More... | |
Protected Attributes inherited from Function2< Type > | |
const word | name_ |
Name of entry. More... | |
Tabulated property function that linearly interpolates between the uniformTable values.
Property | Description |
---|---|
Tlow | Lower temperature limit of the uniformTable |
Thigh | Upper temperature limit of the uniformTable |
values | Property values, assumed uniformly distributed |
Example for the density of water between 280 and 350K
rho { type uniformTable; pLow 1000; pHigh 1e6; Tlow 280; Thigh 350; values ( 999.87 991.53 973.7 ); }
Definition at line 92 of file UniformTable2.H.
UniformTable | ( | const word & | name, |
const dictionary & | dict | ||
) |
Construct from name and dictionary.
Definition at line 32 of file UniformTable2.C.
TypeName | ( | "uniformTable" | ) |
Runtime type information.
|
inline |
Return the non-uniform table of values.
Definition at line 142 of file UniformTable2.H.
Referenced by rhoTabulated< Specie >::write().
|
virtual |
Evaluate the function and return the result.
Implements FieldFunction2< Type, UniformTable< Type > >.
Definition at line 93 of file UniformTable2.C.
Referenced by tabulatedTransport< Thermo >::kappa(), tabulatedTransport< Thermo >::mu(), UniformTable< scalar >::UniformTable(), and UniformTable< scalar >::values().
Type dfdp | ( | scalar | p, |
scalar | T | ||
) | const |
Evaluate the derivative of the function w.r.t. p.
Definition at line 130 of file UniformTable2.C.
Referenced by UniformTable< scalar >::value(), and UniformTable< scalar >::values().
Type dfdT | ( | scalar | p, |
scalar | T | ||
) | const |
Evaluate the derivative of the function w.r.t. T.
Definition at line 159 of file UniformTable2.C.
Referenced by UniformTable< scalar >::dfdp(), and UniformTable< scalar >::values().
|
virtual |
Write the function coefficients.
Implements Function2< Type >.
Definition at line 186 of file UniformTable2.C.
Referenced by UniformTable< scalar >::values().