An Euler implicit solver for chemistry. More...
Public Member Functions | |
TypeName ("EulerImplicit") | |
Runtime type information. More... | |
EulerImplicit (const typename ChemistryModel::reactionThermo &thermo) | |
Construct from thermo. More... | |
virtual | ~EulerImplicit () |
Destructor. More... | |
void | updateRRInReactionI (const label index, const scalar pr, const scalar pf, const scalar corr, const label lRef, const label rRef, const scalar p, const scalar T, simpleMatrix< scalar > &RR) const |
virtual void | solve (scalar &p, scalar &T, scalarField &c, const label li, scalar &deltaT, scalar &subDeltaT) const |
Update the concentrations and return the chemical time. More... | |
Public Member Functions inherited from chemistrySolver< ChemistryModel > | |
chemistrySolver (const typename ChemistryModel::reactionThermo &thermo) | |
Construct from thermo. More... | |
virtual | ~chemistrySolver () |
Destructor. More... | |
An Euler implicit solver for chemistry.
Definition at line 53 of file EulerImplicit.H.
EulerImplicit | ( | const typename ChemistryModel::reactionThermo & | thermo | ) |
Construct from thermo.
Definition at line 35 of file EulerImplicit.C.
|
virtual |
Destructor.
Definition at line 50 of file EulerImplicit.C.
References EulerImplicit< ChemistryModel >::updateRRInReactionI().
TypeName | ( | "EulerImplicit< ChemistryModel >" | ) |
Runtime type information.
void updateRRInReactionI | ( | const label | index, |
const scalar | pr, | ||
const scalar | pf, | ||
const scalar | corr, | ||
const label | lRef, | ||
const label | rRef, | ||
const scalar | p, | ||
const scalar | T, | ||
simpleMatrix< scalar > & | RR | ||
) | const |
Definition at line 58 of file EulerImplicit.C.
References forAll, Reaction< ReactionThermo >::lhs(), R, Reaction< ReactionThermo >::rhs(), s(), and EulerImplicit< ChemistryModel >::solve().
Referenced by EulerImplicit< ChemistryModel >::~EulerImplicit().
|
virtual |
Update the concentrations and return the chemical time.
Implements chemistrySolver< ChemistryModel >.
Definition at line 93 of file EulerImplicit.C.
References Foam::constant::electromagnetic::e, forAll, simpleMatrix< Type >::LUsolve(), Foam::max(), Foam::min(), mixture, nSpecie, Foam::constant::thermodynamic::RR, simpleMatrix< Type >::source(), Foam::sum(), and W().
Referenced by EulerImplicit< ChemistryModel >::updateRRInReactionI().