35template<
class ChemistryModelType>
42 writeHeader(
os,
"Specie reaction rates");
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);
64template<
class ChemistryModelType>
84 writeFileHeader(
file());
90template<
class ChemistryModelType>
102template<
class ChemistryModelType>
109template<
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",
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Basic chemistry model templated on thermodynamics.
virtual bool read()
Re-read model coefficients if they have changed.
The TAB Method for Numerical Calculation of Spray Droplet Breakup.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base-class for Time/database function objects.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
const fvMesh & mesh_
Reference to the fvMesh.
Writes the domain averaged reaction rates for each specie for each reaction into the file <timeDir>/s...
virtual bool execute()
Do nothing.
virtual bool write()
Write the specie reaction rates.
Volume (cell) region selection class.
bool useAllCells() const noexcept
Use all cells, not the cellIDs.
scalar V() const
Return total volume of the selected region.
bool update()
Update the cached values as required.
Base class for writing single files from the function objects.
virtual OFstream & file()
Return access to the file (if only 1)
A class for handling words, derived from Foam::string.
#define defineTemplateTypeNameAndDebugWithName(Type, Name, DebugSwitch)
Define the typeName and debug information, lookup as Name.
OBJstream os(runTime.globalPath()/outputName)
Volume integrate volField creating a volField.
dimensioned< Type > domainIntegrate(const GeometricField< Type, fvPatchField, volMesh > &vf)
List< word > wordList
A List of words.
Type gSum(const FieldField< Field, Type > &f)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)