34 namespace functionObjects
50 void Foam::functionObjects::specieReactionRates::writeFileHeader(
const label i)
54 writeHeaderValue(
file(),
"nSpecie", chemistryModel_.nSpecie());
55 writeHeaderValue(
file(),
"nReaction", chemistryModel_.nReaction());
57 writeCommented(
file(),
"Time");
58 writeTabbed(
file(),
"Reaction");
61 chemistryModel_.thermo().composition().species();
65 writeTabbed(
file(), speciesNames[si]);
108 resetName(
"specieReactionRates");
125 const label nReaction = chemistryModel_.nReaction();
128 const scalar V = this->V();
130 for (
label ri=0; ri<nReaction; ri++)
142 chemistryModel_.calculateRR(ri, si)
#define forAll(list, i)
Loop across all elements in list.
virtual bool write()
Write function.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
virtual bool write()
Write the specie reaction rates.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool master(const label communicator=0)
Am I the master process.
dimensioned< Type > domainIntegrate(const GeometricField< Type, fvPatchField, volMesh > &vf)
virtual bool execute()
Do nothing.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual bool read(const dictionary &)
Read the specieReactionRates data.
Macros for easy insertion into run-time selection tables.
const dimensionedScalar RR
Universal gas constant: default SI units: [J/kmol/K].
virtual bool read(const dictionary &)
Read optional controls.
bool read(const char *, int32_t &)
bool isNull(const T &t)
Return true if t is a reference to the nullObject of type T.
Type gSum(const FieldField< Field, Type > &f)
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual ~specieReactionRates()
Destructor.
Volume integrate volField creating a volField.
Volume (cell) region selection class.
defineTypeNameAndDebug(Qdot, 0)
void writeFileHeader(const writeFile &wf, Ostream &file)
Output file header information.
List< word > wordList
A List of words.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
specieReactionRates(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
const fvMesh & mesh_
Reference to the fvMesh.
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...