56 outletPatchName_(dict.
lookup(
"outletPatch")),
72 outletPatchName_(ptf.outletPatchName_),
73 phiName_(ptf.phiName_)
86 outletPatchName_(ptf.outletPatchName_),
87 phiName_(ptf.phiName_)
105 this->internalField()
109 const fvPatch& p = this->patch();
110 label outletPatchID =
113 if (outletPatchID < 0)
116 <<
"Unable to find outlet patch " << outletPatchName_
126 this->db().objectRegistry::template lookupObject<surfaceScalarField>
130 scalar sumOutletPatchPhi =
gSum(outletPatchPhi);
132 if (sumOutletPatchPhi > small)
134 Type averageOutletField =
135 gSum(outletPatchPhi*outletPatchField)
142 Type averageOutletField =
143 gSum(outletPatch.
magSf()*outletPatchField)
157 writeEntry(os,
"outletPatch", outletPatchName_);
158 if (phiName_ !=
"phi")
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.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
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.