48 mixedFvPatchScalarField(
p, iF,
dict, false),
50 TName_(
dict.lookupOrDefault<
word>(
"T",
"T"))
52 if (
dict.found(
"value"))
94 mixedFvPatchScalarField(ptf,
p, iF, mapper),
98 ptf.emissivityMethod(),
113 mixedFvPatchScalarField(ptf, iF),
117 ptf.emissivityMethod(),
132 mixedFvPatchScalarField::map(ptf, mapper);
142 mixedFvPatchScalarField::reset(ptf);
171 <<
" a non-grey boundary condition is used with a grey "
199 for (
label rayI=1; rayI < dom.
nRay(); rayI++)
208 if ((-
n[facei] & d) > 0.0)
211 refGrad()[facei] = 0.0;
212 valueFraction()[facei] = 1.0;
215 Ir[facei]*(1.0 - emissivity[facei])
216 + emissivity[facei]*Eb[facei]
220 qem[facei] = refValue()[facei]*nAve[facei];
225 valueFraction()[facei] = 0.0;
226 refGrad()[facei] = 0.0;
227 refValue()[facei] = 0.0;
230 qin[facei] = Iw[facei]*nAve[facei];
237 mixedFvPatchScalarField::updateCoeffs();
248 writeEntryIfDifferent<word>(os,
"T",
"T", TName_);
#define forAll(list, i)
Loop across all elements in list.
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...
const dimensionSet & dimensions() const
Return dimensions.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static int & msgType()
Message tag of standard messages.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const Type & value() const
Return const reference to value.
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
virtual void operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Common functions to emissivity. It gets supplied from lookup into a dictionary or calculated by the s...
void write(Ostream &) const
Write.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
tmp< scalarField > emissivity() const
Calculate corresponding emissivity field.
virtual void map(const fvPatchScalarField &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
const volScalarField & bLambda(const label lambdaI) const
Black body spectrum.
Finite Volume Discrete Ordinates Method. Solves the RTE equation for n directions in a participating ...
const blackBodyEmission & blackBody() const
Const access to black body.
label nRay() const
Number of rays.
label nLambda() const
Number of wavelengths.
void setRayIdLambdaId(const word &name, label &rayId, label &lambdaId) const
Set the rayId and lambdaId from by decomposing an intensity.
const radiativeIntensityRay & IRay(const label rayI) const
Ray intensity for rayI.
Radiation intensity for a ray in a given direction.
const vector & dAve() const
Return the average vector inside the solid angle.
const vector & d() const
Return direction.
const volScalarField & qr() const
Return const access to the boundary heat flux.
volScalarField & qin()
Return non-const access to the boundary incident heat flux.
volScalarField & qem()
Return non-const access to the boundary emitted heat flux.
This boundary condition provides a wide-band, diffusive radiation condition, where the patch temperat...
virtual void write(Ostream &) const
Write.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void map(const fvPatchScalarField &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
wideBandDiffusiveRadiationMixedFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m^2/K^4].
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionSet dimLength
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
VolField< scalar > volScalarField
dimensionedScalar pow4(const dimensionedScalar &ds)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
const unitConversion unitFraction