35 #ifndef waveModels_irregularMultiDirectional_H 36 #define waveModels_irregularMultiDirectional_H 118 const scalar irregWaveOmega,
119 const scalar phaseTot,
120 const scalar irregWaveKs,
123 const scalar irregDir
146 TypeName(
"irregularMultiDirectional");
virtual scalar waveLength(const scalar h, const scalar T) const
Return the wavelength.
virtual void setLevel(const scalar t, const scalar tCoeff, scalarField &level) const
Set the water level.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const NameMatchPredicate &selectedFields, DynamicList< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type and store on the objectRegistry.
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
virtual vector uMultiDirec(const scalar irregH, const scalar irregWaveOmega, const scalar phaseTot, const scalar irregWaveKs, const scalar z, const scalar h, const scalar irregDir) const
virtual void setVelocity(const scalar t, const scalar tCoeff, const scalarField &level)
Calculate the wave model velocity.
InfoProxy< IOobject > info() const noexcept
Return info proxy, for printing information to a stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const dimensionedScalar h
Planck constant.
virtual vector Uf(const scalar d, const scalar x, const scalar y, const scalar t, const scalar z) const
Wave velocity.
TypeName("irregularMultiDirectional")
Runtime type information.
Mesh data needed to do the Finite Volume discretisation.
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...
irregularMultiDirectional(const dictionary &dict, const fvMesh &mesh, const polyPatch &patch, const bool readFields=true)
Constructor.
virtual ~irregularMultiDirectional()=default
Destructor.
A patch is a list of labels that address the faces in the global face list.
volScalarField H(IOobject("H", runTime.timeName(), mesh.thisDb(), IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar(dimLength, Zero))
Multi-directional irregular wave model.