constant Class Reference

Constant property function. More...

Inheritance diagram for constant:
Collaboration diagram for constant:

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< thermophysicalFunctionNew (const dictionary &dict, const word &name)
 Return pointer to new thermophysicalFunction created from dict. More...
 

Detailed Description

Constant property function.

Usage
Property | Description value | Constant property value

Example for the density of water between 280 and 350K

rho
{
    type    constant;
    value   999.87;
}

Definition at line 62 of file constantThermophysicalFunction.H.

Constructor & Destructor Documentation

◆ constant()

constant ( const dictionary dict)

Construct from dictionary.

Definition at line 43 of file constantThermophysicalFunction.C.

References constant::f().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "constant"  )

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 52 of file constantThermophysicalFunction.C.

Referenced by constant::constant().

Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write the function coefficients.

Implements thermophysicalFunction.

Definition at line 61 of file constantThermophysicalFunction.C.

References Foam::writeEntry().

Here is the call graph for this function:

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