34 namespace functionObjects
50 void Foam::functionObjects::specieReactionRates::writeFileHeader(
const label i)
108 resetName(
"specieReactionRates");
125 const label nReaction = chemistryModel_.nReaction();
128 const scalar V = this->V();
130 for (
label reactioni=0; reactioni<nReaction; reactioni++)
140 chemistryModel_.reactionRR(reactioni)
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static bool master(const label communicator=0)
Am I the master process.
Base class for chemistry models.
const fluidMulticomponentThermo & thermo() const
Return const access to the thermo.
virtual label nSpecie() const =0
The number of species.
virtual label nReaction() const =0
The number of reactions.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
const fvMesh & mesh_
Reference to the fvMesh.
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...
OFstream & file()
Return access to the file (if only 1)
virtual bool write()
Write function.
virtual bool read(const dictionary &)
Read optional controls.
Writes the domain averaged reaction rates for each specie for each reaction into the file <timeDir>/s...
virtual ~specieReactionRates()
Destructor.
virtual bool execute()
Do nothing.
virtual bool write()
Write the specie reaction rates.
specieReactionRates(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual bool read(const dictionary &)
Read the specieReactionRates data.
void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.
void writeHeaderValue(Ostream &os, const string &property, const Type &value) const
Write a (commented) header property and value pair.
void writeHeader(Ostream &os, const string &str) const
Write a commented header to stream.
void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
General run-time selected cell set selection class for fvMesh.
void writeFileHeader(const functionObjects::writeFile &wf, Ostream &file)
Output file header information.
virtual const speciesTable & species() const =0
The table of species.
A class for handling words, derived from string.
Volume integrate volField creating a volField.
const dimensionedScalar RR
Universal gas constant: default SI units: [J/kmol/K].
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
dimensioned< Type > domainIntegrate(const VolField< Type > &vf)
List< word > wordList
A List of words.
Type gSum(const FieldField< Field, Type > &f)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.