66 meanValue_(ptf.meanValue_,
false)
78 meanValue_(ptf.meanValue_,
false)
92 const scalar t = this->db().time().timeOutputValue();
93 Type meanValue = meanValue_->value(t);
98 gSum(this->patch().magSf()*newValues)
99 /
gSum(this->patch().magSf());
101 if (
mag(meanValue) > small &&
mag(meanValuePsi)/
mag(meanValue) > 0.5)
103 newValues *=
mag(meanValue)/
mag(meanValuePsi);
107 newValues += (meanValue - meanValuePsi);
Run-time selectable general function of one variable.
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 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.
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)
virtual void write(Ostream &) const
Write.
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.