62 this->refValue() = *
this;
63 this->refGrad() =
Zero;
64 this->valueFraction() = 0.0;
78 meanValue_(ptf.meanValue_,
false)
89 meanValue_(ptf.meanValue_,
false)
101 meanValue_(ptf.meanValue_,
false)
115 const scalar t = this->db().time().timeOutputValue();
116 Type meanValue = meanValue_->value(t);
121 gSum(this->patch().magSf()*newValues)
122 /
gSum(this->patch().magSf());
124 if (
mag(meanValue) > small &&
mag(meanValuePsi)/
mag(meanValue) > 0.5)
126 newValues *=
mag(meanValue)/
mag(meanValuePsi);
130 newValues += (meanValue - meanValuePsi);
133 this->refValue() = newValues;
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
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...