First-order wave model. More...


Public Member Functions | |
| TypeName ("Airy") | |
| Runtime type information. More... | |
| Airy (const Airy &wave) | |
| Construct a copy. More... | |
| Airy (const objectRegistry &db, const dictionary &dict) | |
| Construct from a database and a dictionary. More... | |
| virtual autoPtr< waveModel > | clone () const |
| Construct a clone. More... | |
| virtual | ~Airy () |
| Destructor. More... | |
| scalar | length () const |
| Get the length. More... | |
| scalar | phase () const |
| Get the phase. More... | |
| scalar | depth () const |
| Get the depth. More... | |
| virtual tmp< scalarField > | elevation (const scalar t, const scalar u, const scalarField &x) const |
| Get the wave elevation at a given time, mean velocity and local. More... | |
| virtual tmp< vector2DField > | velocity (const scalar t, const scalar u, const vector2DField &xz) const |
| Get the wave velocity at a given time, mean velocity and local. More... | |
| virtual tmp< scalarField > | pressure (const scalar t, const scalar u, const vector2DField &xz) const |
| Get the wave pressure at a given time, mean velocity and local. More... | |
| virtual void | write (Ostream &os) const |
| Write. More... | |
Public Member Functions inherited from waveModel | |
| TypeName ("waveModel") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, waveModel, objectRegistry,(const objectRegistry &db, const dictionary &dict),(db, dict)) | |
| waveModel (const waveModel &wave) | |
| Construct a copy. More... | |
| waveModel (const objectRegistry &db, const dictionary &dict) | |
| Construct from a database and a dictionary. More... | |
| virtual | ~waveModel () |
| Destructor. More... | |
| scalar | amplitude (const scalar t) const |
| Get the amplitude. More... | |
| scalar | g () const |
| Get the (scalar) value of gravity. More... | |
Protected Member Functions | |
| scalar | k () const |
| The angular wavenumber [rad/m]. More... | |
| scalar | celerity () const |
| The wave celerity [m/s]. More... | |
| tmp< scalarField > | angle (const scalar t, const scalar u, const scalarField &x) const |
| Angle of the oscillation [rad]. More... | |
| bool | deep () const |
| Return whether shallow and intermdiate effects are to be omitted. More... | |
| tmp< vector2DField > | vi (const label i, const scalar t, const scalar u, const vector2DField &xz) const |
| Return the non-dimensionalised i-th harmonic of the velocity. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from waveModel | |
| static autoPtr< waveModel > | New (const objectRegistry &db, const dictionary &dict) |
| Select. More... | |
| static autoPtr< waveModel > | New (const word &type, const objectRegistry &db, const dictionary &dict) |
| Select. More... | |
First-order wave model.
"On the Theory of Oscillatory Waves"
G G Stokes
Transactions of the Cambridge Philosophical Society (1847), Volume 8,
Pages 441-455, Equations 18 and 19 (leading terms only)
Construct a copy.
Definition at line 102 of file Airy.C.
Referenced by Airy::clone().

| Airy | ( | const objectRegistry & | db, |
| const dictionary & | dict | ||
| ) |
|
virtual |
Destructor.
Definition at line 126 of file Airy.C.
References Airy::elevation().
Referenced by Airy::clone().


|
protected |
The angular wavenumber [rad/m].
Definition at line 44 of file Airy.C.
References Foam::constant::mathematical::pi().
Referenced by Airy::velocity().


|
protected |
The wave celerity [m/s].
Definition at line 50 of file Airy.C.
References Airy::angle(), g, k, Foam::sqrt(), and Foam::tanh().
Referenced by Airy::pressure(), and Airy::velocity().


|
protected |
Angle of the oscillation [rad].
Definition at line 57 of file Airy.C.
References k.
Referenced by Airy::celerity(), and Airy::elevation().

|
protected |
Return whether shallow and intermdiate effects are to be omitted.
Definition at line 67 of file Airy.C.
References k, Foam::log(), and Airy::vi().
Referenced by Airy::write().


|
protected |
Return the non-dimensionalised i-th harmonic of the velocity.
Definition at line 74 of file Airy.C.
References Field< Type >::component(), Foam::cos(), Foam::cosh(), Foam::exp(), k, Foam::mag(), Foam::max(), phi, Foam::sin(), Foam::sinh(), x, and Foam::zip().
Referenced by Airy::deep(), and Airy::velocity().


| TypeName | ( | "Airy" | ) |
Runtime type information.
Construct a clone.
Implements waveModel.
Reimplemented in Stokes2, and Stokes5.
Definition at line 120 of file Airy.H.
References Airy::Airy(), and Airy::~Airy().

|
inline |
Get the depth.
Definition at line 147 of file Airy.H.
References Airy::elevation(), Airy::pressure(), Airy::velocity(), and Airy::write().

|
virtual |
Get the wave elevation at a given time, mean velocity and local.
coordinates. Local x is aligned with the mean velocity.
Implements waveModel.
Reimplemented in Stokes2, and Stokes5.
Definition at line 133 of file Airy.C.
References waveModel::amplitude(), Airy::angle(), Foam::cos(), and Airy::velocity().
Referenced by Airy::depth(), Stokes2::elevation(), and Airy::~Airy().


|
virtual |
Get the wave velocity at a given time, mean velocity and local.
coordinates. Local x is aligned with the mean velocity, and z with negative gravity.
Implements waveModel.
Reimplemented in Stokes2, and Stokes5.
Definition at line 144 of file Airy.C.
References waveModel::amplitude(), Airy::celerity(), Airy::k(), Airy::pressure(), and Airy::vi().
Referenced by Airy::depth(), Airy::elevation(), Airy::pressure(), and Stokes2::velocity().


|
virtual |
Get the wave pressure at a given time, mean velocity and local.
coordinates. Local x is aligned with the mean velocity, and z with negative gravity.
Implements waveModel.
Definition at line 157 of file Airy.C.
References Airy::celerity(), and Airy::velocity().
Referenced by Airy::depth(), and Airy::velocity().


|
virtual |
Write.
Reimplemented from waveModel.
Definition at line 170 of file Airy.C.
References Airy::deep(), token::END_STATEMENT, Foam::nl, waveModel::write(), and Ostream::writeKeyword().
Referenced by Airy::depth().


1.8.13