48 const scalar deltaPhi,
49 const scalar deltaTheta,
58 absorptionEmission_(absorptionEmission),
59 blackBody_(blackBody),
126 omega_ = 2.0*sinTheta*
Foam::sin(deltaTheta/2.0)*deltaPhi;
127 d_ =
vector(sinTheta*sinPhi, sinTheta*cosPhi, cosTheta);
173 dAve_ = coordRot & dAve_;
196 dAve_ = (dAve_ & normal)*meshDir;
197 d_ = (d_ & normal)*meshDir;
272 qr_.boundaryFieldRef() = 0.0;
273 qem_.boundaryFieldRef() = 0.0;
274 qin_.boundaryFieldRef() = 0.0;
276 scalar maxResidual = -GREAT;
286 fvm::div(Ji, ILambda_[lambdaI],
"div(Ji,Ii_h)")
287 +
fvm::Sp(
k*omega_, ILambda_[lambdaI])
291 (
k - absorptionEmission_.aDisp(lambdaI))
292 *blackBody_.bLambda(lambdaI)
294 + absorptionEmission_.E(lambdaI)/4
306 const scalar initialRes =
309 maxResidual =
max(initialRes, maxResidual);
322 I_ += ILambda_[lambdaI];
Defines the attributes of an object for which implicit objectRegistry management is supported,...
readOption readOpt() const noexcept
The read option.
bool typeHeaderOk(const bool checkType=true, const bool search=true, const bool verbose=true)
Read header (uses typeFilePath to find file) and check its info.
static word timeName(const scalar t, const int precision=precision_)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void reset(autoPtr< T > &&other) noexcept
Delete managed object and set to new given pointer.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
void relax(const scalar alpha)
Relax matrix (for steady-state solution).
autoPtr< fvSolver > solver(const dictionary &)
Construct and return the solver.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
static constexpr direction nComponents
Number of components in bool is 1.
label nSolutionD() const
Return the number of valid solved-for dimensions in the mesh.
const Vector< label > & geometricD() const
Return the vector of geometric directions in mesh.
Model to supply absorption and emission coefficients for radiation modelling.
Class black body emission.
Finite Volume Discrete Ordinates Method. Solves the RTE equation for n directions in a participating ...
vector meshOrientation() const
Return meshOrientation.
Radiation intensity for a ray in a given direction.
~radiativeIntensityRay()
Destructor.
scalar theta() const
Return the theta angle.
scalar correct()
Update radiative intensity on i direction.
static const word intensityPrefix
scalar phi() const
Return the phi angle.
void addIntensity()
Add radiative intensities from all the bands.
A class for handling words, derived from Foam::string.
constexpr scalar pi(M_PI)
Different types of constants.
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedScalar pow3(const dimensionedScalar &ds)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
tensor rotationTensor(const vector &n1, const vector &n2)
Rotational transformation tensor from vector n1 to n2.
dimensionedScalar sin(const dimensionedScalar &ds)
static constexpr const zero Zero
Global zero (0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
dimensionedScalar cos(const dimensionedScalar &ds)
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
A non-counting (dummy) refCount.