39 absorptionEmissionModel,
40 wideBandAbsorptionEmission,
58 specieIndex_(
label(0)),
61 fileName(coeffsDict_.lookup(
"lookUpTableFileName")),
80 dict.
lookup(
"bandLimits") >> iBands_[nBand];
81 dict.
lookup(
"EhrrCoeff") >> iEhrrCoeffs_[nBand];
82 totalWaveLength_ += iBands_[nBand][1] - iBands_[nBand][0];
88 const word& key = iter().keyword();
91 speciesNames_.insert(key, nSpec);
95 if (!speciesNames_.found(key))
98 <<
"specie: " << key <<
"is not in all the bands" 102 coeffs_[nBand][nSpec].initialise(specDicts.
subDict(key));
115 if (lookUpTable_.found(iter.key()))
117 label index = lookUpTable_.findFieldIndex(iter.key());
118 Info<<
"specie: " << iter.key() <<
" found in look-up table " 119 <<
" with index: " << index <<
endl;
120 specieIndex_[iter()] = index;
126 specieIndex_[iter()] = 0.0;
128 Info<<
"species: " << iter.key() <<
" is being solved" <<
endl;
133 <<
"specie: " << iter.key()
134 <<
" is neither in look-up table : " 135 << lookUpTable_.tableName() <<
" nor is being solved" 181 const List<scalar>& species = lookUpTable_.lookUp(ft[i]);
187 if (specieIndex_[
n] != 0)
190 Yipi = species[specieIndex_[
n]]*p[i]*9.869231e-6;
202 coeffs_[
n][bandI].coeffs(T[i]);
204 if (coeffs_[
n][bandI].invTemp())
212 ((((b[5]*Ti + b[4])*Ti + b[3])*Ti + b[2])*Ti + b[1])*Ti
249 if (
mesh().foundObject<volScalarField>(
"Qdot"))
256 E.
ref().primitiveFieldRef() =
259 *(iBands_[bandI][1] - iBands_[bandI][0])
265 E.
ref().primitiveFieldRef() =
268 *(iBands_[bandI][1] - iBands_[bandI][0])
274 <<
"Incompatible dimensions for Qdot field" <<
endl;
290 for (
label j=0; j<nBands_; j++)
292 aLambda[j].primitiveFieldRef() = this->a(j);
295 aLambda[j].primitiveField()
296 *(iBands_[j][1] - iBands_[j][0])
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
T & ref() const
Return non-const reference or generate a fatal error.
void size(const label)
Override size to be inconsistent with allocated storage.
Type & lookupObjectRef(const word &name) const
Lookup and return the object reference of the given Type.
defineTypeNameAndDebug(cloudAbsorptionEmission, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool foundObject(const word &name) const
Is the named Type found?
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
const Time & time() const
Return the top-level database.
Model to supply absorption and emission coefficients for radiation modelling.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Macros for easy insertion into run-time selection tables.
virtual ~wideBandAbsorptionEmission()
Destructor.
const word dictName() const
Return the local dictionary name (final part of scoped name)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
const dimensionSet dimVolume(pow3(dimLength))
const dimensionSet & dimensions() const
Return dimensions.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
A class for handling words, derived from string.
Fundamental fluid thermodynamic properties.
const word & constant() const
Return constant name.
void correct(volScalarField &a_, PtrList< volScalarField > &aLambda) const
Correct rays.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Internal::FieldType & primitiveFieldRef()
Return a reference to the internal field.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
const dimensionSet dimEnergy
dimensionedScalar pow3(const dimensionedScalar &ds)
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Mesh data needed to do the Finite Volume discretisation.
addToRunTimeSelectionTable(absorptionEmissionModel, cloudAbsorptionEmission, dictionary)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
wideBandAbsorptionEmission(const dictionary &dict, const fvMesh &mesh)
Construct from components.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.