Go to the documentation of this file.
42 absorptionEmissionModel,
43 greyMeanAbsorptionEmission,
59 coeffsDict_((
dict.subDict(typeName +
"Coeffs"))),
61 specieIndex_(
label(0)),
64 EhrrCoeff_(
readScalar(coeffsDict_.lookup(
"EhrrCoeff"))),
67 if (!isA<basicSpecieMixture>(thermo_))
70 <<
"Model requires a multi-component thermo package"
76 const dictionary& functionDicts =
dict.subDict(typeName +
"Coeffs");
85 const word& key = iter().keyword();
86 speciesNames_.insert(key, nFunc);
88 coeffs_[nFunc].initialise(
dict);
92 if (coeffsDict_.found(
"lookUpTableFileName"))
94 const word name = coeffsDict_.lookup(
"lookUpTableFileName");
101 fileName(coeffsDict_.lookup(
"lookUpTableFileName")),
102 mesh.time().constant(),
110 <<
"specie ft is not present to use with "
111 <<
"lookUpTableFileName " <<
nl
123 if (!lookUpTablePtr_.empty())
125 if (lookUpTablePtr_().
found(iter.key()))
127 label index = lookUpTablePtr_().findFieldIndex(iter.key());
129 Info<<
"specie: " << iter.key() <<
" found on look-up table "
130 <<
" with index: " << index <<
endl;
132 specieIndex_[iter()] = index;
142 specieIndex_[iter()] = 0;
144 Info<<
"specie: " << iter.key() <<
" is being solved" <<
endl;
149 <<
"specie: " << iter.key()
150 <<
" is neither in look-up table: "
151 << lookUpTablePtr_().tableName()
152 <<
" nor is being solved" <<
nl
165 specieIndex_[iter()] = 0;
171 <<
" there is not lookup table and the specie" <<
nl
173 <<
" is not found " <<
nl
203 "aCont" +
name(bandI),
211 zeroGradientFvPatchVectorField::typeName
223 if (specieIndex_[
n] != 0)
229 const List<scalar>& Ynft = lookUpTablePtr_().lookUp(ft[cellI]);
231 Xipi = Ynft[specieIndex_[
n]]*
paToAtm(
p[cellI]);
249 scalar Ti =
T[cellI];
251 if (coeffs_[
n].invTemp())
258 ((((
b[5]*Ti +
b[4])*Ti +
b[3])*Ti +
b[2])*Ti +
b[1])*Ti
263 ta().correctBoundaryConditions();
284 "ECont" +
name(bandI),
285 mesh_.time().timeName(),
302 E().internalField() = EhrrCoeff_*
dQ/mesh_.V();
306 E().internalField() = EhrrCoeff_*
dQ;
313 <<
"Incompatible dimensions for dQ field" <<
endl;
320 <<
"dQ field not found in mesh" <<
endl;
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
virtual ~greyMeanAbsorptionEmission()
Destructor.
A class for handling words, derived from string.
A class for handling file names.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
const dimensionSet dimEnergy
Fundamental fluid thermodynamic properties.
Unit conversion functions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
scalar paToAtm(const scalar pa)
Conversion from atm to Pa.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous 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)
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
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.
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
errorManip< error > abort(error &err)
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().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))
defineTypeNameAndDebug(cloudAbsorptionEmission, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
greyMeanAbsorptionEmission(const dictionary &dict, const fvMesh &mesh)
Construct from components.
Model to supply absorption and emission coefficients for radiation modelling.
const dimensionSet dimVolume(pow3(dimLength))
Generic GeometricField class.
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.
addToRunTimeSelectionTable(absorptionEmissionModel, cloudAbsorptionEmission, dictionary)
PtrList< volScalarField > & Y