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);
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 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.