92 scalar (*celerityPtr)(scalar, scalar, scalar, scalar)
101 static scalar
k(
const scalar length);
104 static bool deep(
const scalar length,
const scalar depth);
110 const scalar amplitude,
168 const word& modelName = Airy::typeName,
169 scalar (*modelCelerity)(scalar, scalar, scalar, scalar) =
197 return amplitude_->value(t);
203 return amplitude_->value(great);
Airy(const Airy &wave)
Construct a copy.
A list of keyword definitions, which are a keyword followed by any number of values (e...
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.
bool deep() const
Return whether shallow and intermediate effects are to be omitted.
virtual tmp< vector2DField > velocity(const scalar t, const vector2DField &xz) const
Get the wave velocity at a given time and local coordinates. Local.
TypeName("Airy")
Runtime type information.
virtual scalar celerity() const
The wave celerity [m/s].
tmp< scalarField > angle(const scalar t, const scalarField &x) const
Angle of the oscillation [rad].
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.
scalar phase() const
Get the phase.
scalar length() const
Get the length.
scalar depth() const
Get the depth.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
scalar amplitude() const
Get the amplitude at steady state.
tmp< vector2DField > vi(const label i, const scalar t, const vector2DField &xz) const
Return the non-dimensionalised i-th harmonic of the velocity.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual void write(Ostream &os) const
Write.
A class for managing temporary objects.
virtual ~Airy()
Destructor.
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.
scalar k() const
The angular wavenumber [rad/m].