42 absorptionEmissionModel,
43 localDensityAbsorptionEmission,
53 Foam::radiation::localDensityAbsorptionEmission::alpha(word alphaName)
const 60 <<
"Unable to retrieve density field " << alphaName <<
" from " 73 const dictionary&
dict,
78 coeffsDict_(
dict.subDict(typeName +
"Coeffs")),
79 alphaNames_(coeffsDict_.lookup(
"alphaNames")),
80 aCoeff_(coeffsDict_.lookup(
"aCoeff")),
81 eCoeff_(coeffsDict_.lookup(
"eCoeff")),
82 ECoeff_(coeffsDict_.lookup(
"ECoeff"))
91 tmp<volScalarField> ta
98 mesh_.time().timeName(),
114 a +=
max(
alpha(alphaNames_[i]), scalar(0))*aPhase;
124 tmp<volScalarField> te
131 mesh_.time().timeName(),
147 e +=
max(
alpha(alphaNames_[i]), scalar(0))*ePhase;
157 tmp<volScalarField> tE
164 mesh_.time().timeName(),
186 E +=
max(
alpha(alphaNames_[i]), scalar(0))*EPhase;
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.
const Type * cfindObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
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()
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: [].
Do not request registration (bool: false)
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
static constexpr const zero Zero
Global zero (0)