FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

chemistrySolver< CompType, ThermoType > Class Template Reference

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

#include <chemistryModel/chemistrySolver.H>


Detailed Description

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

An abstract base class for solving chemistry.

Source files

Definition at line 58 of file chemistrySolver.H.

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.

Constructor & Destructor Documentation

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

Construct from components.

Definition at line 35 of file chemistrySolver.C.

~chemistrySolver (  ) [virtual]

Destructor.

Definition at line 48 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  
) [static]

Selector.

Definition at line 33 of file newChemistrySolver.C.

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

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 65 of file chemistrySolver.H.

const word name_ [protected]

Name of the chemistry solver.

Definition at line 68 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