40Foam::fixedMultiPhaseHeatFluxFvPatchScalarField::
41fixedMultiPhaseHeatFluxFvPatchScalarField
47 fixedValueFvPatchScalarField(
p, iF),
54Foam::fixedMultiPhaseHeatFluxFvPatchScalarField::
55fixedMultiPhaseHeatFluxFvPatchScalarField
62 fixedValueFvPatchScalarField(
p, iF,
dict),
63 q_(
"q",
dict,
p.size()),
64 relax_(
dict.getOrDefault<scalar>(
"relax", 1)),
65 Tmin_(
dict.getOrDefault<scalar>(
"Tmin", 273))
69Foam::fixedMultiPhaseHeatFluxFvPatchScalarField::
70fixedMultiPhaseHeatFluxFvPatchScalarField
78 fixedValueFvPatchScalarField(psf,
p, iF, mapper),
85Foam::fixedMultiPhaseHeatFluxFvPatchScalarField::
86fixedMultiPhaseHeatFluxFvPatchScalarField
91 fixedValueFvPatchScalarField(psf),
98Foam::fixedMultiPhaseHeatFluxFvPatchScalarField::
99fixedMultiPhaseHeatFluxFvPatchScalarField
105 fixedValueFvPatchScalarField(psf, iF),
141 thermo.T().boundaryField()[patch().index()];
151 <<
": Heat flux " <<
gMin(q0) <<
" - " <<
gMax(q0) <<
endl;
160 Info<< patch().name() <<
" " <<
": overall heat flux "
161 <<
gMin(Q) <<
" - " <<
gMax(Q) <<
" W/m2, power: "
162 <<
gSum(patch().magSf()*Q) <<
" W" <<
endl;
167 fixedValueFvPatchScalarField::updateCoeffs();
176 fixedValueFvPatchScalarField::autoMap(m);
187 fixedValueFvPatchScalarField::rmap(ptf, addr);
190 refCast<const fixedMultiPhaseHeatFluxFvPatchScalarField>(ptf);
192 q_.rmap(mptf.q_, addr);
201 writeEntry(
"value",
os);
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
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.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Calculates a wall temperature that produces the specified overall wall heat flux across all the phase...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Fundamental fluid thermodynamic properties.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Class to represent a system of phases and model interfacial transfers between them.
const phaseModelList & phases() const
Return the phase models.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
const word & name() const
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
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)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
static constexpr const zero Zero
Global zero (0)
Type gMin(const FieldField< Field, Type > &f)
Type gMax(const FieldField< Field, Type > &f)
#define forAll(list, i)
Loop across all elements in list.