62 return phase_ +
k()*(x - celerity()*t);
68 return k()*depth() >
log(great);
84 const scalar kzGreat =
log(i*great);
93 const scalar kd =
k()*depth();
105 length_(wave.length_),
118 length_(dict.
lookup<scalar>(
"length")),
119 phase_(dict.
lookup<scalar>(
"phase")),
tmp< vector2DField > zip(const tmp< scalarField > &x, const tmp< scalarField > &y)
dimensionedScalar tanh(const dimensionedScalar &ds)
Airy(const Airy &wave)
Construct a copy.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar log(const dimensionedScalar &ds)
scalar celerity() const
The wave celerity [m/s].
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
defineTypeNameAndDebug(Airy, 0)
virtual tmp< scalarField > elevation(const scalar t, const scalarField &x) const
Get the wave elevation at a given time and local coordinates. Local.
dimensionedScalar sqrt(const dimensionedScalar &ds)
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.
label k
Boltzmann constant.
Macros for easy insertion into run-time selection tables.
virtual tmp< scalarField > pressure(const scalar t, const vector2DField &xz) const
Get the wave pressure at a given time and local coordinates. Local.
tmp< scalarField > angle(const scalar t, const scalarField &x) const
Angle of the oscillation [rad].
dimensionedScalar cos(const dimensionedScalar &ds)
dimensionedScalar exp(const dimensionedScalar &ds)
Generic base class for waves. Derived classes must implement field functions which return the elevati...
scalar k() const
The angular wavenumber [rad/m].
addToRunTimeSelectionTable(waveModel, Airy, objectRegistry)
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
waveModel(const waveModel &wave)
Construct a copy.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar sin(const dimensionedScalar &ds)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
dimensionedScalar sinh(const dimensionedScalar &ds)
tmp< vector2DField > vi(const label i, const scalar t, const vector2DField &xz) const
Return the non-dimensionalised i-th harmonic of the velocity.
scalar amplitude(const scalar t) const
Get the amplitude.
virtual void write(Ostream &os) const
Write.
dimensionedScalar cosh(const dimensionedScalar &ds)
A class for managing temporary objects.
Registry of regIOobjects.
const dimensionedVector & g
virtual ~Airy()
Destructor.
virtual void write(Ostream &os) const
Write.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.