42 absorptionEmissionModel,
43 localDensityAbsorptionEmission,
58 <<
"Unable to retrieve density field " << alphaName <<
" from "
71 const dictionary&
dict,
76 coeffsDict_(
dict.subDict(typeName +
"Coeffs")),
77 alphaNames_(coeffsDict_.lookup(
"alphaNames")),
78 aCoeff_(coeffsDict_.lookup(
"aCoeff")),
79 eCoeff_(coeffsDict_.lookup(
"eCoeff")),
80 ECoeff_(coeffsDict_.lookup(
"ECoeff"))
89 tmp<volScalarField> ta
112 a +=
max(
alpha(alphaNames_[i]), scalar(0))*aPhase;
122 tmp<volScalarField> te
129 mesh_.time().timeName(),
145 e +=
max(
alpha(alphaNames_[i]), scalar(0))*ePhase;
155 tmp<volScalarField> tE
162 mesh_.time().timeName(),
184 E +=
max(
alpha(alphaNames_[i]), scalar(0))*EPhase;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
static word timeName(const scalar t, const int precision=precision_)
const Time & time() const
Return the top-level database.
bool foundObject(const word &name, const bool recursive=false) const
Is the named Type found?
wordList sortedNames() const
The sorted names of all objects.
const Type & lookupObject(const word &name, const bool recursive=false) const
const fvMesh & mesh_
Reference to the fvMesh.
virtual tmp< volScalarField > a(const label bandI=0) const
Absorption coefficient (net)
Constant radiation absorption and emission coefficients for continuous phase.
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
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.
const dimensionSet dimless
Dimensionless.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensionedScalar pow3(const dimensionedScalar &ds)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static constexpr const zero Zero
Global zero (0)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.