Go to the documentation of this file.
43 fixedValueFvPatchScalarField(
p, iF),
61 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
62 outletPatchName_(ptf.outletPatchName_),
63 phiName_(ptf.phiName_),
78 fixedValueFvPatchScalarField(
p, iF,
dict),
80 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
82 TMin_(
dict.getOrDefault<scalar>(
"TMin", 0)),
83 TMax_(
dict.getOrDefault<scalar>(
"TMax", 5000))
94 fixedValueFvPatchScalarField(ptf),
95 outletPatchName_(ptf.outletPatchName_),
96 phiName_(ptf.phiName_),
111 fixedValueFvPatchScalarField(ptf, iF),
112 outletPatchName_(ptf.outletPatchName_),
113 phiName_(ptf.phiName_),
135 const fvPatch& fvp = this->
patch();
137 label outletPatchID =
138 fvp.patch().boundaryMesh().findPatchID(outletPatchName_);
140 if (outletPatchID < 0)
143 <<
"Unable to find outlet patch " << outletPatchName_
147 const fvPatch& outletPatch = fvp.boundaryMesh()[outletPatchID];
149 const fvPatchField<scalar>& outletPatchField =
150 vsf.boundaryField()[outletPatchID];
155 const scalarField& outletPatchPhi =
phi.boundaryField()[outletPatchID];
156 scalar sumOutletPatchPhi =
gSum(outletPatchPhi);
158 if (sumOutletPatchPhi > SMALL)
160 const basicThermo&
thermo =
166 scalar averageOutletField =
167 gSum(outletPatchPhi*outletPatchField)/sumOutletPatchPhi;
177 scalar averageOutletField =
178 gSum(outletPatch.magSf()*outletPatchField)
179 /
gSum(outletPatch.magSf());
184 fixedValueFvPatchScalarField::updateCoeffs();
200 this->writeEntry(
"value",
os);
211 outletMappedUniformInletHeatAdditionFvPatchField
fvPatchField< scalar > fvPatchScalarField
virtual void write(Ostream &) const
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from Foam::string.
Type gAverage(const FieldField< Field, Type > &f)
static const word dictName
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Abstract base-class for fluid and solid thermodynamic properties.
Type gSum(const FieldField< Field, Type > &f)
label min(const labelHashSet &set, label minValue=labelMax)
const fvBoundaryMesh & boundaryMesh() const
Generic templated field type.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
const polyBoundaryMesh & boundaryMesh() const
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
label findPatchID(const word &patchName, const bool allowNotFound=true) const
label max(const labelHashSet &set, label maxValue=labelMin)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
errorManip< error > abort(error &err)
#define FatalErrorInFunction
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & writeEntry(const keyType &key, const T &value)
const polyPatch & patch() const
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
const scalarField & magSf() const
Generic GeometricField class.
const Boundary & boundaryField() const
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...