Go to the documentation of this file.
57 this->phiName_ =
dict.lookupOrDefault<
word>(
"phi",
"phi");
64 this->refValue() = *
this;
65 this->refGrad() =
Zero;
66 this->valueFraction() = 0.0;
80 meanValue_(ptf.meanValue_.clone())
91 meanValue_(ptf.meanValue_.clone())
103 meanValue_(ptf.meanValue_.clone())
117 const scalar t = this->db().time().timeOutputValue();
118 Type meanValue = meanValue_->value(t);
126 if (
mag(meanValue) > SMALL &&
mag(meanValuePsi)/
mag(meanValue) > 0.5)
128 newValues *=
mag(meanValue)/
mag(meanValuePsi);
132 newValues += (meanValue - meanValuePsi);
135 this->refValue() = newValues;
145 meanValue_->writeData(os);
146 this->writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
This boundary condition provides a generic inflow condition, with specified outflow for the case of r...
A class for handling words, derived from Foam::string.
virtual void write(Ostream &) const
Write.
static constexpr const zero Zero
Global zero.
Type gSum(const FieldField< Field, Type > &f)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
Generic templated field 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,...
const std::string patch
OpenFOAM patch number as a std::string.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
fixedMeanOutletInletFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
This boundary condition extrapolates field to the patch using the near-cell values and adjusts the di...
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...