91 const word& modelName = Stokes2::typeName,
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.
Calculation engine for the Airy wave model and other models that are a correction on top of the Airy ...
virtual scalar celerity() const
The wave celerity [m/s].
virtual ~Stokes2()
Destructor.
Stokes2(const dictionary &dict, const scalar g, const word &modelName=Stokes2::typeName, scalar(*celerityPtr)(const AiryCoeffs &)=&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.
A class for handling words, derived from string.