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