Generic base class for waves. Derived classes must implement field functions which return the elevation above the wave surface and the velocity field, both as a function of position. More...
Public Member Functions | |
TypeName ("waveModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, waveModel, dictionary,(const dictionary &dict, const scalar g),(dict, g)) | |
waveModel (const waveModel &wave) | |
Construct a copy. More... | |
waveModel (const dictionary &dict, const scalar g) | |
Construct from a dictionary and gravity. More... | |
virtual autoPtr< waveModel > | clone () const =0 |
Construct a clone. More... | |
virtual | ~waveModel () |
Destructor. More... | |
scalar | g () const |
Get the value of gravity. More... | |
virtual scalar | celerity () const =0 |
The wave celerity [m/s]. More... | |
virtual tmp< scalarField > | elevation (const scalar t, const scalarField &x) const =0 |
Get the wave elevation at a given time and local coordinates. Local. More... | |
virtual tmp< vector2DField > | velocity (const scalar t, const vector2DField &xz) const =0 |
Get the wave velocity at a given time and local coordinates. Local. More... | |
virtual void | write (Ostream &os) const |
Write. More... | |
Static Public Member Functions | |
static autoPtr< waveModel > | New (const dictionary &dict, const scalar g) |
Select. More... | |
static autoPtr< waveModel > | New (const word &type, const dictionary &dict, const scalar g) |
Select. More... | |
Generic base class for waves. Derived classes must implement field functions which return the elevation above the wave surface and the velocity field, both as a function of position.
Definition at line 55 of file waveModel.H.
Construct a copy.
Definition at line 39 of file waveModel.C.
waveModel | ( | const dictionary & | dict, |
const scalar | g | ||
) |
Construct from a dictionary and gravity.
Definition at line 45 of file waveModel.C.
|
virtual |
Destructor.
Definition at line 53 of file waveModel.C.
TypeName | ( | "waveModel" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
waveModel | , | ||
dictionary | , | ||
(const dictionary &dict, const scalar g) | , | ||
(dict, g) | |||
) |
|
static |
Select.
Definition at line 30 of file waveModelNew.C.
References dict, and waveModel::g().
Referenced by waveSuperposition::waveSuperposition().
|
static |
Select.
Definition at line 40 of file waveModelNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::nl, and Foam::type().
|
inline |
Get the value of gravity.
Definition at line 117 of file waveModel.H.
Referenced by Airy::coeffs(), irregular::irregular(), and waveModel::New().
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
virtual |
Write.
Reimplemented in solitary, irregular, and Airy.
Definition at line 59 of file waveModel.C.
Referenced by Airy::write(), irregular::write(), and solitary::write().