OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

chemistrySolver< CompType, ThermoType > Class Template Reference

An abstract base class for solving chemistry. More...

Inheritance diagram for chemistrySolver< CompType, ThermoType >:
Collaboration diagram for chemistrySolver< CompType, ThermoType >:

List of all members.


Public Member Functions

 TypeName ("chemistrySolver")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, chemistrySolver, dictionary,(ODEChemistryModel< CompType, ThermoType > &model, const word &modelName),(model, modelName))
 chemistrySolver (ODEChemistryModel< CompType, ThermoType > &model, const word &modelName)
 Construct from components.
virtual ~chemistrySolver ()
 Destructor.
virtual scalar solve (scalarField &c, const scalar T, const scalar p, const scalar t0, const scalar dt) const =0
 Update the concentrations and return the chemical time.

Static Public Member Functions

static autoPtr< chemistrySolver > New (ODEChemistryModel< CompType, ThermoType > &model, const word &compTypeName, const word &thermoTypeName)
 Selector.

Protected Attributes

ODEChemistryModel< CompType,
ThermoType > & 
model_
 Reference to the chemistry model.
const word name_
 Name of the chemistry solver.

Detailed Description

template<class CompType, class ThermoType>
class Foam::chemistrySolver< CompType, ThermoType >

An abstract base class for solving chemistry.

Source files

Definition at line 53 of file chemistrySolver.H.


Constructor & Destructor Documentation

chemistrySolver ( ODEChemistryModel< CompType, ThermoType > &  model,
const word &  modelName 
) [inline]

Construct from components.

Definition at line 27 of file chemistrySolver.C.

~chemistrySolver (  )  [inline, virtual]

Destructor.

Definition at line 40 of file chemistrySolver.C.


Member Function Documentation

TypeName ( "chemistrySolver< CompType, ThermoType >"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
chemistrySolver< CompType, ThermoType >  ,
dictionary  ,
(ODEChemistryModel< CompType, ThermoType > &model, const word &modelName)  ,
(model, modelName)   
)

Foam::autoPtr< Foam::chemistrySolver< CompType, ThermoType > > New ( ODEChemistryModel< CompType, ThermoType > &  model,
const word &  compTypeName,
const word &  thermoTypeName 
) [inline, static]

Selector.

Definition at line 25 of file newChemistrySolver.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, Foam::Info, and Foam::nl.

Here is the call graph for this function:

virtual scalar solve ( scalarField &  c,
const scalar  T,
const scalar  p,
const scalar  t0,
const scalar  dt 
) const [pure virtual]

Update the concentrations and return the chemical time.

Implemented in EulerImplicit< CompType, ThermoType >, ode< CompType, ThermoType >, and sequential< CompType, ThermoType >.


Member Data Documentation

ODEChemistryModel<CompType, ThermoType>& model_ [protected]

Reference to the chemistry model.

Definition at line 60 of file chemistrySolver.H.

const word name_ [protected]

Name of the chemistry solver.

Definition at line 63 of file chemistrySolver.H.


The documentation for this class was generated from the following files:
  • src/thermophysicalModels/chemistryModel/chemistrySolver/chemistrySolver/chemistrySolver.H
  • src/thermophysicalModels/chemistryModel/chemistrySolver/chemistrySolver/chemistrySolver.C
  • src/thermophysicalModels/chemistryModel/chemistrySolver/chemistrySolver/newChemistrySolver.C
Copyright © 2000-2009 OpenCFD Ltd