66 meanValue_(ptf.meanValue_,
false)
77 meanValue_(ptf.meanValue_,
false)
89 meanValue_(ptf.meanValue_,
false)
103 const scalar t = this->db().time().timeOutputValue();
104 Type meanValue = meanValue_->value(t);
109 gSum(this->patch().magSf()*newValues)
110 /
gSum(this->patch().magSf());
112 if (
mag(meanValue) > SMALL &&
mag(meanValuePsi)/
mag(meanValue) > 0.5)
114 newValues *=
mag(meanValue)/
mag(meanValuePsi);
118 newValues += (meanValue - meanValuePsi);
131 meanValue_->writeData(os);
132 this->writeEntry(
"value", os);
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
A list of keyword definitions, which are a keyword followed by any number of values (e...
This boundary condition extrapolates field to the patch using the near-cell values and adjusts the di...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Type gSum(const FieldField< Field, Type > &f)
Pre-declare SubField and related Field type.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensioned< scalar > mag(const dimensioned< Type > &)
fixedMeanFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.