H2 Combustion
CombustionProcess Class Reference

This object manages the physical combustion process. More...

Inheritance diagram for CombustionProcess:
Collaboration diagram for CombustionProcess:

List of all members.

Public Member Functions

 CombustionProcess (Compound *c, std::ostream *o)
void diffEq (const double *const x, const double t, double *const dx)
 This function should calculate the differential equation.
virtual int getDim ()
 This function should return the number of dimensions of the system to be integrated.
double getState (double *const x)
 Function to get the current state of the system before starting the integration.
void listSubstances ()
virtual void peek (const double *const, const double)
 Function that can observe the current state of the system during the integration.
void setAdiabatic ()
void setState (const double *const x, const double t)
 Function to set the current state of the system after finishing the integration.

Protected Attributes

std::unordered_map< Substance
*, int > 
indices
int numberOfSubstances

Detailed Description

It manages a Compound object and calculates the differential equation in a format that is needed by an Integrator object and therefore implements the interface integrable. It also generates the output using the peek function that is called after every integration step.


Member Function Documentation

void diffEq ( const double *const  x,
const double  t,
double *const  dx 
) [virtual]
Parameters:
xPointer to array of length getDim() that contains the current phasespace point of the system.
tThe current value of the coordinate to be integrated.
dxPointer to array of length getDim() where the first derivative of the phasespace point with respect to the coordinate t is to be stored in.

Implements Integrable.

int getDim ( ) [virtual]

After that function being called, the dimensionality of the system should not change anymore, since the integrator needs to rely on that number.

Implements Integrable.

double getState ( double *const  x) [virtual]
Parameters:
xPointer to array of length getDim() to store current phasespace point of the system in.

Implements Integrable.

void peek ( const double * const  const,
const double   
) [virtual]
Parameters:
xPointer to array of length getDim() with the current phasespace point of the system.
tThe current time of the system.

Reimplemented from Integrable.

void setState ( const double *const  x,
const double  t 
) [virtual]
Parameters:
xPointer to array of length getDim() with the new phasespace point of the system.
tThe new time of the system.

Implements Integrable.

 All Classes Files Functions