Go to the documentation of this file.
56 level = waterDepthRef_;
69 U_ =
U.boundaryField()[patch_.index()].patchInternalField();
84 alpha_ =
alpha.boundaryField()[patch_.index()].patchInternalField();
114 return waveAbsorptionModel::readDict(overrideDict);
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
void replace(const direction d, const GeometricField< cmptType, PatchField, GeoMesh > &gcf)
Replace specified field component with content from another field.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
addToRunTimeSelectionTable(waveModel, shallowWaterAbsorption, patch)
virtual void setLevel(const scalar t, const scalar tCoeff, scalarField &level) const
Set the water level.
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 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,...
Macros for easy insertion into run-time selection tables.
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.
const std::string patch
OpenFOAM patch number as a std::string.
virtual void setAlpha(const scalarField &level)
Set the alpha field based on the water level.
defineTypeNameAndDebug(waveAbsorptionModel, 0)