42 outletPatchName_(
dict.lookup(
"outletPatch")),
43 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi"))
58 outletPatchName_(ptf.outletPatchName_),
59 phiName_(ptf.phiName_)
72 outletPatchName_(ptf.outletPatchName_),
73 phiName_(ptf.phiName_)
97 p.patch().boundaryMesh().findIndex(outletPatchName_);
99 if (outletPatchID < 0)
102 <<
"Unable to find outlet patch " << outletPatchName_
106 const fvPatch& outletPatch =
p.boundaryMesh()[outletPatchID];
109 f.boundaryField()[outletPatchID];
112 this->db().objectRegistry::template lookupObject<surfaceScalarField>
116 scalar sumOutletPatchPhi =
gSum(outletPatchPhi);
118 if (sumOutletPatchPhi > small)
120 Type averageOutletField =
121 gSum(outletPatchPhi*outletPatchField)
128 Type averageOutletField =
129 gSum(outletPatch.
magSf()*outletPatchField)
143 writeEntry(os,
"outletPatch", outletPatchName_);
144 if (phiName_ !=
"phi")
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
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....
Abstract base class for field mapping.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const scalarField & magSf() const
Return face area magnitudes.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Type gSum(const FieldField< Field, Type > &f)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
errorManip< error > abort(error &err)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)