Go to the documentation of this file.
39 absorptionEmissionModel,
40 wideBandAbsorptionEmission,
56 coeffsDict_((
dict.subDict(typeName +
"Coeffs"))),
58 specieIndex_(
label(0)),
61 fileName(coeffsDict_.lookup(
"lookUpTableFileName")),
62 mesh.time().constant(),
70 const dictionary& functionDicts =
dict.subDict(typeName +
"Coeffs");
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"
161 label nSpecies = speciesNames_.size();
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().internalField() =
261 *(iBands_[bandI][1] - iBands_[bandI][0])
267 E().internalField() =
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].internalField() = this->a(j);
297 aLambda[j].internalField()
298 *(iBands_[j][1] - iBands_[j][0])
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
A class for handling words, derived from string.
A class for handling file names.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
const dimensionSet dimEnergy
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
Fundamental fluid thermodynamic properties.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void correct(volScalarField &a_, PtrList< volScalarField > &aLambda) const
Correct rays.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
const word dictName("particleTrackDict")
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Pre-declare SubField and related Field type.
dimensionedScalar pow3(const dimensionedScalar &ds)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
InternalField & internalField()
Return internal field.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual ~wideBandAbsorptionEmission()
Destructor.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
defineTypeNameAndDebug(cloudAbsorptionEmission, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
wideBandAbsorptionEmission(const dictionary &dict, const fvMesh &mesh)
Construct from components.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
Model to supply absorption and emission coefficients for radiation modelling.
const dimensionSet dimVolume(pow3(dimLength))
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Generic GeometricField class.
#define WarningInFunction
Report a warning using Foam::Warning.
addToRunTimeSelectionTable(absorptionEmissionModel, cloudAbsorptionEmission, dictionary)
PtrList< volScalarField > & Y