Go to the documentation of this file.
56 template<
class ThermoType>
59 template<
class ReactionThermo>
62 template<
class ReactionThermo>
70 template<
class ReactionThermo>
73 public ReactionThermo::thermoType
148 label getNewReactionID();
196 bool initReactionThermo =
true
215 bool initReactionThermo =
true
254 const word&
name() const noexcept {
return name_; }
321 friend Ostream& operator<< <ReactionThermo>
A class for handling words, derived from Foam::string.
void setLRhs(Istream &, const speciesTable &, List< specieCoeffs > &lhs, List< specieCoeffs > &rhs)
Construct the left- and right-hand-side reaction coefficients.
const List< specieCoeffs > & rhs() const noexcept
Specie info for the right-hand-side of the reaction.
void reactionStrLeft(OStringStream &reaction) const
Return string representation of the left of the reaction.
const word & name() const noexcept
Name of reaction.
virtual ~Reaction()=default
Destructor.
const List< specieCoeffs > & lhs() const noexcept
Specie info for the left-hand-side of the reaction.
virtual const speciesTable & gasSpecies() const
Access to gas specie list.
virtual const List< specieCoeffs > & glhs() const
bool operator!=(const specieCoeffs &sc) const
virtual scalar kf(const scalar p, const scalar T, const scalarField &c) const
Forward rate constant.
void reactionStrRight(OStringStream &reaction) const
Return string representation of the right of the reaction.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
virtual scalar kr(const scalar kfwd, const scalar p, const scalar T, const scalarField &c) const
Reverse rate constant from the given forward rate constant.
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual void write(Ostream &os) const
Write.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
TypeName("Reaction")
Runtime type information.
virtual autoPtr< Reaction< ReactionThermo > > clone() const
Construct and return a clone.
static label nUnNamedReactions
Number of un-named reactions.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
const speciesTable & species() const noexcept
Access to specie list.
CombustionModel< rhoReactionThermo > & reaction
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Macros to ease declaration of run-time selection tables.
bool operator==(const specieCoeffs &sc) const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
const dimensionedScalar c
Speed of light in a vacuum.
virtual const List< specieCoeffs > & grhs() const
Access to gas components of the reaction.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Reaction(const speciesTable &species, const List< specieCoeffs > &lhs, const List< specieCoeffs > &rhs, const ReactionTable< ReactionThermo > &thermoDatabase, bool initReactionThermo=true)
Construct from components.
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
declareRunTimeSelectionTable(autoPtr, Reaction, dictionary,(const speciesTable &species, const ReactionTable< ReactionThermo > &thermoDatabase, const dictionary &dict),(species, thermoDatabase, dict))
static autoPtr< Reaction< ReactionThermo > > New(const speciesTable &species, const ReactionTable< ReactionThermo > &thermoDatabase, const dictionary &dict)
Return a pointer to new patchField created on freestore from dict.
friend Ostream & operator<<(Ostream &os, const specieCoeffs &sc)