46 mixedFvPatchScalarField(p, iF),
52 valueFraction() = 1.0;
65 mixedFvPatchScalarField(ptf, p, iF, mapper),
84 mixedFvPatchScalarField(p, iF),
88 if (dict.
found(
"refValue"))
102 valueFraction() = 1.0;
115 mixedFvPatchScalarField(ptf),
133 mixedFvPatchScalarField(ptf, iF),
165 const fvDOM& dom(refCast<const fvDOM>(radiation));
171 const label patchI = patch().index();
173 if (dom.nLambda() != 1)
178 "greyDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs" 179 ) <<
" a grey boundary condition is used with a non-grey " 198 const vector& myRayId = dom.IRay(rayId).d();
202 scalarField Ir = dom.IRay(0).Qin().boundaryField()[patchI];
204 for (
label rayI=1; rayI < dom.nRay(); rayI++)
206 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) - temissivity[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();
252 writeEntryIfDifferent<word>(os,
"T",
"T", TName_);
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Top level model for radiation modelling.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
word name(const complex &)
Return a string representation of a complex.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
volScalarField & Qem()
Return non-const access to the boundary emmited heat flux.
Finite Volume Discrete Ordinates Method. Solves the RTE equation for n directions in a participating ...
virtual void write(Ostream &) const
Write.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Foam::fvPatchFieldMapper.
void write(Ostream &) const
Write.
A list of keyword definitions, which are a keyword followed by any number of values (e...
word emissivityMethod() const
Method to obtain emissivity.
greyDiffusiveRadiationMixedFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static const Field< scalar > & null()
Return a null field.
const vector & dAve() const
Return the average vector inside the solid angle.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
This boundary condition provides a grey-diffuse condition for radiation intensity, I, for use with the finite-volume discrete-ordinates model (fvDOM), in which the radiation temperature is retrieved from the temperature field boundary condition.
static int & msgType()
Message tag of standard messages.
Macros for easy insertion into run-time selection tables.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
scalarField emissivity_
Emissivity.
rDeltaT dimensionedInternalField()
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
volScalarField & Qin()
Return non-const access to the boundary incident heat flux.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Radiation intensity for a ray in a given direction.
const volScalarField & Qr() const
Return const access to the boundary heat flux.
dimensionedScalar pow4(const dimensionedScalar &ds)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual label size() const
Return size.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)