54 Foam::scalar Foam::waveModels::StokesII::eta
67 const scalar
k =
sqrt(Kx*Kx + Ky*Ky);
69 const scalar phaseTot = Kx*
x + Ky*
y - omega*t + phase;
93 const scalar
k =
sqrt(Kx*Kx + Ky*Ky);
94 const scalar phaseTot = Kx*
x + Ky*
y - omega*t +
phase;
102 scalar v = u*
sin(waveAngle_);
118 const scalar waveKx = waveK*
cos(waveAngle_);
119 const scalar waveKy = waveK*
sin(waveAngle_);
137 level[paddlei] = waterDepthRef_ + tCoeff*eta;
Different types of constants.
dimensionedScalar tanh(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
label k
Boltzmann constant.
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
volScalarField H(IOobject("H", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar(dimLength, Zero))
dimensionedScalar cos(const dimensionedScalar &ds)
constexpr scalar twoPi(2 *M_PI)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar sin(const dimensionedScalar &ds)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
const dimensionedScalar h
Planck constant.
dimensionedScalar pow3(const dimensionedScalar &ds)
StokesII(const dictionary &dict, const fvMesh &mesh, const polyPatch &patch, const bool readFields=true)
Constructor.
dimensionedScalar sinh(const dimensionedScalar &ds)
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
Mesh data needed to do the Finite Volume discretisation.
dimensionedScalar pow4(const dimensionedScalar &ds)
const std::string patch
OpenFOAM patch number as a std::string.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
virtual void setLevel(const scalar t, const scalar tCoeff, scalarField &level) const
Set the water level.
InfoProxy< IOobject > info() const
Return info proxy, for printing information to a stream.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type.
dimensionedScalar cosh(const dimensionedScalar &ds)
A patch is a list of labels that address the faces in the global face list.
virtual vector UfBase(const scalar H, const scalar h, const scalar Kx, const scalar x, const scalar Ky, const scalar y, const scalar omega, const scalar t, const scalar phase, const scalar z) const
Wave velocity.