Constant property function. More...
Public Member Functions | |
TypeName ("constant") | |
Runtime type information. More... | |
constant (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... | |
Constant property function.
Example for the density of water between 280 and 350K
rho { type constant; value 999.87; }
Definition at line 62 of file constantThermophysicalFunction.H.
constant | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 43 of file constantThermophysicalFunction.C.
References constant::f().
TypeName | ( | "constant" | ) |
Runtime type information.
|
virtual |
Evaluate the function and return the result.
Implements thermophysicalFunction.
Definition at line 52 of file constantThermophysicalFunction.C.
Referenced by constant::constant().
|
virtual |
Write the function coefficients.
Implements thermophysicalFunction.
Definition at line 61 of file constantThermophysicalFunction.C.
References Foam::writeEntry().