Go to the documentation of this file.
44 absorptionEmissionModel,
45 wideBandAbsorptionEmission,
61 coeffsDict_((
dict.optionalSubDict(typeName +
"Coeffs"))),
71 for (
const entry& dEntry : functionDicts)
78 const dictionary&
dict = dEntry.dict();
82 totalWaveLength_ += iBands_[nBand][1] - iBands_[nBand][0];
86 const dictionary& specDicts =
dict.
subDict(
"species");
87 for (
const entry& dEntry : specDicts)
89 const word&
key = dEntry.keyword();
98 <<
"specie: " <<
key <<
" is not in all the bands"
101 coeffs_[nBand][nSpec].initialise(specDicts.subDict(
key));
110 coeffsDict_.
found(
"lookUpTableFileName")
111 &&
"none" != coeffsDict_.
get<word>(
"lookUpTableFileName")
114 lookUpTablePtr_.reset
116 new interpolationLookUpTable<scalar>
118 coeffsDict_.
get<fileName>(
"lookUpTableFileName"),
127 <<
"specie ft is not present to use with "
128 <<
"lookUpTableFileName " <<
nl
139 const word& specieName = iter.key();
140 const label index = iter.val();
146 if (lookUpTablePtr_().found(specieName))
148 const label fieldIndex =
149 lookUpTablePtr_().findFieldIndex(specieName);
151 Info<<
"specie: " << specieName <<
" found on look-up table "
152 <<
" with index: " << fieldIndex <<
endl;
154 specieIndex_[index] = fieldIndex;
159 specieIndex_[index] = 0;
161 Info<<
"specie: " << specieName <<
" is being solved" <<
endl;
166 <<
"specie: " << specieName
167 <<
" is neither in look-up table: "
168 << lookUpTablePtr_().tableName()
169 <<
" nor is being solved" <<
nl
176 specieIndex_[index] = 0;
182 <<
"There is no lookup table and the specie" <<
nl
184 <<
" is not found " <<
nl
232 const label
n = iter();
234 if (specieIndex_[
n] != 0)
239 const List<scalar>& Ynft = lookUpTablePtr_().lookUp(ft[celli]);
242 Xipi = Ynft[specieIndex_[
n]]*
paToAtm(
p[celli]);
252 const label index =
mixture.species()[iter.key()];
260 scalar Ti =
T[celli];
263 coeffs_[bandi][
n].coeffs(
T[celli]);
265 if (coeffs_[bandi][
n].invTemp())
273 ((((
b[5]*Ti +
b[4])*Ti +
b[3])*Ti +
b[2])*Ti +
b[1])*Ti
318 E.
ref().primitiveFieldRef() =
320 *
Qdot.primitiveField()
321 *(iBands_[bandi][1] - iBands_[bandi][0])
327 E.ref().primitiveFieldRef() =
329 *
Qdot.primitiveField()
330 *(iBands_[bandi][1] - iBands_[bandi][0])
336 <<
"Incompatible dimensions for Qdot field" <<
endl;
352 for (label j=0; j<nBands_; j++)
354 aLambda[j].primitiveFieldRef() = this->a(j);
357 aLambda[j].primitiveField()
358 *(iBands_[j][1] - iBands_[j][0])
A keyword and a list of tokens is an 'entry'.
Type * getObjectPtr(const word &name, const bool recursive=false) const
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
A class for handling file names.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const dictionary & dict() const
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
A class for managing temporary objects.
static constexpr const zero Zero
const dimensionSet dimEnergy
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
tmp< volScalarField > ECont(const label bandi=0) const
const fvMesh & mesh() const
const word dictName("faMeshDefinition")
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
Fundamental fluid thermodynamic properties.
bool insert(const Key &key, const T &obj)
Unit conversion functions.
Abstract base-class for fluid and solid thermodynamic properties.
Ostream & endl(Ostream &os)
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
bool foundObject(const word &name, const bool recursive=false) const
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
const dimensionedScalar b
Generic templated field type.
dimensionedScalar pow3(const dimensionedScalar &ds)
constexpr scalar paToAtm(const scalar pa) noexcept
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual ~wideBandAbsorptionEmission()
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
GeometricField< scalar, fvPatchField, volMesh > volScalarField
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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)
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
wideBandAbsorptionEmission(const dictionary &dict, const fvMesh &mesh)
#define FatalErrorInFunction
tmp< volScalarField > eCont(const label bandi=0) const
forAllConstIters(mixture.phases(), phase)
Internal & ref(const bool updateAccessTime=true)
tmp< volScalarField > aCont(const label bandi=0) const
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
const Time & time() const
Model to supply absorption and emission coefficients for radiation modelling.
A list of lists. Interpolates based on the first dimension. The values must be positive and monotonic...
bool found(const Key &key) const
const dimensionSet dimVolume(pow3(dimLength))
const word & constant() const
Generic GeometricField class.
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
#define WarningInFunction
addToRunTimeSelectionTable(absorptionEmissionModel, cloudAbsorptionEmission, dictionary)
void correct(volScalarField &a, PtrList< volScalarField > &aLambda) const
FixedList< scalar, nCoeffs_ > coeffArray
const dimensionSet dimless
FixedList< FixedList< absorptionCoeffs, nSpecies_ >, maxBands_ > coeffs_