42 absorptionEmissionModel,
43 localDensityAbsorptionEmission,
53 Foam::radiation::localDensityAbsorptionEmission::alpha(word alphaName)
const 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
96 mesh_.time().timeName(),
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;
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
localDensityAbsorptionEmission(const dictionary &dict, const fvMesh &mesh)
Construct from components.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
defineTypeNameAndDebug(cloudAbsorptionEmission, 0)
Ignore writing from objectRegistry::writeObject()
const dimensionSet dimless
Dimensionless.
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
const fvMesh & mesh_
Reference to the fvMesh.
Macros for easy insertion into run-time selection tables.
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
#define forAll(list, i)
Loop across all elements in list.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionedScalar e
Elementary charge.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
wordList sortedNames() const
The sorted names of all objects.
dimensionedScalar pow3(const dimensionedScalar &ds)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
addToRunTimeSelectionTable(absorptionEmissionModel, cloudAbsorptionEmission, dictionary)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
Internal & ref(const bool updateAccessTime=true)
Same as internalFieldRef()
bool foundObject(const word &name, const bool recursive=false) const
Is the named Type found?
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
A class for managing temporary objects.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
static constexpr const zero Zero
Global zero (0)