36 #ifndef chemistryModel_H
37 #define chemistryModel_H
142 const label reactioni
148 const label reactioni
154 const label reactioni
162 virtual scalar
solve(
const scalar deltaT) = 0;
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Base class for chemistry models.
virtual tmp< volScalarField > tc() const =0
Return the chemical time scale.
const fluidMulticomponentThermo & thermo() const
Return const access to the thermo.
TypeName("chemistryModel")
Runtime type information.
virtual tmp< volScalarField > Qdot() const =0
Return the heat release rate [kg/m/s^3].
declareRunTimeSelectionTable(autoPtr, chemistryModel, thermo,(const fluidMulticomponentThermo &thermo),(thermo))
Declare run-time constructor selection tables.
const fvMesh & mesh_
Reference to the mesh.
virtual void calculate()=0
Calculates the reaction rates.
virtual label nSpecie() const =0
The number of species.
virtual PtrList< volScalarField::Internal > specieReactionRR(const label reactioni) const =0
Return reaction rates of the species in reactioni [kg/m^3/s].
virtual const word & reactionName(const label reactioni) const =0
Return the name of reactioni.
const fluidMulticomponentThermo & thermo_
Reference to the thermo.
const volScalarField::Internal & deltaTChem() const
Return the latest estimation of integration step.
virtual scalar solve(const scalar deltaT)=0
Solve the reaction system for the given time step.
const scalar deltaTChemIni_
Initial chemical time step.
void operator=(const chemistryModel &)=delete
Disallow default bitwise assignment.
Switch chemistry_
Chemistry activation switch.
chemistryModel(const fluidMulticomponentThermo &thermo)
Construct from thermo.
static autoPtr< chemistryModel > New(const fluidMulticomponentThermo &thermo)
Select based on fluid reaction thermo.
virtual const PtrList< volScalarField::Internal > & RR() const =0
Return reaction rates of the species [kg/m^3/s].
virtual tmp< volScalarField::Internal > reactionRR(const label reactioni) const =0
Return the rate of reactioni [kmol/m^3/s].
virtual label nReaction() const =0
The number of reactions.
virtual ~chemistryModel()
Destructor.
const fvMesh & mesh() const
Return const access to the mesh.
const scalar deltaTChemMax_
Maximum chemical time step.
Switch chemistry() const
Chemistry activation switch.
volScalarField::Internal deltaTChem_
Latest estimation of integration step.
Base-class for multi-component fluid thermodynamic properties.
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.