Go to the documentation of this file.
106 gSum(this->patch().magSf()*newValues)
107 /
gSum(this->patch().magSf());
109 if (
mag(meanValue_) > SMALL &&
mag(meanValuePsi)/
mag(meanValue_) > 0.5)
111 newValues *=
mag(meanValue_)/
mag(meanValuePsi);
115 newValues += (meanValue_ - meanValuePsi);
128 os.
writeKeyword(
"meanValue") << meanValue_ << token::END_STATEMENT <<
nl;
129 this->writeEntry(
"value", os);
Type meanValue_
MeanValue value the field is adjusted to maintain.
fixedMeanFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Type gSum(const FieldField< Field, Type > &f)
dimensioned< scalar > mag(const dimensioned< Type > &)
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Traits class for primitives.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
This boundary condition extrapolates field to the patch using the near-cell values and adjusts the di...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...