69 U_ =
U.boundaryField()[patch_.index()].patchInternalField();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
A patch is a list of labels that address the faces in the global face list.
Base class for waveModels.
const polyPatch & patch_
Reference to the polyPatch.
const fvMesh & mesh_
Reference to the mesh database.
word UName_
Name of velocity field, default = "U".
virtual const scalarField & alpha() const
Return the latest wave indicator field prediction.
scalarField alpha_
Wave indicator field.
virtual const vectorField & U() const
Return the latest wave velocity prediction.
vectorField U_
Velocity field.
scalar waterDepthRef_
Reference water depth / [m].
waveModel(const dictionary &dict, const fvMesh &mesh, const polyPatch &patch, const bool readFields=true)
Constructor.
word alphaName_
Name of phase fraction field, default = "alpha".
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.
virtual void setLevel(const scalar t, const scalar tCoeff, scalarField &level) const
Set the water level.
virtual void setAlpha(const scalarField &level)
Set the alpha field based on the water level.
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
waveAbsorptionModel(const dictionary &dict, const fvMesh &mesh, const polyPatch &patch, const bool readFields=true)
Constructor.
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
GeometricField< vector, fvPatchField, volMesh > volVectorField
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.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.