ODT
|
#include <cvodeDriver.h>
Public Member Functions | |
void | integrateCell (int p_iC, double tres) |
cvodeDriver () | |
void | init (domain *p_domn, const bool p_LincludeRhsMix) |
~cvodeDriver () | |
Public Attributes | |
domain * | domn |
pointer to main domain object | |
int | neq |
number of eqns solved | |
N_Vector | var |
vector of variables being solved for CVode | |
map< int, dv * > | tVarMap |
map to transported variables. (Domain vars in any order, but here, solve transported). | |
int | iC |
which cell are we integrating | |
double | atol |
CVODE tol. | |
double | rtol |
CVODE tol. | |
bool | LincludeRhsMix |
if true, mixing term is included in integration | |
Private Member Functions | |
void | testCVflag (int flag, string func) |
Private Attributes | |
void * | cvode_mem |
CVode memory. | |
bool | Ldestruct |
true if we setup cvode and can therefore destruct | |
vector< double > | vard |
variable array dummy | |
vector< double > | Sd |
variable source dummy | |
Class integrates a single cell at a time. Intended for stiff systems (e.g. combustion chemistry).
Definition at line 33 of file cvodeDriver.h.
|
inline |
Definition at line 71 of file cvodeDriver.h.
cvodeDriver::~cvodeDriver | ( | ) |
Destructor
Definition at line 78 of file cvodeDriver.cc.
void cvodeDriver::init | ( | domain * | p_domn, |
const bool | p_LincludeRhsMix ) |
Constructor function.
p_domn | input: pointer to domain object |
Definition at line 23 of file cvodeDriver.cc.
void cvodeDriver::integrateCell | ( | int | p_iC, |
double | tres ) |
Public interface: Integrates a given cell (iC) for time tres.
iC | input: integrate this cell. |
tres | input: time to integrate for. |
Definition at line 90 of file cvodeDriver.cc.
|
private |
Message for bad cvode flag
flag | input: value flag |
func | input: function with error |
Definition at line 156 of file cvodeDriver.cc.
double cvodeDriver::atol |
CVODE tol.
Definition at line 44 of file cvodeDriver.h.
|
private |
CVode memory.
Definition at line 51 of file cvodeDriver.h.
domain* cvodeDriver::domn |
pointer to main domain object
Definition at line 39 of file cvodeDriver.h.
int cvodeDriver::iC |
which cell are we integrating
Definition at line 43 of file cvodeDriver.h.
|
private |
true if we setup cvode and can therefore destruct
Definition at line 52 of file cvodeDriver.h.
bool cvodeDriver::LincludeRhsMix |
if true, mixing term is included in integration
Definition at line 47 of file cvodeDriver.h.
int cvodeDriver::neq |
number of eqns solved
Definition at line 40 of file cvodeDriver.h.
double cvodeDriver::rtol |
CVODE tol.
Definition at line 45 of file cvodeDriver.h.
|
private |
variable source dummy
Definition at line 54 of file cvodeDriver.h.
map<int,dv*> cvodeDriver::tVarMap |
map to transported variables. (Domain vars in any order, but here, solve transported).
Definition at line 42 of file cvodeDriver.h.
N_Vector cvodeDriver::var |
vector of variables being solved for CVode
Definition at line 41 of file cvodeDriver.h.
|
private |
variable array dummy
Definition at line 53 of file cvodeDriver.h.