46 this->db().time().userUnits(),
75 meanValue_(ptf.meanValue_, false)
87 meanValue_(ptf.meanValue_, false)
101 Type meanValue = meanValue_->value(this->db().time().value());
106 gSum(this->patch().magSf()*newValues)
107 /
gSum(this->patch().magSf());
109 if (
mag(meanValue) > small &&
mag(meanValuePsi)/
mag(meanValue) > 0.5)
111 newValues *=
mag(meanValue)/
mag(meanValuePsi);
115 newValues += (meanValue - meanValuePsi);
118 this->refValue() = newValues;
131 this->db().time().userUnits(),
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
Pre-declare SubField and related Field type.
Run-time selectable general function of one variable.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T, if not found return the given default.
Abstract base class for field mapping.
This boundary condition extrapolates field to the patch using the near-cell values and adjusts the di...
virtual void write(Ostream &) const
Write.
fixedMeanOutletInletFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual Field< Type > & refValue()
virtual scalarField & valueFraction()
virtual Field< Type > & refGrad()
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 string.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
Type gSum(const FieldField< Field, Type > &f)
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensioned< scalar > mag(const dimensioned< Type > &)