87 scalar
omega(
const scalar u)
const;
165 return amplitude_->value(t);
declareRunTimeSelectionTable(autoPtr, waveModel, objectRegistry,(const objectRegistry &db, const dictionary &dict),(db, dict))
tmp< scalarField > angle(const scalar t, const scalar u, const scalarField &x) const
Angle of the oscillation [rad].
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual tmp< vector2DField > velocity(const scalar t, const scalar u, const vector2DField &xz) const =0
Get the wave velocity at a given time, mean velocity and local.
bool shallow() const
Return whether shallow effects are to be included.
scalar sigma() const
The intrinsic angular frequency [rad/s].
scalar length() const
Get the length.
Generic base class for waves. Derived classes must implement field functions which return the elevati...
A class for handling words, derived from string.
virtual tmp< scalarField > elevation(const scalar t, const scalar u, const scalarField &x) const =0
Get the wave elevation at a given time, mean velocity and local.
waveModel(const waveModel &wave)
Construct a copy.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
TypeName("waveModel")
Runtime type information.
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
scalar phase() const
Get the phase.
virtual ~waveModel()
Destructor.
static autoPtr< waveModel > New(const objectRegistry &db, const dictionary &dict)
Select.
scalar omega(const scalar u) const
The observed angular frequency [rad/s].
scalar depth() const
Get the depth.
scalar amplitude(const scalar t) const
Get the amplitude.
scalar k() const
The angular wavenumber [rad/m].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
Registry of regIOobjects.
virtual void write(Ostream &os) const
Write.
virtual autoPtr< waveModel > clone() const =0
Construct a clone.