Go to the documentation of this file.
35 template<
class ChemistryModelType>
43 volRegion::writeFileHeader(*
this, os);
44 writeHeaderValue(os,
"nSpecie", chemistryModel_.nSpecie());
45 writeHeaderValue(os,
"nReaction", chemistryModel_.nReaction());
47 writeCommented(os,
"Time");
48 writeTabbed(os,
"Reaction");
51 chemistryModel_.thermo().composition().species();
53 for (
const word& speciesName : speciesNames)
55 writeTabbed(os, speciesName);
64 template<
class ChemistryModelType>
78 fvMeshFunctionObject::mesh_.lookupObject<ChemistryModelType>
84 writeFileHeader(file());
90 template<
class ChemistryModelType>
102 template<
class ChemistryModelType>
109 template<
class ChemistryModelType>
112 const label
nSpecie = chemistryModel_.nSpecie();
113 const label nReaction = chemistryModel_.nReaction();
117 const scalar volTotal = this->volRegion::V();
119 const bool useAll = (volRegion::vrtAll == this->volRegion::regionType());
121 for (label ri=0; ri<nReaction; ri++)
123 writeCurrentTime(file());
124 file() << token::TAB << ri;
126 for (label si=0; si<
nSpecie; si++)
130 chemistryModel_.calculateRR(ri, si)
147 file() << token::TAB << sumVRRi / volTotal;
181 "psiSpecieReactionRates",
206 "rhoSpecieReactionRates",
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
const scalar RR
Universal gas constant: default in [J/(kmol K)].
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
Volume (cell) region selection class.
dimensioned< Type > domainIntegrate(const GeometricField< Type, fvPatchField, volMesh > &vf)
Writes the domain averaged reaction rates for each specie for each reaction into the file <timeDir>/s...
Basic chemistry model templated on thermodynamics.
virtual bool execute()
Do nothing.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Type gSum(const FieldField< Field, Type > &f)
static void writeHeader(Ostream &os, const word &fieldName)
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Abstract base-class for Time/database function objects.
List< word > wordList
A List of words.
virtual bool write()
Write the specie reaction rates.
word name(const complex &c)
Return string representation of complex.
functionObjects::specieReactionRates< BasicChemistryModel< psiReactionThermo > > psiSpecieReactionRates
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.
functionObjects::specieReactionRates< BasicChemistryModel< rhoReactionThermo > > rhoSpecieReactionRates
Volume integrate volField creating a volField.
Base class for writing single files from the function objects.
virtual bool read(const dictionary &dict)
Read the specieReactionRates data.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
defineTemplateTypeNameAndDebugWithName(psiReactionsSensitivityAnalysisFunctionObject, "psiReactionsSensitivityAnalysis", 0)