36 #ifndef basicChemistryModel_H 37 #define basicChemistryModel_H 181 const label reactioni,
193 virtual scalar
solve(
const scalar deltaT) = 0;
const fvMesh & mesh() const
Return const access to the mesh database.
virtual label nSpecie() const =0
The number of species.
const scalar deltaTChemMax_
Maximum chemical time step.
volScalarField::Internal deltaTChem_
Latest estimation of integration step.
declareRunTimeSelectionTable(autoPtr, basicChemistryModel, thermo,(const fluidReactionThermo &thermo),(thermo))
Declare run-time constructor selection tables.
jacobianType
Enumeration for the type of Jacobian to be calculated by the.
const fvMesh & mesh_
Reference to the mesh database.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
Base-class for multi-component fluid thermodynamic properties.
const fluidReactionThermo & thermo_
Reference to the thermo.
Switch chemistry() const
Chemistry activation switch.
void correct()
Correct function - updates due to mesh changes.
void operator=(const basicChemistryModel &)=delete
Disallow default bitwise assignment.
virtual tmp< volScalarField > tc() const =0
Return the chemical time scale.
static const NamedEnum< jacobianType, 2 > jacobianTypeNames_
Jacobian type names.
basicChemistryModel(const fluidReactionThermo &thermo)
Construct from thermo.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual ~basicChemistryModel()
Destructor.
TypeName("basicChemistryModel")
Runtime type information.
static autoPtr< basicChemistryModel > New(const fluidReactionThermo &thermo)
Select based on fluid reaction thermo.
Switch chemistry_
Chemistry activation switch.
virtual void calculate()=0
Calculates the reaction rates.
const fluidReactionThermo & thermo() const
Return const access to the thermo.
const scalar deltaTChemIni_
Initial chemical time step.
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/m^3/s].
Mesh data needed to do the Finite Volume discretisation.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual tmp< volScalarField::Internal > calculateRR(const label reactioni, const label speciei) const =0
Return reaction rate of the speciei in reactioni.
const volScalarField::Internal & deltaTChem() const
Return the latest estimation of integration step.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
virtual tmp< volScalarField > Qdot() const =0
Return the heat release rate [kg/m/s^3].
virtual scalar solve(const scalar deltaT)=0
Solve the reaction system for the given time step.
Base class for chemistry models.