69 U_ =
U.boundaryField()[patch_.index()].patchInternalField();
88 alpha_ =
alpha.boundaryField()[patch_.index()].patchInternalField();
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Macros for easy insertion into run-time selection tables.
virtual void setLevel(const scalar t, const scalar tCoeff, scalarField &level) const
Set the water level.
defineTypeNameAndDebug(waveAbsorptionModel, 0)
virtual void setAlpha(const scalarField &level)
Set the alpha field based on the water level.
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 void setVelocity(const scalar t, const scalar tCoeff, const scalarField &level)
Calculate the wave model velocity.
shallowWaterAbsorption(const dictionary &dict, const fvMesh &mesh, const polyPatch &patch, const bool readFields=true)
Constructor.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
Mesh data needed to do the Finite Volume discretisation.
const std::string patch
OpenFOAM patch number as a std::string.
scalar waterDepthRef_
Reference water depth / [m].
addToRunTimeSelectionTable(waveModel, shallowWaterAbsorption, patch)
A patch is a list of labels that address the faces in the global face list.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.