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_)
102 inletValueAbove_(ptf.inletValueAbove_,
false),
103 inletValueBelow_(ptf.inletValueBelow_,
false),
104 phiName_(ptf.phiName_)
119 this->patch().template lookupPatchField<surfaceScalarField, scalar>
124 const scalar t = this->db().time().userTimeValue();
127 const pointField& localPoints = this->patch().patch().localPoints();
133 waves.
height(t, this->patch().Cf()),
134 waves.
height(t, localPoints),
135 Field<Type>(this->size(), inletValueAbove_->value(t)),
137 Field<Type>(this->size(), inletValueBelow_->value(t)),
141 this->valueFraction() = 1 -
pos0(phip);
153 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
Run-time selectable general function of one variable.
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.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
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.
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.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
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.