Public Member Functions | List of all members
TDACChemistryModel Class Referenceabstract

Extends StandardChemistryModel by adding the TDAC method. More...

Inheritance diagram for TDACChemistryModel:
Inheritance graph
[legend]

Public Member Functions

 TypeName ("TDAC")
 
 TDACChemistryModel (ReactionThermo &thermo)
 
virtual ~TDACChemistryModel ()
 
bool variableTimeStep () const
 
label timeSteps () const
 
autoPtr< OFstreamlogFile (const word &name) const
 
PtrList< volScalarField > & Y ()
 
virtual void omega (const scalarField &c, const scalar T, const scalar p, scalarField &dcdt) const
 
virtual 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
 
virtual scalar solve (const scalar deltaT)
 
virtual scalar solve (const scalarField &deltaT)
 
virtual void derivatives (const scalar t, const scalarField &c, scalarField &dcdt) const
 
void jacobian (const scalar t, const scalarField &c, scalarSquareMatrix &dfdc) const
 
virtual void jacobian (const scalar t, const scalarField &c, scalarField &dcdt, scalarSquareMatrix &dfdc) const
 
virtual void solve (scalarField &c, scalar &T, scalar &p, scalar &deltaT, scalar &subDeltaT) const =0
 
void setNsDAC (const label newNsDAC)
 
void setNSpecie (const label newNs)
 
scalarFieldcompleteC ()
 
scalarFieldsimplifiedC ()
 
Field< bool > & reactionsDisabled ()
 
bool active (const label i) const
 
void setActive (const label i)
 
DynamicList< label > & simplifiedToCompleteIndex ()
 
Field< label > & completeToSimplifiedIndex ()
 
const Field< label > & completeToSimplifiedIndex () const
 
List< List< specieElement > > & specieComp ()
 
autoPtr< chemistryReductionMethod< ReactionThermo, ThermoType > > & mechRed ()
 
tmp< volScalarFieldtabulationResults () const
 
void setTabulationResultsAdd (const label celli)
 
void setTabulationResultsGrow (const label celli)
 
void setTabulationResultsRetrieve (const label celli)
 
void resetTabulationResults ()
 
template<class DeltaTType >
Foam::scalar solve (const DeltaTType &deltaT)
 

Detailed Description

Extends StandardChemistryModel by adding the TDAC method.

References:

    Contino, F., Jeanmart, H., Lucchini, T., & D’Errico, G. (2011).
    Coupling of in situ adaptive tabulation and dynamic adaptive chemistry:
    An effective method for solving combustion in engine simulations.
    Proceedings of the Combustion Institute, 33(2), 3057-3064.

    Contino, F., Lucchini, T., D'Errico, G., Duynslaegher, C.,
    Dias, V., & Jeanmart, H. (2012).
    Simulations of advanced combustion modes using detailed chemistry
    combined with tabulation and mechanism reduction techniques.
    SAE International Journal of Engines,
    5(2012-01-0145), 185-196.

    Contino, F., Foucher, F., Dagaut, P., Lucchini, T., D’Errico, G., &
    Mounaïm-Rousselle, C. (2013).
    Experimental and numerical analysis of nitric oxide effect on the
    ignition of iso-octane in a single cylinder HCCI engine.
    Combustion and Flame, 160(8), 1476-1483.

    Contino, F., Masurier, J. B., Foucher, F., Lucchini, T., D’Errico, G., &
    Dagaut, P. (2014).
    CFD simulations using the TDAC method to model iso-octane combustion
    for a large range of ozone seeding and temperature conditions
    in a single cylinder HCCI engine.
    Fuel, 137, 179-184.
Source files

Definition at line 45 of file chemistryReductionMethod.H.

Constructor & Destructor Documentation

◆ TDACChemistryModel()

TDACChemistryModel ( ReactionThermo &  thermo)

Definition at line 31 of file TDACChemistryModel.C.

◆ ~TDACChemistryModel()

~TDACChemistryModel ( )
virtual

Definition at line 141 of file TDACChemistryModel.C.

Member Function Documentation

◆ TypeName()

TypeName ( "TDAC"  )

◆ variableTimeStep()

bool variableTimeStep ( ) const
inline

◆ timeSteps()

Foam::label timeSteps ( ) const
inline

Definition at line 33 of file TDACChemistryModelI.H.

◆ logFile()

Foam::autoPtr< Foam::OFstream > logFile ( const word name) const
inline

Definition at line 42 of file TDACChemistryModelI.H.

◆ Y()

Definition at line 57 of file TDACChemistryModelI.H.

◆ omega() [1/2]

void omega ( const scalarField c,
const scalar  T,
const scalar  p,
scalarField dcdt 
) const
virtual

Definition at line 149 of file TDACChemistryModel.C.

◆ omega() [2/2]

virtual 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
virtual

◆ solve() [1/4]

Foam::scalar solve ( const scalar  deltaT)
virtual

Definition at line 889 of file TDACChemistryModel.C.

◆ solve() [2/4]

Foam::scalar solve ( const scalarField deltaT)
virtual

Definition at line 904 of file TDACChemistryModel.C.

◆ derivatives()

void derivatives ( const scalar  t,
const scalarField c,
scalarField dcdt 
) const
virtual

Definition at line 312 of file TDACChemistryModel.C.

◆ jacobian() [1/2]

void jacobian ( const scalar  t,
const scalarField c,
scalarSquareMatrix dfdc 
) const

Definition at line 396 of file TDACChemistryModel.C.

◆ jacobian() [2/2]

void jacobian ( const scalar  t,
const scalarField c,
scalarField dcdt,
scalarSquareMatrix dfdc 
) const
virtual

Definition at line 581 of file TDACChemistryModel.C.

◆ solve() [3/4]

virtual void solve ( scalarField c,
scalar &  T,
scalar &  p,
scalar &  deltaT,
scalar &  subDeltaT 
) const
pure virtual

◆ setNsDAC()

void setNsDAC ( const label  newNsDAC)
inline

Definition at line 94 of file TDACChemistryModelI.H.

◆ setNSpecie()

void setNSpecie ( const label  newNs)
inline

Definition at line 102 of file TDACChemistryModelI.H.

◆ completeC()

Foam::scalarField & completeC ( )
inline

Definition at line 145 of file TDACChemistryModelI.H.

◆ simplifiedC()

Foam::scalarField & simplifiedC ( )
inline

Definition at line 153 of file TDACChemistryModelI.H.

◆ reactionsDisabled()

Foam::Field< bool > & reactionsDisabled ( )
inline

Definition at line 137 of file TDACChemistryModelI.H.

◆ active()

bool active ( const label  i) const
inline

Definition at line 84 of file TDACChemistryModelI.H.

Referenced by TDACChemistryModel< CompType, ThermoType >::solve().

Here is the caller graph for this function:

◆ setActive()

void setActive ( const label  i)
inline

Definition at line 74 of file TDACChemistryModelI.H.

◆ simplifiedToCompleteIndex()

Foam::DynamicList< Foam::label > & simplifiedToCompleteIndex ( )
inline

Definition at line 111 of file TDACChemistryModelI.H.

◆ completeToSimplifiedIndex() [1/2]

Foam::Field< Foam::label > & completeToSimplifiedIndex ( )
inline

Definition at line 120 of file TDACChemistryModelI.H.

◆ completeToSimplifiedIndex() [2/2]

const Foam::Field< Foam::label > & completeToSimplifiedIndex ( ) const
inline

Definition at line 129 of file TDACChemistryModelI.H.

◆ specieComp()

Foam::List< Foam::List< Foam::specieElement > > & specieComp ( )
inline

Definition at line 161 of file TDACChemistryModelI.H.

◆ mechRed()

Foam::autoPtr< Foam::chemistryReductionMethod< ReactionThermo, ThermoType > > & mechRed ( )
inline

Definition at line 66 of file TDACChemistryModelI.H.

Referenced by binaryNode< CompType, ThermoType >::calcV().

Here is the caller graph for this function:

◆ tabulationResults()

tmp<volScalarField> tabulationResults ( ) const
inline

Definition at line 275 of file TDACChemistryModel.H.

◆ setTabulationResultsAdd()

void setTabulationResultsAdd ( const label  celli)

Definition at line 915 of file TDACChemistryModel.C.

◆ setTabulationResultsGrow()

void setTabulationResultsGrow ( const label  celli)

Definition at line 925 of file TDACChemistryModel.C.

◆ setTabulationResultsRetrieve()

void setTabulationResultsRetrieve ( const label  celli)

Definition at line 934 of file TDACChemistryModel.C.

◆ resetTabulationResults()

void resetTabulationResults ( )
inline

Definition at line 169 of file TDACChemistryModelI.H.

◆ solve() [4/4]

Foam::scalar solve ( const DeltaTType &  deltaT)

Definition at line 601 of file TDACChemistryModel.C.


The documentation for this class was generated from the following files: