OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

chemistryModel Class Reference

Inheritance diagram for chemistryModel:

Inheritance graph
[legend]
Collaboration diagram for chemistryModel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 62 of file chemistryModel.H.


Public Types

typedef reactingMixture::reaction reaction
typedef reactingMixture::reactionThermo reactionThermo

Public Member Functions

 chemistryModel (hCombustionThermo &thermo, const volScalarField &rho)
 Construct from components.
virtual ~chemistryModel ()
const hCombustionThermo & thermo () const
 Return the thermodynamics model.
const PtrList< volScalarField > & Y () const
 Access the fractions of the species.
const volScalarField & rho () const
 Access the density field.
const IOdictionary & chemistryProperties () const
 Return the chemistry properties.
Switch chemistry () const
 Do the chemistry or not.
const PtrList< reaction > & reactions () const
const PtrList< reactionThermo > & specieThermo () const
label Ns () const
 The number of species.
label Nr () const
 The number of reactions.
const chemistrySolver & solver () const
tmp< volScalarField > RR (const label i) const
 Return the chemical source terms.
const scalarField & deltaTChem () const
 Return the latest estimation of integration step.
tmp< volScalarField > tc () const
 The chemical time scale.
scalarField omega (const scalarField &c, const scalar T, const scalar p) const
 dc/dt = omega, rate of change in concentration, for each species
scalar omega (const reaction &r, const scalarField &c, const scalar T, const scalar p, scalar &pf, scalar &cf, label &lRef, scalar &pr, scalar &cr, label &rRef) const
 return the reaction rate for reaction r and the reference
label nEqns () const
 The number of ODE to solve.
void derivatives (const scalar t, const scalarField &c, scalarField &dcdt) const
void jacobian (const scalar t, const scalarField &c, scalarField &dcdt, Matrix< scalar > &dfdc) const
void calculate ()
 Calculates the reaction rates.
scalar solve (const scalar t0, const scalar deltaT)
 Solve the reaction system for the given start time and time-step.

Member Typedef Documentation

Definition at line 69 of file chemistryModel.H.


Constructor & Destructor Documentation

chemistryModel ( hCombustionThermo &  thermo,
const volScalarField &  rho 
)

Construct from components.

virtual ~chemistryModel (  )  [virtual]


Member Function Documentation

const hCombustionThermo& thermo (  )  const [inline]

Return the thermodynamics model.

Definition at line 135 of file chemistryModel.H.

const PtrList<volScalarField>& Y (  )  const [inline]

Access the fractions of the species.

Definition at line 141 of file chemistryModel.H.

const volScalarField& rho (  )  const [inline]

Access the density field.

Definition at line 147 of file chemistryModel.H.

const IOdictionary& chemistryProperties (  )  const [inline]

Return the chemistry properties.

Definition at line 153 of file chemistryModel.H.

Switch chemistry (  )  const [inline]

Do the chemistry or not.

Definition at line 159 of file chemistryModel.H.

const PtrList<reaction>& reactions (  )  const [inline]

Definition at line 164 of file chemistryModel.H.

const PtrList<reactionThermo>& specieThermo (  )  const [inline]

Definition at line 169 of file chemistryModel.H.

label Ns (  )  const [inline]

The number of species.

Definition at line 175 of file chemistryModel.H.

label Nr (  )  const [inline]

The number of reactions.

Definition at line 181 of file chemistryModel.H.

const chemistrySolver& solver (  )  const [inline]

Definition at line 187 of file chemistryModel.H.

Foam::tmp< Foam::volScalarField > RR ( const label  i  )  const [inline]

Return the chemical source terms.

Definition at line 42 of file chemistryModelI.H.

const scalarField& deltaTChem (  )  const [inline]

Return the latest estimation of integration step.

Definition at line 196 of file chemistryModel.H.

tmp<volScalarField> tc (  )  const

The chemical time scale.

scalarField omega ( const scalarField &  c,
const scalar  T,
const scalar  p 
) const

dc/dt = omega, rate of change in concentration, for each species

scalar omega ( const reaction &  r,
const scalarField &  c,
const scalar  T,
const scalar  p,
scalar &  pf,
scalar &  cf,
label &  lRef,
scalar &  pr,
scalar &  cr,
label &  rRef 
) const

return the reaction rate for reaction r and the reference

species and charateristic times

label nEqns (  )  const [virtual]

The number of ODE to solve.

Implements ODE.

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

Implements ODE.

void jacobian ( const scalar  t,
const scalarField &  c,
scalarField &  dcdt,
Matrix< scalar > &  dfdc 
) const [virtual]

Implements ODE.

void calculate (  ) 

Calculates the reaction rates.

scalar solve ( const scalar  t0,
const scalar  deltaT 
)

Solve the reaction system for the given start time and time-step.

and return the characteristic time


The documentation for this class was generated from the following files: Copyright © 2000-2007 OpenCFD Ltd