96 const word& modelName = Stokes5::typeName,
97 scalar (*modelCelerity)(scalar, scalar, scalar, scalar) =
virtual scalar celerity() const
The wave celerity [m/s].
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual autoPtr< waveModel > clone() const
Construct a clone.
virtual ~Stokes5()
Destructor.
scalar g() const
Get the value of gravity.
virtual tmp< vector2DField > velocity(const scalar t, const vector2DField &xz) const
Get the wave velocity at a given time and local coordinates. Local.
A class for handling words, derived from string.
scalar length() const
Get the length.
scalar depth() const
Get the depth.
TypeName("Stokes5")
Runtime type information.
virtual tmp< scalarField > elevation(const scalar t, const scalarField &x) const
Get the wave elevation at a given time and local coordinates. Local.
scalar amplitude() const
Get the amplitude at steady state.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
Stokes5(const dictionary &dict, const scalar g, const word &modelName=Stokes5::typeName, scalar(*modelCelerity)(scalar, scalar, scalar, scalar)=&Stokes5::celerity)
Construct from a dictionary and gravity.