37 namespace functionObjects
53 void Foam::functionObjects::reactionRates::writeFileHeader(
const label i)
64 for (
label reactioni = 0; reactioni < nReaction; ++ reactioni)
85 phaseName_(
dict.lookupOrDefault<
word>(
"phase",
word::null)),
90 IOobject::groupName(
"chemistryProperties", phaseName_)
111 writeFields_ =
dict.lookupOrDefault<
bool>(
"writeFields",
false);
113 resetName(
"reactionRates");
129 const label nReaction = chemistryModel_.nReaction();
136 for (
label reactioni = 0; reactioni < nReaction; reactioni ++)
140 chemistryModel_.reactionRR(reactioni)
144 const scalar sumVRR =
196 zone_.topoChange(map);
220 zone_.distribute(map);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
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.
virtual const word & reactionName(const label reactioni) const =0
Return the name of reactioni.
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 [kmol/m^3/s] for each reaction into the file <timeDir>/react...
reactionRates(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
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 ~reactionRates()
Destructor.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual void movePoints(const polyMesh &)
Update for mesh motion.
virtual bool execute()
Do nothing.
virtual bool write()
Write the reaction rates.
virtual bool read(const dictionary &)
Read the reactionRates 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.
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)
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.