|
|
|
ODEChemistryModel< CompType, ThermoType > Class Template ReferenceExtends base chemistry model by adding a thermo package, and ODE functions. Introduces chemistry equation system and evaluation of chemical source terms. More...
Inheritance diagram for ODEChemistryModel< CompType, ThermoType >:
![]()
Collaboration diagram for ODEChemistryModel< CompType, ThermoType >:
![]()
Detailed Descriptiontemplate<class CompType, class ThermoType>
Extends base chemistry model by adding a thermo package, and ODE functions. Introduces chemistry equation system and evaluation of chemical source terms.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ODEChemistryModel | ( | const fvMesh & | mesh, | |
| const word & | compTypeName, | |||
| const word & | thermoTypeName | |||
| ) | [inline] |
Construct from components.
Definition at line 26 of file ODEChemistryModel.C.
References forAll, primitiveMesh::nCells(), ODEChemistryModel< CompType, ThermoType >::RR_, and PtrList< T >::set().

| ~ODEChemistryModel | ( | ) | [inline, virtual] |
| Foam::PtrList< Foam::scalarField > & RR | ( | ) | [inline, protected] |
Write access to chemical source terms.
(e.g. for multi-chemistry model)
Definition at line 24 of file ODEChemistryModelI.H.
| TypeName | ( | "ODEChemistryModel< CompType, ThermoType >" | ) |
Runtime type information.
| const Foam::PtrList< Foam::Reaction< ThermoType > > & reactions | ( | ) | const [inline] |
The reactions.
Definition at line 32 of file ODEChemistryModelI.H.
References ODEChemistryModel< CompType, ThermoType >::RR_.
| const Foam::PtrList< ThermoType > & specieThermo | ( | ) | const [inline] |
Thermodynamic data of the species.
Definition at line 40 of file ODEChemistryModelI.H.
References ODEChemistryModel< CompType, ThermoType >::reactions_.
| Foam::label nSpecie | ( | ) | const [inline] |
The number of species.
Definition at line 48 of file ODEChemistryModelI.H.
References ODEChemistryModel< CompType, ThermoType >::specieThermo_.
Referenced by ODEChemistryModel< CompType, ThermoType >::tc().

| Foam::label nReaction | ( | ) | const [inline] |
The number of reactions.
Definition at line 56 of file ODEChemistryModelI.H.
References ODEChemistryModel< CompType, ThermoType >::nSpecie_.
| const Foam::chemistrySolver< CompType, ThermoType > & solver | ( | ) | const [inline] |
Return the chemisty solver.
Definition at line 64 of file ODEChemistryModelI.H.
References ODEChemistryModel< CompType, ThermoType >::nReaction_.
| Foam::scalarField omega | ( | const scalarField & | c, | |
| const scalar | T, | |||
| const scalar | p | |||
| ) | const [inline, virtual] |
dc/dt = omega, rate of change in concentration, for each species
Definition at line 89 of file ODEChemistryModel.C.
| Foam::scalar omega | ( | const Reaction< ThermoType > & | r, | |
| const scalarField & | c, | |||
| const scalar | T, | |||
| const scalar | p, | |||
| scalar & | pf, | |||
| scalar & | cf, | |||
| label & | lRef, | |||
| scalar & | pr, | |||
| scalar & | cr, | |||
| label & | rRef | |||
| ) | const [inline, virtual] |
Return the reaction rate for reaction r and the reference.
species and charateristic times
Definition at line 130 of file ODEChemistryModel.C.
| void calculate | ( | ) | [inline, virtual] |
| Foam::tmp< Foam::volScalarField > RR | ( | const label | i | ) | const [inline] |
Return const access to the chemical source terms.
Definition at line 73 of file ODEChemistryModelI.H.
References ODEChemistryModel< CompType, ThermoType >::solver_.
| Foam::scalar solve | ( | const scalar | t0, | |
| const scalar | deltaT | |||
| ) | [inline, virtual] |
Solve the reaction system for the given start time and time.
step and return the characteristic time
Definition at line 640 of file ODEChemistryModel.C.
| Foam::tmp< Foam::volScalarField > tc | ( | ) | const [inline, virtual] |
Return the chemical time scale.
Definition at line 441 of file ODEChemistryModel.C.
References ODEChemistryModel< CompType, ThermoType >::nSpecie().

| Foam::tmp< Foam::volScalarField > dQ | ( | ) | const [inline, virtual] |
| Foam::label nEqns | ( | ) | const [inline, virtual] |
| void derivatives | ( | const scalar | t, | |
| const scalarField & | c, | |||
| scalarField & | dcdt | |||
| ) | const [inline, virtual] |
| void jacobian | ( | const scalar | t, | |
| const scalarField & | c, | |||
| scalarField & | dcdt, | |||
| scalarSquareMatrix & | dfdc | |||
| ) | const [inline, virtual] |
PtrList<volScalarField>& Y_ [protected] |
const PtrList<Reaction<ThermoType> >& reactions_ [protected] |
Reactions.
Definition at line 73 of file ODEChemistryModel.H.
Referenced by ODEChemistryModel< CompType, ThermoType >::specieThermo().
const PtrList<ThermoType>& specieThermo_ [protected] |
Thermodynamic data of the species.
Definition at line 76 of file ODEChemistryModel.H.
Referenced by ODEChemistryModel< CompType, ThermoType >::nSpecie().
Number of species.
Definition at line 79 of file ODEChemistryModel.H.
Referenced by ODEChemistryModel< CompType, ThermoType >::nReaction().
label nReaction_ [protected] |
Number of reactions.
Definition at line 82 of file ODEChemistryModel.H.
Referenced by ODEChemistryModel< CompType, ThermoType >::solver().
autoPtr<chemistrySolver<CompType, ThermoType> > solver_ [protected] |
Chemistry solver.
Definition at line 85 of file ODEChemistryModel.H.
Referenced by ODEChemistryModel< CompType, ThermoType >::RR().
PtrList<scalarField> RR_ [protected] |
Chemical source term.
Definition at line 88 of file ODEChemistryModel.H.
Referenced by ODEChemistryModel< CompType, ThermoType >::ODEChemistryModel(), and ODEChemistryModel< CompType, ThermoType >::reactions().