62 this->refValue() = *
this;
63 this->refGrad() =
Zero;
64 this->valueFraction() = 0.0;
78 meanValue_(ptf.meanValue_,
false)
90 meanValue_(ptf.meanValue_,
false)
104 const scalar t = this->db().time().timeOutputValue();
105 Type meanValue = meanValue_->value(t);
110 gSum(this->patch().magSf()*newValues)
111 /
gSum(this->patch().magSf());
113 if (
mag(meanValue) > small &&
mag(meanValuePsi)/
mag(meanValue) > 0.5)
115 newValues *=
mag(meanValue)/
mag(meanValuePsi);
119 newValues += (meanValue - meanValuePsi);
122 this->refValue() = newValues;
Run-time selectable general function of one variable.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void size(const label)
Override size to be inconsistent with allocated storage.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
Type gSum(const FieldField< Field, Type > &f)
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...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
fixedMeanOutletInletFvPatchField(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...
dimensioned< scalar > mag(const dimensioned< Type > &)
This boundary condition provides a generic inflow condition, with specified outflow for the case of r...
This boundary condition extrapolates field to the patch using the near-cell values and adjusts the di...