Go to the documentation of this file.
57 this->patchType() =
dict.getOrDefault<
word>(
"patchType", word::null);
71 meanValue_(ptf.meanValue_.clone())
82 meanValue_(ptf.meanValue_.clone())
94 meanValue_(ptf.meanValue_.clone())
108 const scalar t = this->db().time().timeOutputValue();
109 Type meanValue = meanValue_->value(t);
111 Field<Type> newValues(this->patchInternalField());
117 if (
mag(meanValue) > SMALL &&
mag(meanValuePsi) > 0.5*
mag(meanValue))
119 newValues *=
mag(meanValue)/
mag(meanValuePsi);
123 newValues += (meanValue - meanValuePsi);
136 meanValue_->writeData(
os);
137 this->writeEntry(
"value",
os);
A class for handling words, derived from Foam::string.
fixedMeanFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Type gSum(const FieldField< Field, Type > &f)
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...
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual void write(Ostream &) const
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
virtual void updateCoeffs()
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
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...