Go to the documentation of this file.
47 mixedFvPatchScalarField(
p, iF),
53 valueFraction() = 1.0;
66 mixedFvPatchScalarField(ptf,
p, iF, mapper),
80 mixedFvPatchScalarField(
p, iF),
81 TName_(
dict.lookupOrDefault<
word>(
"T",
"T")),
82 solarLoad_(
dict.lookupOrDefault<
bool>(
"solarLoad",
false))
84 if (
dict.found(
"refValue"))
98 valueFraction() = 1.0;
111 mixedFvPatchScalarField(ptf),
124 mixedFvPatchScalarField(ptf, iF),
157 const label patchI = patch().index();
159 if (dom.nLambda() != 1)
162 <<
" a grey boundary condition is used with a non-grey "
190 const vector& myRayId = dom.IRay(rayId).d();
194 scalarField Ir = dom.IRay(0).Qin().boundaryField()[patchI];
196 for (
label rayI=1; rayI < dom.nRay(); rayI++)
198 Ir += dom.IRay(rayI).Qin().boundaryField()[patchI];
211 if ((-
n[faceI] & myRayId) > 0.0)
214 refGrad()[faceI] = 0.0;
215 valueFraction()[faceI] = 1.0;
218 Ir[faceI]*(scalar(1.0) - emissivity[faceI])
224 Qem[faceI] = refValue()[faceI]*nAve[faceI];
229 valueFraction()[faceI] = 0.0;
230 refGrad()[faceI] = 0.0;
231 refValue()[faceI] = 0.0;
234 Qin[faceI] = Iw[faceI]*nAve[faceI];
241 mixedFvPatchScalarField::updateCoeffs();
251 writeEntryIfDifferent<word>(os,
"T",
"T", TName_);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
tmp< scalarField > emissivity(const label patchId, const label bandI=0) const
Access boundary emissivity on patch.
virtual void operator=(const UList< Type > &)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from string.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
rDeltaT dimensionedInternalField()
greyDiffusiveRadiationMixedFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Radiation intensity for a ray in a given direction.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
This boundary condition provides a grey-diffuse condition for radiation intensity,...
dimensionedScalar pow4(const dimensionedScalar &ds)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
volScalarField & Qem()
Return non-const access to the boundary emmited heat flux.
word TName_
Name of temperature field.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
errorManipArg< error, int > exit(error &err, const int errNo=1)
const vector & dAve() const
Return the average vector inside the solid angle.
static int & msgType()
Message tag of standard messages.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void write(Ostream &) const
Write.
Top level model for radiation modelling.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const volScalarField & Qr() const
Return const access to the boundary heat flux.
bool solarLoad_
Activate solar load.
word name(const complex &)
Return a string representation of a complex.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
volScalarField & Qin()
Return non-const access to the boundary incident heat flux.
Finite Volume Discrete Ordinates Method. Solves the RTE equation for n directions in a participating ...