Go to the documentation of this file.
45 const scalar deltaPhi,
46 const scalar deltaTheta,
55 absorptionEmission_(absorptionEmission),
56 blackBody_(blackBody),
62 mesh_.time().timeName(),
75 mesh_.time().timeName(),
88 mesh_.time().timeName(),
101 mesh_.time().timeName(),
123 omega_ = 2.0*sinTheta*
Foam::sin(deltaTheta/2.0)*deltaPhi;
124 d_ =
vector(sinTheta*sinPhi, sinTheta*
cosPhi, cosTheta);
138 if (mesh_.nSolutionD() == 2)
143 meshDir = dom_.meshOrientation();
149 if (mesh_.geometricD()[cmpt] == -1)
159 dAve_ = coordRot & dAve_;
162 else if (mesh_.nSolutionD() == 1)
167 meshDir = dom_.meshOrientation();
173 if (mesh_.geometricD()[cmpt] == 1)
181 dAve_ = (dAve_ &
normal)*meshDir;
182 d_ = (d_ &
normal)*meshDir;
191 intensityPrefix +
"_" +
name(rayId) +
"_" +
name(lambdaI),
192 mesh_.time().timeName(),
210 if (!IDefaultPtr.
valid())
219 mesh_.time().timeName(),
254 Qr_.boundaryField() = 0.0;
256 scalar maxResidual = -GREAT;
264 if (!dom_.cacheDiv())
270 fvm::div(Ji, ILambda_[lambdaI],
"div(Ji,Ii_h)")
271 +
fvm::Sp(
k*omega_, ILambda_[lambdaI])
275 (
k - absorptionEmission_.aDisp(lambdaI))
276 *blackBody_.bLambda(lambdaI)
277 + absorptionEmission_.ECont(lambdaI)
278 + absorptionEmission_.EDisp(lambdaI)
286 dom_.fvRayDiv(myRayId_, lambdaI)
287 +
fvm::Sp(
k*omega_, ILambda_[lambdaI])
291 (
k - absorptionEmission_.aDisp(lambdaI))
292 *blackBody_.bLambda(lambdaI)
293 + absorptionEmission_.E(lambdaI)/4
306 const scalar initialRes =
309 maxResidual =
max(initialRes, maxResidual);
322 I_ += ILambda_[lambdaI];
Templated 3D tensor derived from VectorSpace adding construction from 9 components,...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
dimensionedScalar sin(const dimensionedScalar &ds)
~radiativeIntensityRay()
Destructor.
static const word intensityPrefix
void addIntensity()
Add radiative intensities from all the bands.
@ nComponents
Number of components in this vector space.
scalar correct()
Update radiative intensity on i direction.
tmp< fvMatrix< Type > > Sp(const DimensionedField< scalar, volMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)
bool headerOk()
Read and check header info.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
readOption readOpt() const
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Vector< scalar > vector
A scalar version of the templated Vector.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
SolverPerformance< Type > solve(fvMatrix< Type > &, const dictionary &)
Solve returning the solution statistics given convergence tolerance.
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set).
label k
Boltzmann constant.
void reset(T *=0)
If object pointer already set, delete object and set to given.
Model to supply absorption and emission coefficients for radiation modelling.
Class black body emission.
tensor rotationTensor(const vector &n1, const vector &n2)
radiativeIntensityRay(const radiativeIntensityRay &)
Disallow default bitwise copy construct.
Generic GeometricField class.
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
word name(const complex &)
Return a string representation of a complex.
A normal distribution model.
dimensionedScalar cos(const dimensionedScalar &ds)
Finite Volume Discrete Ordinates Method. Solves the RTE equation for n directions in a participating ...