38#ifndef basicChemistryModel_H
39#define basicChemistryModel_H
117 template<
class ChemistryModel>
120 typename ChemistryModel::reactionThermo&
thermo
137 virtual label
nSpecie()
const = 0;
165 const label reactioni,
177 virtual scalar
solve(
const scalar deltaT) = 0;
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Base class for chemistry models.
virtual tmp< volScalarField > Qdot() const =0
Return the heat release rate [kg/m/s3].
virtual ~basicChemistryModel()
Destructor.
const fvMesh & mesh_
Reference to the mesh database.
virtual void calculate()=0
Calculates the reaction rates.
void correct()
Correct function - updates due to mesh changes.
virtual volScalarField::Internal & RR(const label i)=0
Return access to chemical source terms [kg/m3/s].
virtual label nSpecie() const =0
The number of species.
virtual tmp< volScalarField > tc() const =0
Return the chemical time scale.
volScalarField::Internal & deltaTChem()
Return non-const access to the latest estimation of integration.
const scalar deltaTChemIni_
Initial chemical time step.
Switch chemistry_
Chemistry activation switch.
static autoPtr< ChemistryModel > New(typename ChemistryModel::reactionThermo &thermo)
Generic New for each of the related chemistry model.
TypeName("basicChemistryModel")
Runtime type information.
virtual tmp< volScalarField::Internal > calculateRR(const label reactioni, const label speciei) const =0
Return reaction rate of the speciei in reactioni.
virtual label nReaction() const =0
The number of reactions.
virtual const volScalarField::Internal & RR(const label i) const =0
Return const access to chemical source terms [kg/m3/s].
const fvMesh & mesh() const
Return const access to the mesh database.
const scalar deltaTChemMax_
Maximum chemical time step.
Switch chemistry() const
Chemistry activation switch.
volScalarField::Internal deltaTChem_
Latest estimation of integration step.
Abstract base-class for fluid and solid thermodynamic properties.
Mesh data needed to do the Finite Volume discretisation.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
A class for managing temporary objects.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.