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"
81 for (
const entry& dEntry : functionDicts)
88 const word&
key = dEntry.keyword();
89 const dictionary&
dict = dEntry.dict();
99 coeffsDict_.
found(
"lookUpTableFileName")
100 &&
"none" != coeffsDict_.
get<word>(
"lookUpTableFileName")
103 lookUpTablePtr_.reset
105 new interpolationLookUpTable<scalar>
107 coeffsDict_.
get<fileName>(
"lookUpTableFileName"),
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;
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,...
virtual ~greyMeanAbsorptionEmission()
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
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
void initialise(const dictionary &)
bool foundObject(const word &name, const bool recursive=false) const
tmp< volScalarField > ECont(const label bandI=0) const
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
const dimensionedScalar b
Generic templated field type.
dimensionedScalar pow3(const dimensionedScalar &ds)
tmp< volScalarField > aCont(const label bandI=0) const
constexpr scalar paToAtm(const scalar pa) noexcept
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
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.
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)
defineTypeNameAndDebug(cloudAbsorptionEmission, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
forAllConstIters(mixture.phases(), phase)
Internal & ref(const bool updateAccessTime=true)
tmp< volScalarField > eCont(const label bandI=0) const
greyMeanAbsorptionEmission(const dictionary &dict, const fvMesh &mesh)
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
word name(const expressions::valueTypeCode typeCode)
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...
absorptionCoeffs coeffs_[nSpecies_]
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)
FixedList< scalar, nCoeffs_ > coeffArray
const dimensionSet dimless