92 scalar (*celerityPtr)(scalar, scalar, scalar, scalar)
101 static scalar
k(
const scalar
length);
168 const word& modelName = Airy::typeName,
169 scalar (*modelCelerity)(scalar, scalar, scalar, scalar) =
197 return amplitude_->value(t);
203 return amplitude_->value(great);
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...
scalar g() const
Get the value of gravity.
bool deep() const
Return whether shallow and intermediate effects are to be omitted.
virtual ~Airy()
Destructor.
scalar length() const
Get the length.
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.
TypeName("Airy")
Runtime type information.
scalar k() const
The angular wavenumber [rad/m].
virtual void write(Ostream &os) const
Write.
virtual tmp< vector2DField > velocity(const scalar t, const vector2DField &xz) const
Get the wave velocity at a given time and local coordinates. Local.
scalar amplitude() const
Get the amplitude at steady state.
virtual scalar celerity() const
The wave celerity [m/s].
scalar depth() const
Get the depth.
scalar phase() const
Get the phase.
tmp< scalarField > angle(const scalar t, const scalarField &x) const
Angle of the oscillation [rad].
tmp< vector2DField > vi(const label i, const scalar t, const vector2DField &xz) const
Return the non-dimensionalised i-th harmonic of the velocity.
Airy(const Airy &wave)
Construct a copy.
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.