81 meanValue_(ptf.meanValue_.clone())
92 meanValue_(ptf.meanValue_.clone())
104 meanValue_(ptf.meanValue_.clone())
118 const scalar t = this->db().time().timeOutputValue();
119 Type meanValue = meanValue_->value(t);
124 gSum(this->patch().magSf()*newValues)
125 /
gSum(this->patch().magSf());
127 if (
mag(meanValue) > SMALL &&
mag(meanValuePsi) > 0.5*
mag(meanValue))
129 newValues *=
mag(meanValue)/
mag(meanValuePsi);
133 newValues += (meanValue - meanValuePsi);
136 this->refValue() = newValues;
146 meanValue_->writeData(
os);
147 this->writeEntry(
"value",
os);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
This boundary condition extrapolates field to the patch using the near-cell values and adjusts the di...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual Field< Type > & refGrad()
virtual Field< Type > & refValue()
virtual scalarField & valueFraction()
This boundary condition provides a generic inflow condition, with specified outflow for the case of r...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
word phiName_
Name of flux field.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Type gSum(const FieldField< Field, Type > &f)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static constexpr const zero Zero
Global zero (0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.