45 fixedValueFvPatchScalarField(
p, iF),
59 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
60 qro_(ptf.qro_, mapper)
73 qro_(
"qro",
dict,
p.size())
75 if (!this->readValueEntry(
dict))
88 fixedValueFvPatchScalarField(ptf),
100 fixedValueFvPatchScalarField(ptf, iF),
113 fixedValueFvPatchScalarField::autoMap(m);
124 fixedValueFvPatchScalarField::rmap(ptf, addr);
127 refCast<const greyDiffusiveViewFactorFixedValueFvPatchScalarField>(ptf);
129 qro_.
rmap(mrptf.qro_, addr);
143 scalar Q =
gSum((*
this)*
patch().magSf());
145 Info<<
patch().boundaryMesh().mesh().name() <<
':' 146 <<
patch().name() <<
':' 147 << this->internalField().name() <<
" <- " 148 <<
" heat transfer rate:" << Q
149 <<
" wall radiative heat flux " 150 <<
" min:" <<
gMin(*
this)
151 <<
" max:" <<
gMax(*
this)
164 db().lookupObject<
viewFactor>(
"radiationProperties");
175 if (this->db().foundObject<volScalarField>(qSecName))
195 qro_.writeEntry(
"qro",
os);
makePatchTypeField(fvPatchScalarField, greyDiffusiveRadiationMixedFvPatchScalarField)
virtual void write(Ostream &) const
Write includes "value" entry.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Type gMin(const FieldField< Field, Type > &f)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Macros for easy insertion into run-time selection tables.
Type gSum(const FieldField< Field, Type > &f)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
greyDiffusiveViewFactorFixedValueFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A class for handling words, derived from Foam::string.
A FieldMapper for finite-volume patch fields.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
tmp< scalarField > qro(label bandI=0) const
Return external + solar load radiative heat flux.
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)
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
This boundary condition provides a grey-diffuse condition for radiative heat flux, qr, for use with the view factor model.
Type gAverage(const FieldField< Field, Type > &f)
virtual void operator=(const UList< scalar > &)
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
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)
Internal & ref(const bool updateAccessTime=true)
Same as internalFieldRef()
A class for managing temporary objects.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
View factor radiation model. The system solved is: C q = b where: Cij = deltaij/Ej - (1/Ej - 1)Fij q ...
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
virtual void write(Ostream &) const
Write.
static constexpr const zero Zero
Global zero (0)