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")
93 forAll(singleReaction.rhs(), i)
95 const scalar stoichCoeff = singleReaction.rhs()[i].stoichCoeff;
96 totalMol +=
mag(stoichCoeff);
104 forAll(singleReaction.rhs(), i)
106 const label speciei = singleReaction.rhs()[i].index;
107 const scalar stoichCoeff = singleReaction.rhs()[i].stoichCoeff;
108 Xi[i] =
mag(stoichCoeff)/totalMol;
114 forAll(singleReaction.rhs(), i)
116 const label speciei = singleReaction.rhs()[i].index;
117 Yprod0[speciei] = combustion.
thermo().
WiValue(speciei)/Wm*Xi[i];
120 const scalar XSoot = nuSoot_/totalMol;
123 sootMax_ = XSoot*Wsoot_/Wm;
125 Info <<
"Maximum soot mass concentrations: " << sootMax_ <<
nl;
127 if (mappingFieldName_ ==
"none")
129 const label index = singleReaction.rhs()[0].index;
130 mappingFieldName_ = combustion.
thermo().
Y(index).name();
133 const label mapFieldIndex =
136 mapFieldMax_ = Yprod0[mapFieldIndex];
153 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.
const fluidMulticomponentThermo & thermo() const
Return const access to the thermo.
static const word combustionPropertiesName
Default combustionProperties dictionary name.
Base class for single-step combustion models.
const reaction & singleReaction() const
Return the single step reaction.
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.
virtual const speciesTable & species() const =0
The table of species.
virtual scalar WiValue(const label speciei) const =0
Molecular weight [kg/kmol].
virtual PtrList< volScalarField > & Y()=0
Access the mass-fraction fields.
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.
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.
word name(const bool)
Return a word representation of a bool.
dimensioned< scalar > mag(const dimensioned< Type > &)