37 namespace functionObjects
53 void Foam::functionObjects::specieReactionRates::writeFileHeader(
const label i)
89 phaseName_(
dict.lookupOrDefault<
word>(
"phase",
word::null)),
94 IOobject::groupName(
"chemistryProperties", phaseName_)
115 writeFields_ =
dict.lookupOrDefault<
bool>(
"writeFields",
false);
117 resetName(
"specieReactionRates");
134 const label nReaction = chemistryModel_.nReaction();
137 const scalar V = zone_.V();
139 for (
label reactioni=0; reactioni<nReaction; reactioni++)
149 chemistryModel_.specieReactionRR(reactioni)
223 zone_.topoChange(map);
247 zone_.distribute(map);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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 volume averaged reaction rates in [kg/m^3/s] for each specie and each reaction into the file <...
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual ~specieReactionRates()
Destructor.
virtual void movePoints(const polyMesh &)
Update for mesh motion.
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.
void writeFileHeader(const functionObjects::writeFile &wf, Ostream &file)
Output file header information.
virtual const speciesTable & species() const =0
The table of species.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
const polyMesh & mesh() const
Return polyMesh.
Class containing mesh-to-mesh mapping information.
const polyMesh & mesh() const
Return polyMesh.
Mesh consisting of general polyhedral cells.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const polyMesh & mesh() const
Return polyMesh.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
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 LagrangianState state)
Return a string representation of a Lagrangian state enumeration.