56 outletPatchName_(dict.
lookup(
"outletPatch")),
72 outletPatchName_(ptf.outletPatchName_),
73 phiName_(ptf.phiName_)
85 outletPatchName_(ptf.outletPatchName_),
86 phiName_(ptf.phiName_)
100 outletPatchName_(ptf.outletPatchName_),
101 phiName_(ptf.phiName_)
119 this->internalField()
123 const fvPatch& p = this->patch();
124 label outletPatchID =
127 if (outletPatchID < 0)
130 <<
"Unable to find outlet patch " << outletPatchName_
140 this->db().objectRegistry::template lookupObject<surfaceScalarField>
144 scalar sumOutletPatchPhi =
gSum(outletPatchPhi);
146 if (sumOutletPatchPhi > small)
148 Type averageOutletField =
149 gSum(outletPatchPhi*outletPatchField)
156 Type averageOutletField =
157 gSum(outletPatch.
magSf()*outletPatchField)
172 << outletPatchName_ << token::END_STATEMENT <<
nl;
173 if (phiName_ !=
"phi")
177 this->writeEntry(
"value", os);
const fvBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const scalarField & magSf() const
Return face area magnitudes.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
label findPatchID(const word &patchName) const
Find patch index given a name.
Generic GeometricField class.
Type gSum(const FieldField< Field, Type > &f)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
A class for handling words, derived from string.
const polyPatch & patch() const
Return the polyPatch.
Foam::fvPatchFieldMapper.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.