35 namespace radiationModels
74 coeffsDict_(
dict.subOrEmptyDict(modelType +
"Coeffs")),
75 nuSoot_(coeffsDict_.lookup<scalar>(
"nuSoot")),
76 Wsoot_(coeffsDict_.lookup<scalar>(
"Wsoot")),
80 coeffsDict_.lookupOrDefault<
word>(
"mappingField",
"none")
97 const scalar stoichCoeff = singleReaction.
rhs()[i].stoichCoeff;
98 totalMol +=
mag(stoichCoeff);
108 const label speciei = singleReaction.
rhs()[i].index;
109 const scalar stoichCoeff = singleReaction.
rhs()[i].stoichCoeff;
110 Xi[i] =
mag(stoichCoeff)/totalMol;
111 Wm += Xi[i]*
mixture.Wi(speciei);
118 const label speciei = singleReaction.
rhs()[i].index;
119 Yprod0[speciei] =
mixture.Wi(speciei)/Wm*Xi[i];
122 const scalar XSoot = nuSoot_/totalMol;
125 sootMax_ = XSoot*Wsoot_/Wm;
127 Info <<
"Maximum soot mass concentrations: " << sootMax_ <<
nl;
129 if (mappingFieldName_ ==
"none")
131 const label index = singleReaction.
rhs()[0].index;
135 const label mapFieldIndex =
mixture.species()[mappingFieldName_];
137 mapFieldMax_ = Yprod0[mapFieldIndex];
154 soot_ = sootMax_*(mapField/mapFieldMax_);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void size(const label)
Override size to be inconsistent with allocated storage.
Specialisation of basicMixture for a mixture consisting of a number for molecular species.
static const word combustionPropertiesName
Default combustionProperties dictionary name.
Base class for combustion models using basicSpecieMixture.
const reaction & singleReaction() const
Return the single step reaction.
const basicSpecieMixture & mixture() const
Return the mixture.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
const word & name() const
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
Base class for soot models.
const fvMesh & mesh() const
Reference to the mesh.
This soot model is purely an state model. The amount of soot produced is determined by a single step ...
virtual void correct()
Main update/correction routine.
virtual ~mixtureFraction()
Destructor.
mixtureFraction(const dictionary &dict, const fvMesh &mesh, const word &modelType)
Construct from components.
Reaction base-class holding the specie names and coefficients.
const List< specieCoeffs > & rhs() const
Return the components of the right hand side.
A class for handling words, derived from string.
addToRunTimeSelectionTable(sootModel, mixtureFraction, dictionary)
defineTypeNameAndDebug(mixtureFraction, 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.
dimensioned< scalar > mag(const dimensioned< Type > &)
word name(const complex &)
Return a string representation of a complex.