126 return amplitude_->value(t);
virtual tmp< scalarField > elevation(const scalar t, const scalarField &x) const =0
Get the wave elevation at a given time and local coordinates. Local.
declareRunTimeSelectionTable(autoPtr, waveModel, objectRegistry,(const objectRegistry &db, const dictionary &dict),(db, dict))
virtual tmp< vector2DField > velocity(const scalar t, const vector2DField &xz) const =0
Get the wave velocity at a given time and local coordinates. Local.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual tmp< scalarField > pressure(const scalar t, const vector2DField &xz) const =0
Get the wave pressure at a given time and local coordinates. Local.
Generic base class for waves. Derived classes must implement field functions which return the elevati...
A class for handling words, derived from string.
scalar g() const
Get the (scalar) value of gravity.
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.
virtual ~waveModel()
Destructor.
static autoPtr< waveModel > New(const objectRegistry &db, const dictionary &dict)
Select.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
scalar amplitude(const scalar t) const
Get the amplitude.
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.