63 if (dict.
found(
"value"))
72 this->refValue() =
Zero;
73 this->refGrad() =
Zero;
74 this->valueFraction() =
Zero;
88 inletValueAbove_(ptf.inletValueAbove_,
false),
89 inletValueBelow_(ptf.inletValueBelow_,
false),
90 phiName_(ptf.phiName_)
101 inletValueAbove_(ptf.inletValueAbove_,
false),
102 inletValueBelow_(ptf.inletValueBelow_,
false),
103 phiName_(ptf.phiName_)
115 inletValueAbove_(ptf.inletValueAbove_,
false),
116 inletValueBelow_(ptf.inletValueBelow_,
false),
117 phiName_(ptf.phiName_)
132 this->patch().template lookupPatchField<surfaceScalarField, scalar>
137 const scalar t = this->db().time().timeOutputValue();
140 const pointField& localPoints = this->patch().patch().localPoints();
146 waves.
height(t, this->patch().Cf()),
147 waves.
height(t, localPoints),
148 Field<Type>(this->size(), inletValueAbove_->value(t)),
150 Field<Type>(this->size(), inletValueBelow_->value(t)),
154 this->valueFraction() = 1 -
pos0(phip);
166 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
A wrapper around a list of wave models. Superimposes the modelled values of elevation and velocity...
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
A list of keyword definitions, which are a keyword followed by any number of values (e...
void size(const label)
Override size to be inconsistent with allocated storage.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions, i.e. conditions that mix fixed value and patch-normal gradient conditions.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
This boundary condition provides an inlet-outlet condition with differing inlet values on either side...
Macros for easy insertion into run-time selection tables.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
virtual tmp< scalarField > height(const scalar t, const vectorField &p) const
Get the height above the waves at a given time and global positions.
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar pos0(const dimensionedScalar &ds)
tmp< Field< Type > > levelSetAverage(const fvMesh &mesh, const scalarField &levelC, const scalarField &levelP, const Field< Type > &positiveC, const Field< Type > &positiveP, const Field< Type > &negativeC, const Field< Type > &negativeP)
Calculate the average value of two fields, one on each side of a level set.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
waveInletOutletFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void write(Ostream &) const
Write.