47 fixedGradientFvPatchScalarField(
p, iF),
49 qrIncident_(
p.size(),
Zero)
62 fixedGradientFvPatchScalarField(psf,
p, iF, mapper),
64 qrIncident_(psf.qrIncident_)
76 fixedGradientFvPatchScalarField(
p, iF),
78 qrIncident_(
"qrIncident",
dict,
p.size())
80 if (!this->readGradientEntry(
dict) || !this->readValueEntry(
dict))
82 extrapolateInternal();
95 fixedGradientFvPatchScalarField(psf, iF),
97 qrIncident_(psf.qrIncident_)
107 fixedGradientFvPatchScalarField(ptf),
109 qrIncident_(ptf.qrIncident_)
120 fixedGradientFvPatchScalarField::autoMap(m);
122 qrIncident_.autoMap(m);
132 fixedGradientFvPatchScalarField::rmap(psf, addr);
141 qrIncident_.rmap(thftpsf.qrIncident_, addr);
159 radiation.absorptionEmission().e()().boundaryField()[patch().index()]
169 fixedGradientFvPatchScalarField::updateCoeffs();
175 scalar qr =
gSum(kappa(*
this)*gradient()*patch().magSf());
176 Info<< patch().boundaryMesh().mesh().name() <<
':'
177 << patch().name() <<
':'
178 << this->internalField().name() <<
" -> "
179 <<
" radiativeFlux:" << qr
180 <<
" walltemperature "
181 <<
" min:" <<
limits.min()
196 qrIncident_.writeEntry(
"qrIncident",
os);
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...
A min/max value pair with additional methods. In addition to conveniently storing values,...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void write(Ostream &) const
Write.
A FieldMapper for finite-volume patch fields.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Boundary condition for thermal coupling for solid regions. Used to emulate a fixed incident radiative...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void write(Ostream &) const
Write.
fixedIncidentRadiationFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
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.
Top level model for radiation modelling.
Common functions used in temperature coupled boundaries.
virtual void autoMap(const fvPatchFieldMapper &)=0
Map (and resize as needed) from self given a mapping object.
void write(Ostream &os) const
Write.
virtual void rmap(const fvPatchField< scalar > &, const labelList &)=0
Reverse map the given fvPatchField onto this fvPatchField.
virtual tmp< scalarField > kappa(const scalarField &Tp) const
Given patch temperature calculate corresponding K field.
temperatureCoupledBase(const fvPatch &patch, const KMethodType method=KMethodType::mtFluidThermo)
Default construct from patch, using fluidThermo (default) or specified method.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
Different types of constants.
Namespace for handling debugging switches.
Namespace for radiation modelling.
Type gAverage(const FieldField< Field, Type > &f, const label comm)
The global arithmetic average of a FieldField.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
Type gSum(const FieldField< Field, Type > &f)
List< label > labelList
A List of labels.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar pow4(const dimensionedScalar &ds)
MinMax< Type > gMinMax(const FieldField< Field, Type > &f)
static constexpr const zero Zero
Global zero (0).
fvPatchField< scalar > fvPatchScalarField