44 Foam::scalar Foam::waveModels::solitary::k()
const
50 Foam::scalar Foam::waveModels::solitary::alpha()
const
52 return amplitude()/depth();
68 return k()*(
x -
offset() - celerity()*t);
78 const scalar clip =
log(great);
90 amplitude_(
wave.amplitude_),
102 depth_(
dict.lookup<scalar>(
"depth")),
103 amplitude_(
dict.lookup<scalar>(
"amplitude")),
104 offset_(
dict.lookup<scalar>(
"offset"))
122 return amplitude()*Pi(t,
x);
142 (4 + 2*
A - 6*
A*
sqr(Z))*P
static const Foam::dimensionedScalar A("A", Foam::dimPressure, 611.21)
Macros for easy insertion into run-time selection tables.
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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...
virtual void write(Ostream &os) const
Write.
solitary(const solitary &wave)
Construct a copy.
scalar celerity() const
The wave celerity [m/s].
virtual tmp< scalarField > elevation(const scalar t, const scalarField &x) const
Get the wave elevation at a given time and local coordinates. Local.
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.
virtual ~solitary()
Destructor.
scalar amplitude() const
Get the amplitude.
scalar depth() const
Get the depth.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
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.
defineTypeNameAndDebug(Airy, 0)
addToRunTimeSelectionTable(waveModel, Airy, dictionary)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensionedScalar cosh(const dimensionedScalar &ds)
dimensionedScalar tanh(const dimensionedScalar &ds)
dimensionedScalar log(const dimensionedScalar &ds)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionedScalar sqrt(const dimensionedScalar &ds)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void offset(label &lst, const label o)
tmp< vector2DField > zip(const tmp< scalarField > &x, const tmp< scalarField > &y)