Go to the documentation of this file.
45 absorptionEmissionModel,
46 greyMeanAbsorptionEmission,
62 coeffsDict_((
dict.optionalSubDict(typeName +
"Coeffs"))),
67 EhrrCoeff_(coeffsDict_.get<scalar>(
"EhrrCoeff")),
70 if (!isA<basicSpecieMixture>(thermo_))
73 <<
"Model requires a multi-component thermo package"
79 const dictionary& functionDicts =
dict.optionalSubDict(typeName +
"Coeffs");
81 for (
const entry& dEntry : functionDicts)
88 const word&
key = dEntry.keyword();
91 speciesNames_.insert(
key, nFunc);
93 coeffs_[nFunc].initialise(
dict);
99 coeffsDict_.found(
"lookUpTableFileName")
100 &&
"none" != coeffsDict_.get<
word>(
"lookUpTableFileName")
103 lookUpTablePtr_.reset
107 coeffsDict_.get<
fileName>(
"lookUpTableFileName"),
108 mesh.time().constant(),
116 <<
"specie ft is not present to use with "
117 <<
"lookUpTableFileName " <<
nl
128 const word& specieName = iter.key();
129 const label index = iter.val();
135 if (lookUpTablePtr_().found(specieName))
137 const label fieldIndex =
138 lookUpTablePtr_().findFieldIndex(specieName);
140 Info<<
"specie: " << specieName <<
" found on look-up table "
141 <<
" with index: " << fieldIndex <<
endl;
143 specieIndex_[index] = fieldIndex;
148 specieIndex_[index] = 0;
150 Info<<
"specie: " << iter.key() <<
" is being solved" <<
endl;
155 <<
"specie: " << specieName
156 <<
" is neither in look-up table: "
157 << lookUpTablePtr_().tableName()
158 <<
" nor is being solved" <<
nl
165 specieIndex_[index] = 0;
171 <<
"There is no lookup table and the specie" <<
nl
173 <<
" is not found " <<
nl
203 "aCont" +
name(bandI),
211 extrapolatedCalculatedFvPatchVectorField::typeName
223 if (specieIndex_[
n] != 0)
229 const List<scalar>& Ynft = lookUpTablePtr_().lookUp(ft[celli]);
231 Xipi = Ynft[specieIndex_[
n]]*
paToAtm(
p[celli]);
241 label index =
mixture.species()[iter.key()];
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.
ref().correctBoundaryConditions();
284 "ECont" +
name(bandI),
285 mesh_.time().timeName(),
303 E.
ref().primitiveFieldRef() = EhrrCoeff_*
Qdot/mesh_.V();
307 E.ref().primitiveFieldRef() = EhrrCoeff_*
Qdot;
314 <<
"Incompatible dimensions for Qdot field" <<
endl;
321 <<
"Qdot field not found in mesh" <<
endl;
int debug
Static debugging option.
A keyword and a list of tokens is an 'entry'.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual ~greyMeanAbsorptionEmission()
Destructor.
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 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
Global zero (0)
const dimensionSet dimEnergy
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.
Unit conversion functions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
dimensionedScalar pow3(const dimensionedScalar &ds)
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
constexpr scalar paToAtm(const scalar pa) noexcept
Conversion from Pa to atm.
messageStream Info
Information stream (stdout output on master, null elsewhere)
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 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)
errorManip< error > abort(error &err)
defineTypeNameAndDebug(cloudAbsorptionEmission, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
forAllConstIters(mixture.phases(), phase)
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
greyMeanAbsorptionEmission(const dictionary &dict, const fvMesh &mesh)
Construct from components.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Model to supply absorption and emission coefficients for radiation modelling.
const dimensionSet dimVolume(pow3(dimLength))
#define WarningInFunction
Report a warning using Foam::Warning.
addToRunTimeSelectionTable(absorptionEmissionModel, cloudAbsorptionEmission, dictionary)
const dimensionSet dimless
Dimensionless.