H2 Combustion
|
This object manages the physical combustion process. More...
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 |
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.
void diffEq | ( | const double *const | x, |
const double | t, | ||
double *const | dx | ||
) | [virtual] |
x | Pointer to array of length getDim() that contains the current phasespace point of the system. |
t | The current value of the coordinate to be integrated. |
dx | Pointer 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] |
x | Pointer 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] |
x | Pointer to array of length getDim() with the current phasespace point of the system. |
t | The current time of the system. |
Reimplemented from Integrable.
void setState | ( | const double *const | x, |
const double | t | ||
) | [virtual] |
x | Pointer to array of length getDim() with the new phasespace point of the system. |
t | The new time of the system. |
Implements Integrable.