Go to the documentation of this file.
35 #ifndef waveModels_StokesI_H
36 #define waveModels_StokesI_H
78 virtual scalar
waveLength(
const scalar
h,
const scalar
T)
const;
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.
volScalarField H(IOobject("H", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar(dimLength, Zero))
InfoProxy< IOobject > info() const
Return info proxy.
TypeName("StokesI")
Runtime type information.
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.
const dimensionedScalar h
Planck constant.
A patch is a list of labels that address the faces in the global face list.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Mesh data needed to do the Finite Volume discretisation.
virtual scalar waveLength(const scalar h, const scalar T) const
Return the wavelength.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
virtual void setVelocity(const scalar t, const scalar tCoeff, const scalarField &level)
Calculate the wave model velocity.
const std::string patch
OpenFOAM patch number as a std::string.
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
StokesI(const dictionary &dict, const fvMesh &mesh, const polyPatch &patch, const bool readFields=true)
Constructor.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual ~StokesI()=default
Destructor.