47 fixedValueFvPatchScalarField(
p, iF),
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))
78 fixedValueFvPatchScalarField(psf,
p, iF, mapper),
91 fixedValueFvPatchScalarField(psf),
105 fixedValueFvPatchScalarField(psf, iF),
123 const phaseSystem&
fluid =
124 db().lookupObject<phaseSystem>(
"phaseProperties");
135 const fluidThermo&
thermo = phase.thermo();
138 phase.boundaryField()[
patch().index()];
150 Info<<
patch().name() <<
" " << phase.name()
151 <<
": Heat flux " <<
gMin(q0) <<
" - " <<
gMax(q0) <<
endl;
160 Info<<
patch().name() <<
" " <<
": overall heat flux " 161 <<
gMin(Q) <<
" - " <<
gMax(Q) <<
" W/m2, power: " 167 fixedValueFvPatchScalarField::updateCoeffs();
176 fixedValueFvPatchScalarField::autoMap(m);
187 fixedValueFvPatchScalarField::rmap(ptf, addr);
190 refCast<const fixedMultiPhaseHeatFluxFvPatchScalarField>(ptf);
192 q_.
rmap(mptf.q_, addr);
212 fixedMultiPhaseHeatFluxFvPatchScalarField
virtual void write(Ostream &) const
Write.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Type gMin(const FieldField< Field, Type > &f)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
psiReactionThermo & thermo
Type gSum(const FieldField< Field, Type > &f)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
fixedMultiPhaseHeatFluxFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
fvPatchField< scalar > fvPatchScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A FieldMapper for finite-volume patch fields.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
int debug
Static debugging option.
Type gMax(const FieldField< Field, Type > &f)
OBJstream os(runTime.globalPath()/outputName)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Calculates a wall temperature that produces the specified overall wall heat flux across all the phase...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
messageStream Info
Information stream (stdout output on master, null elsewhere)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
static constexpr const zero Zero
Global zero (0)