40Foam::radiation::fixedIncidentRadiationFvPatchScalarField::
41fixedIncidentRadiationFvPatchScalarField
47 fixedGradientFvPatchScalarField(
p, iF),
56 qrIncident_(
p.size(), Zero)
60Foam::radiation::fixedIncidentRadiationFvPatchScalarField::
61fixedIncidentRadiationFvPatchScalarField
69 fixedGradientFvPatchScalarField(psf,
p, iF, mapper),
71 qrIncident_(psf.qrIncident_)
75Foam::radiation::fixedIncidentRadiationFvPatchScalarField::
76fixedIncidentRadiationFvPatchScalarField
83 fixedGradientFvPatchScalarField(
p, iF),
85 qrIncident_(
"qrIncident",
dict,
p.size())
101Foam::radiation::fixedIncidentRadiationFvPatchScalarField::
102fixedIncidentRadiationFvPatchScalarField
108 fixedGradientFvPatchScalarField(psf, iF),
110 qrIncident_(psf.qrIncident_)
114Foam::radiation::fixedIncidentRadiationFvPatchScalarField::
115fixedIncidentRadiationFvPatchScalarField
120 fixedGradientFvPatchScalarField(ptf),
122 qrIncident_(ptf.qrIncident_)
133 fixedGradientFvPatchScalarField::autoMap(m);
135 qrIncident_.autoMap(m);
145 fixedGradientFvPatchScalarField::rmap(psf, addr);
148 refCast<const fixedIncidentRadiationFvPatchScalarField>
154 qrIncident_.rmap(thftpsf.qrIncident_, addr);
172 radiation.absorptionEmission().e()().boundaryField()[patch().index()]
182 fixedGradientFvPatchScalarField::updateCoeffs();
186 scalar qr =
gSum(kappa(*
this)*gradient()*patch().magSf());
187 Info<< patch().boundaryMesh().mesh().name() <<
':'
188 << patch().name() <<
':'
189 << this->internalField().name() <<
" -> "
190 <<
" radiativeFlux:" << qr
191 <<
" walltemperature "
192 <<
" min:" <<
gMin(*
this)
193 <<
" max:" <<
gMax(*
this)
205 fixedGradientFvPatchScalarField::write(
os);
207 qrIncident_.writeEntry(
"qrIncident",
os);
208 writeEntry(
"value",
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...
Generic templated field type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
const Type & value() const
Return const reference to value.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
virtual void operator=(const UList< Type > &)
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 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.
virtual void rmap(const fvPatchField< scalar > &, const labelList &)=0
Reverse map the given fvPatchField onto this fvPatchField.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
Different types of constants.
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.
dimensionedScalar pow4(const dimensionedScalar &ds)
Type gAverage(const FieldField< Field, Type > &f)
Type gMin(const FieldField< Field, Type > &f)
Type gMax(const FieldField< Field, Type > &f)