36Foam::outletMappedUniformInletHeatAdditionFvPatchField::
37outletMappedUniformInletHeatAdditionFvPatchField
43 fixedValueFvPatchScalarField(
p, iF),
52Foam::outletMappedUniformInletHeatAdditionFvPatchField::
53outletMappedUniformInletHeatAdditionFvPatchField
61 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
62 outletPatchName_(ptf.outletPatchName_),
63 phiName_(ptf.phiName_),
70Foam::outletMappedUniformInletHeatAdditionFvPatchField::
71outletMappedUniformInletHeatAdditionFvPatchField
78 fixedValueFvPatchScalarField(
p, iF,
dict),
79 outletPatchName_(
dict.get<
word>(
"outletPatch")),
80 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
81 Q_(
dict.get<scalar>(
"Q")),
82 TMin_(
dict.getOrDefault<scalar>(
"TMin", 0)),
83 TMax_(
dict.getOrDefault<scalar>(
"TMax", 5000))
88Foam::outletMappedUniformInletHeatAdditionFvPatchField::
89outletMappedUniformInletHeatAdditionFvPatchField
94 fixedValueFvPatchScalarField(ptf),
95 outletPatchName_(ptf.outletPatchName_),
96 phiName_(ptf.phiName_),
104Foam::outletMappedUniformInletHeatAdditionFvPatchField::
105outletMappedUniformInletHeatAdditionFvPatchField
111 fixedValueFvPatchScalarField(ptf, iF),
112 outletPatchName_(ptf.outletPatchName_),
113 phiName_(ptf.phiName_),
135 const fvPatch& fvp = this->patch();
137 label outletPatchID =
140 if (outletPatchID < 0)
143 <<
"Unable to find outlet patch " << outletPatchName_
156 scalar sumOutletPatchPhi =
gSum(outletPatchPhi);
158 if (sumOutletPatchPhi > SMALL)
166 scalar averageOutletField =
167 gSum(outletPatchPhi*outletPatchField)/sumOutletPatchPhi;
177 scalar averageOutletField =
178 gSum(outletPatch.
magSf()*outletPatchField)
184 fixedValueFvPatchScalarField::updateCoeffs();
200 this->writeEntry(
"value",
os);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
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,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
Abstract base-class for fluid and solid thermodynamic properties.
static const word dictName
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const scalarField & magSf() const
Return face area magnitudes.
const fvBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
const polyPatch & patch() const
Return the polyPatch.
label findPatchID(const word &patchName, const bool allowNotFound=true) const
Find patch index given a name, return -1 if not found.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Type gSum(const FieldField< Field, Type > &f)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
errorManip< error > abort(error &err)
Type gAverage(const FieldField< Field, Type > &f)