waveVelocity Class Reference

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...

Inheritance diagram for waveVelocity:
Collaboration diagram for waveVelocity:

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...
 

Detailed Description

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.

Usage
Example of the boundary condition specification:
internalField
{
    type        waveVelocity;
    libs        ("libwaves.so");
}
See also
Foam::waveVelocityFvPatchScalarField Foam::waveSuperposition
Source files

Definition at line 69 of file waveVelocity_DimensionedFieldFunction.H.

Constructor & Destructor Documentation

◆ waveVelocity() [1/2]

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() [2/2]

waveVelocity ( const waveVelocity dff,
DimensionedField< vector, fvMesh > &  field 
)

Construct a copy for the given field.

Definition at line 67 of file waveVelocity_DimensionedFieldFunction.C.

◆ ~waveVelocity()

virtual ~waveVelocity ( )
inlinevirtual

Destructor.

Definition at line 104 of file waveVelocity_DimensionedFieldFunction.H.

Member Function Documentation

◆ TypeName()

TypeName ( "waveVelocity"  )

Runtime type information.

◆ clone()

virtual autoPtr< DimensionedFieldFunction<DimensionedField<vector, fvMesh> > > clone ( DimensionedField< vector, fvMesh > &  field) const
virtual

Construct and return a clone for the specified field.

Implements DimensionedFieldFunction< DimensionedField< vector, fvMesh > >.

◆ evaluate()

◆ write()

void write ( Ostream os) const
virtual

Write data to dictionary stream.

Implements DimensionedFieldFunction< DimensionedField< vector, fvMesh > >.

Definition at line 121 of file waveVelocity_DimensionedFieldFunction.C.


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