Go to the documentation of this file.
33 #include "phaseSystem.H"
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),
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);
201 writeEntry(
"value", os);
int debug
Static debugging option.
virtual void write(Ostream &) const
Write.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
static constexpr const zero Zero
Global zero (0)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
Fundamental fluid thermodynamic properties.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Type gSum(const FieldField< Field, Type > &f)
#define forAll(list, i)
Loop across all elements in list.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
messageStream Info
Information stream (uses stdout - output is on the master only)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Calculates a wall temperature that produces the specified overall wall heat flux across all the phase...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
const word & name() const
const std::string patch
OpenFOAM patch number as a std::string.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Foam::fvPatchFieldMapper.
Class to represent a system of phases and model interfacial transfers between them.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
Type gMin(const FieldField< Field, Type > &f)
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
fixedMultiPhaseHeatFluxFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Type gMax(const FieldField< Field, Type > &f)
virtual void write(Ostream &) const
Write.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...