virtual tmp< scalarField > elevation(const scalar t, const scalarField &x) const =0
Get the wave elevation at a given time and local coordinates. Local.
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...
scalar g() const
Get the value of gravity.
Generic base class for waves. Derived classes must implement field functions which return the elevati...
A class for handling words, derived from string.
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.
declareRunTimeSelectionTable(autoPtr, waveModel, dictionary,(const dictionary &dict, const scalar g),(dict, g))
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
static autoPtr< waveModel > New(const dictionary &dict, const scalar g)
Select.
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.
label wave(const fvMesh &mesh, const List< labelPair > &changedPatchAndFaces, const label nCorrections, GeometricField< scalar, PatchField, GeoMesh > &distance, TrackingData &td, GeometricField< DataType, PatchField, GeoMesh > &... data)
Wave distance (and maybe additional) data from faces. If nCorrections is.
virtual void write(Ostream &os) const
Write.
virtual autoPtr< waveModel > clone() const =0
Construct a clone.