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