Base class for run-time selectable internal and patch field initialisation evaluation and update with dimension checking. More...

Public Member Functions | |
| TypeName ("DimensionedFieldFunction") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, DimensionedFieldFunction, dictionary,(const dictionary &dict, DimensionedFieldType &field),(dict, field)) | |
| DimensionedFieldFunction (const dictionary &dict, DimensionedFieldType &field) | |
| Construct with dictionary to initialise given field. More... | |
| DimensionedFieldFunction (const DimensionedFieldFunction &dff, DimensionedFieldType &field) | |
| Construct a copy for the given field. More... | |
| DimensionedFieldFunction (const DimensionedFieldFunction< DimensionedFieldType > &)=delete | |
| Disallow default bitwise copy construction. More... | |
| virtual autoPtr< DimensionedFieldFunction< DimensionedFieldType > > | clone (DimensionedFieldType &field) const =0 |
| Construct and return a clone for the specified field. More... | |
| virtual autoPtr< DimensionedFieldFunction< DimensionedFieldType > > | clone () const |
| Construct and return a clone for the specified field. More... | |
| virtual | ~DimensionedFieldFunction () |
| Destructor. More... | |
| virtual void | evaluate ()=0 |
| Evaluate the function and set the field. More... | |
| virtual bool | update () |
| Update the field if the function has changed and return true. More... | |
| virtual void | reset () |
| Reset the field size. More... | |
| virtual void | write (Ostream &os) const =0 |
| Write data to dictionary stream. More... | |
| void | operator= (const DimensionedFieldFunction< DimensionedFieldType > &)=delete |
| Disallow default bitwise assignment. More... | |
Static Public Member Functions | |
| static autoPtr< DimensionedFieldFunction< DimensionedFieldType > > | New (const dictionary &dict, DimensionedFieldType &field) |
| Select null constructed. More... | |
Protected Attributes | |
| DimensionedFieldType & | field_ |
| Reference to the field the function applies to. More... | |
Base class for run-time selectable internal and patch field initialisation evaluation and update with dimension checking.
Definition at line 51 of file DimensionedFieldFunction.H.
| DimensionedFieldFunction | ( | const dictionary & | dict, |
| DimensionedFieldType & | field | ||
| ) |
Construct with dictionary to initialise given field.
Definition at line 32 of file DimensionedFieldFunction.C.
| DimensionedFieldFunction | ( | const DimensionedFieldFunction< DimensionedFieldType > & | dff, |
| DimensionedFieldType & | field | ||
| ) |
Construct a copy for the given field.
Definition at line 43 of file DimensionedFieldFunction.C.
|
delete |
Disallow default bitwise copy construction.
|
inlinevirtual |
Destructor.
Definition at line 130 of file DimensionedFieldFunction.H.
| TypeName | ( | "DimensionedFieldFunction< DimensionedFieldType >" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| DimensionedFieldFunction< DimensionedFieldType > | , | ||
| dictionary | , | ||
| (const dictionary &dict, DimensionedFieldType &field) | , | ||
| (dict, field) | |||
| ) |
|
pure virtual |
Construct and return a clone for the specified field.
Implemented in Zonal< DimensionedFieldType >, Zonal< DimensionedFieldType >, TimeFunction< DimensionedFieldType >, Surfaces< DimensionedFieldType >, FieldFunction< DimensionedFieldType >, DistanceFunction< DimensionedFieldType >, Coded< DimensionedFieldType >, AtmosphericBoundaryLayerVelocity< DimensionedFieldType >, AtmosphericBoundaryLayerTurbulentKineticEnergy< DimensionedFieldType >, AtmosphericBoundaryLayerTurbulentEpsilon< DimensionedFieldType >, waveVelocity, wallLayersHeatTransferCoefficient, externalWallLayersHeatTransferCoefficient, displacementGapHeatTransferCoefficient, and waveAlpha.
|
inlinevirtual |
Construct and return a clone for the specified field.
Definition at line 109 of file DimensionedFieldFunction.H.
References NotImplemented.
|
static |
Select null constructed.
Definition at line 57 of file DimensionedFieldFunction.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::libs, dictionary::lookup(), Foam::nl, dlLibraryTable::open(), and Foam::type().
Referenced by Coded< DimensionedFieldType >::evaluate(), and Coded< DimensionedFieldType >::update().


|
pure virtual |
Evaluate the function and set the field.
Implemented in waveVelocity, waveAlpha, wallLayersHeatTransferCoefficient, externalWallLayersHeatTransferCoefficient, Zonal< DimensionedFieldType >, Zonal< DimensionedFieldType >, TimeFunction< DimensionedFieldType >, Surfaces< DimensionedFieldType >, FieldFunction< DimensionedFieldType >, DistanceFunction< DimensionedFieldType >, Coded< DimensionedFieldType >, AtmosphericBoundaryLayerVelocity< DimensionedFieldType >, AtmosphericBoundaryLayerTurbulentKineticEnergy< DimensionedFieldType >, AtmosphericBoundaryLayerTurbulentEpsilon< DimensionedFieldType >, and displacementGapHeatTransferCoefficient.
Referenced by DimensionedFieldFunction< DimensionedFieldType >::reset().

|
inlinevirtual |
Update the field if the function has changed and return true.
otherwise return false
Reimplemented in TimeFunction< DimensionedFieldType >, FieldFunction< DimensionedFieldType >, Coded< DimensionedFieldType >, and displacementGapHeatTransferCoefficient.
Definition at line 141 of file DimensionedFieldFunction.H.
|
inlinevirtual |
Reset the field size.
Definition at line 147 of file DimensionedFieldFunction.H.
References DimensionedFieldFunction< DimensionedFieldType >::evaluate(), and DimensionedFieldFunction< DimensionedFieldType >::field_.

|
pure virtual |
Write data to dictionary stream.
Implemented in waveVelocity, waveAlpha, wallLayersHeatTransferCoefficient, externalWallLayersHeatTransferCoefficient, Zonal< DimensionedFieldType >, Zonal< DimensionedFieldType >, TimeFunction< DimensionedFieldType >, Surfaces< DimensionedFieldType >, FieldFunction< DimensionedFieldType >, DistanceFunction< DimensionedFieldType >, Coded< DimensionedFieldType >, AtmosphericBoundaryLayerVelocity< DimensionedFieldType >, AtmosphericBoundaryLayerTurbulentKineticEnergy< DimensionedFieldType >, AtmosphericBoundaryLayerTurbulentEpsilon< DimensionedFieldType >, and displacementGapHeatTransferCoefficient.
|
delete |
Disallow default bitwise assignment.
|
protected |
Reference to the field the function applies to.
Definition at line 57 of file DimensionedFieldFunction.H.
Referenced by DimensionedFieldFunction< DimensionedFieldType >::reset().