Initialises the velocity to that specified by a superposition of wave models. All the wave modelling parameters are obtained from a centrally registered waveSuperposition class. More...


Public Member Functions | |
| TypeName ("waveVelocity") | |
| Runtime type information. More... | |
| waveVelocity (const dictionary &dict, DimensionedField< vector, fvMesh > &field) | |
| Construct with dictionary to initialise given field. More... | |
| waveVelocity (const waveVelocity &dff, DimensionedField< vector, fvMesh > &field) | |
| Construct a copy for the given field. More... | |
| virtual autoPtr< DimensionedFieldFunction< DimensionedField< vector, fvMesh > > > | clone (DimensionedField< vector, fvMesh > &field) const |
| Construct and return a clone for the specified field. More... | |
| virtual | ~waveVelocity () |
| Destructor. More... | |
| virtual void | evaluate () |
| Evaluate the function and set the field. More... | |
| virtual void | write (Ostream &os) const |
| Write data to dictionary stream. More... | |
Public Member Functions inherited from DimensionedFieldFunction< DimensionedField< vector, fvMesh > > | |
| TypeName ("DimensionedFieldFunction") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, DimensionedFieldFunction, dictionary,(const dictionary &dict, DimensionedField< vector, fvMesh > &field),(dict, field)) | |
| DimensionedFieldFunction (const dictionary &dict, DimensionedField< vector, fvMesh > &field) | |
| Construct with dictionary to initialise given field. More... | |
| DimensionedFieldFunction (const DimensionedFieldFunction &dff, DimensionedField< vector, fvMesh > &field) | |
| Construct a copy for the given field. More... | |
| DimensionedFieldFunction (const DimensionedFieldFunction< DimensionedField< vector, fvMesh > > &)=delete | |
| Disallow default bitwise copy construction. More... | |
| virtual autoPtr< DimensionedFieldFunction< DimensionedField< vector, fvMesh > > > | clone () const |
| Construct and return a clone for the specified field. More... | |
| virtual | ~DimensionedFieldFunction () |
| Destructor. More... | |
| virtual bool | update () |
| Update the field if the function has changed and return true. More... | |
| virtual void | reset () |
| Reset the field size. More... | |
| void | operator= (const DimensionedFieldFunction< DimensionedField< vector, fvMesh > > &)=delete |
| Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from DimensionedFieldFunction< DimensionedField< vector, fvMesh > > | |
| static autoPtr< DimensionedFieldFunction< DimensionedField< vector, fvMesh > > > | New (const dictionary &dict, DimensionedField< vector, fvMesh > &field) |
| Select null constructed. More... | |
Protected Attributes inherited from DimensionedFieldFunction< DimensionedField< vector, fvMesh > > | |
| DimensionedField< vector, fvMesh > & | field_ |
| Reference to the field the function applies to. More... | |
Initialises the velocity to that specified by a superposition of wave models. All the wave modelling parameters are obtained from a centrally registered waveSuperposition class.
internalField
{
type waveVelocity;
libs ("libwaves.so");
}
Definition at line 69 of file waveVelocity_DimensionedFieldFunction.H.
| waveVelocity | ( | const dictionary & | dict, |
| DimensionedField< vector, fvMesh > & | field | ||
| ) |
Construct with dictionary to initialise given field.
Definition at line 57 of file waveVelocity_DimensionedFieldFunction.C.
| waveVelocity | ( | const waveVelocity & | dff, |
| DimensionedField< vector, fvMesh > & | field | ||
| ) |
Construct a copy for the given field.
Definition at line 67 of file waveVelocity_DimensionedFieldFunction.C.
|
inlinevirtual |
Destructor.
Definition at line 104 of file waveVelocity_DimensionedFieldFunction.H.
| TypeName | ( | "waveVelocity" | ) |
Runtime type information.
|
virtual |
Construct and return a clone for the specified field.
Implements DimensionedFieldFunction< DimensionedField< vector, fvMesh > >.
|
virtual |
Evaluate the function and set the field.
Implements DimensionedFieldFunction< DimensionedField< vector, fvMesh > >.
Definition at line 98 of file waveVelocity_DimensionedFieldFunction.C.
References primitiveMesh::cellCentres(), waveSuperposition::height(), Foam::levelSetAverage(), mesh, waveSuperposition::New(), polyMesh::points(), fvMesh::time(), waveSuperposition::UGas(), waveSuperposition::ULiquid(), and dimensioned< Type >::value().

|
virtual |
Write data to dictionary stream.
Implements DimensionedFieldFunction< DimensionedField< vector, fvMesh > >.
Definition at line 121 of file waveVelocity_DimensionedFieldFunction.C.