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>
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();
121 for (label ri=0; ri<nReaction; ri++)
123 writeCurrentTime(file());
126 for (label si=0; si<
nSpecie; si++)
130 chemistryModel_.calculateRR(ri, si)
181 "psiSpecieReactionRates",
206 "rhoSpecieReactionRates",
virtual OFstream & file()
Return access to the file (if only 1)
Basic chemistry model templated on thermodynamics.
static void writeHeader(Ostream &os, const word &fieldName)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
virtual bool write()
Write the specie reaction rates.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< Type > domainIntegrate(const GeometricField< Type, fvPatchField, volMesh > &vf)
virtual bool execute()
Do nothing.
Abstract base-class for Time/database function objects.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
bool useAllCells() const noexcept
Use all cells, not the cellIDs.
Macros for easy insertion into run-time selection tables.
Type gSum(const FieldField< Field, Type > &f)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Volume integrate volField creating a volField.
scalar V() const
Return total volume of the selected region.
Volume (cell) region selection class.
OBJstream os(runTime.globalPath()/outputName)
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
List< word > wordList
List of word.
Writes the domain averaged reaction rates for each specie for each reaction into the file <timeDir>/s...
bool update()
Update the cached values as required.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual bool read(const dictionary &dict)
Read optional controls.
const scalar RR
Universal gas constant: default in [J/(kmol K)].
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual bool read(const dictionary &dict)
Read the specieReactionRates data.
functionObjects::specieReactionRates< BasicChemistryModel< psiReactionThermo > > psiSpecieReactionRates
functionObjects::specieReactionRates< BasicChemistryModel< rhoReactionThermo > > rhoSpecieReactionRates
Base class for writing single files from the function objects.
defineTemplateTypeNameAndDebugWithName(psiReactionsSensitivityAnalysisFunctionObject, "psiReactionsSensitivityAnalysis", 0)
const fvMesh & mesh_
Reference to the fvMesh.