124 virtual scalar
celerity()
const = 0;
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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.
Generic base class for waves. Derived classes must implement field functions which return the elevati...
waveModel(const waveModel &wave)
Construct a copy.
scalar g() const
Get the value of gravity.
static autoPtr< waveModel > New(const dictionary &dict, const scalar g)
Select.
virtual ~waveModel()
Destructor.
virtual autoPtr< waveModel > clone() const =0
Construct a clone.
TypeName("waveModel")
Runtime type information.
virtual void write(Ostream &os) const
Write.
declareRunTimeSelectionTable(autoPtr, waveModel, dictionary,(const dictionary &dict, const scalar g),(dict, g))
virtual scalar celerity() const =0
The wave celerity [m/s].
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 class for handling words, derived from string.
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.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Macros to ease declaration of run-time selection tables.