Go to the documentation of this file.
36 #ifndef basicChemistryModel_H
37 #define basicChemistryModel_H
113 template<
class Thermo>
152 const label reactioni,
164 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,...
virtual void calculate()=0
Calculates the reaction rates.
A class for handling words, derived from string.
const scalar deltaTChemIni_
Initial chemical time step.
A class for managing temporary objects.
Base class for chemistry models.
Switch chemistry() const
Chemistry activation switch.
basicChemistryModel(const basicChemistryModel &)
Construct as copy (not implemented)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
const fvMesh & mesh() const
Return const access to the mesh database.
virtual tmp< DimensionedField< scalar, volMesh > > calculateRR(const label reactioni, const label speciei) const =0
Return reaction rate of the speciei in reactioni.
virtual const DimensionedField< scalar, volMesh > & RR(const label i) const =0
Return const access to chemical source terms [kg/m3/s].
virtual tmp< volScalarField > dQ() const =0
Return the heat release, i.e. enthalpy/sec [m2/s3].
static autoPtr< Thermo > New(const fvMesh &mesh, const word &phaseName)
Generic New for each of the related chemistry model.
virtual scalar solve(const scalar deltaT)=0
Solve the reaction system for the given time step.
Mesh data needed to do the Finite Volume discretisation.
void correct()
Correct function - updates due to mesh changes.
const fvMesh & mesh_
Reference to the mesh database.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
TypeName("basicChemistryModel")
Runtime type information.
DimensionedField< scalar, volMesh > deltaTChem_
Latest estimation of integration step.
virtual ~basicChemistryModel()
Destructor.
DimensionedField< scalar, volMesh > & deltaTChem()
Return non-const access to the latest estimation of integration.
virtual tmp< volScalarField > tc() const =0
Return the chemical time scale.
virtual tmp< volScalarField > Sh() const =0
Return source for enthalpy equation [kg/m/s3].
void operator=(const basicChemistryModel &)
Disallow default bitwise assignment.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Switch chemistry_
Chemistry activation switch.