Go to the documentation of this file.
35 #ifndef waveModels_Grimshaw_H
36 #define waveModels_Grimshaw_H
virtual void setLevel(const scalar t, const scalar tCoeff, scalarField &level) const
Set the water level.
virtual vector Uf(const scalar H, const scalar h, const scalar x, const scalar y, const scalar theta, const scalar t, const scalar X0, const scalar z) const
Wave velocity.
scalarList X0(nSpecie, Zero)
volScalarField H(IOobject("H", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar(dimLength, Zero))
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
InfoProxy< IOobject > info() const
Return info proxy.
virtual scalar alfa(const scalar H, const scalar h) const
virtual void setVelocity(const scalar t, const scalar tCoeff, const scalarField &level)
Calculate the wave model velocity.
TypeName("Grimshaw")
Runtime type information.
virtual ~Grimshaw()=default
Destructor.
const dimensionedScalar h
Planck constant.
A patch is a list of labels that address the faces in the global face list.
virtual scalar eta(const scalar H, const scalar h, const scalar x, const scalar y, const scalar theta, const scalar t, const scalar X0) const
Wave height.
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.
Grimshaw(const dictionary &dict, const fvMesh &mesh, const polyPatch &patch, const bool readFields=true)
Constructor.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
const std::string patch
OpenFOAM patch number as a std::string.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...