39 absorptionEmissionModel,
40 wideBandAbsorptionEmission,
56 coeffsDict_((dict.
subDict(typeName +
"Coeffs"))),
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;
129 specieIndex_[iter()] = 0.0;
131 Info<<
"species: " << iter.key() <<
" is being solved" <<
endl;
136 <<
"specie: " << iter.key()
137 <<
" is neither in look-up table : " 138 << lookUpTable_.tableName() <<
" nor is being solved" 184 const List<scalar>& species = lookUpTable_.lookUp(ft[i]);
190 if (specieIndex_[
n] != 0)
193 Yipi = species[specieIndex_[
n]]*p[i]*9.869231e-6;
205 coeffs_[
n][bandI].coeffs(T[i]);
207 if (coeffs_[
n][bandI].invTemp())
215 ((((b[5]*Ti + b[4])*Ti + b[3])*Ti + b[2])*Ti + b[1])*Ti
252 if (
mesh().foundObject<volScalarField>(
"dQ"))
258 E.
ref().primitiveFieldRef() =
261 *(iBands_[bandI][1] - iBands_[bandI][0])
267 E.
ref().primitiveFieldRef() =
270 *(iBands_[bandI][1] - iBands_[bandI][0])
276 <<
"Incompatible dimensions for dQ field" <<
endl;
292 for (
label j=0; j<nBands_; j++)
294 aLambda[j].primitiveFieldRef() = this->a(j);
297 aLambda[j].primitiveField()
298 *(iBands_[j][1] - iBands_[j][0])
#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...
bool foundObject(const word &name) const
Is the named Type found?
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const word dictName() const
Return the local dictionary name (final part of scoped name)
void size(const label)
Override size to be inconsistent with allocated storage.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
defineTypeNameAndDebug(cloudAbsorptionEmission, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
Model to supply absorption and emission coefficients for radiation modelling.
Macros for easy insertion into run-time selection tables.
virtual ~wideBandAbsorptionEmission()
Destructor.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
const dimensionSet dimVolume(pow3(dimLength))
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
A class for handling words, derived from string.
Fundamental fluid thermodynamic properties.
const word & constant() const
Return constant name.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
const dimensionSet & dimensions() const
Return dimensions.
Internal::FieldType & primitiveFieldRef()
Return a reference to the internal field.
void correct(volScalarField &a_, PtrList< volScalarField > &aLambda) const
Correct rays.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
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...
PtrList< volScalarField > & Y
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.
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
const Time & time() const
Return the top-level database.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.