libode
Easy to compile, fast ODE integrators as C++ classes
|
Base class for Rosenbrock methods. More...
#include <ode_rosenbrock.h>
Public Member Functions | |
OdeRosenbrock (unsigned long neq, int nk) | |
constructs | |
~OdeRosenbrock () | |
destructs | |
Protected Member Functions | |
void | prep_jac (double **Jac, unsigned long n, double dt, int *p) |
do necessary arithmetic with the Jacobian then lu factor it | |
Protected Attributes | |
double | gam |
parameter multipying Jacobian or single diagonal gamma | |
int * | p_ |
permutation array for LU factorization | |
double * | rhs_ |
right hand side of matrix equations | |
double * | soltemp_ |
temporary sol vector | |
double ** | k_ |
stage derivatives | |
Base class for Rosenbrock methods.
Definition at line 11 of file ode_rosenbrock.h.
ode::OdeRosenbrock::OdeRosenbrock | ( | unsigned long | neq, |
int | nk ) |
constructs
[in] | neq | size of ODE sytem |
[in] | nk | number of stages |
Definition at line 7 of file ode_rosenbrock.cc.
ode::OdeRosenbrock::~OdeRosenbrock | ( | ) |
destructs
Definition at line 22 of file ode_rosenbrock.cc.
|
protected |
do necessary arithmetic with the Jacobian then lu factor it
[in] | n | size of Jacobian |
[in] | Jac | Jacobian matrix then LU decomposed Jacobian with modifications for Rosembrock stages |
[in] | dt | time step size |
[out] | p | permutation array for LU decomposition |
Definition at line 30 of file ode_rosenbrock.cc.
|
protected |
parameter multipying Jacobian or single diagonal gamma
Definition at line 25 of file ode_rosenbrock.h.
|
protected |
stage derivatives
Definition at line 33 of file ode_rosenbrock.h.
|
protected |
permutation array for LU factorization
Definition at line 27 of file ode_rosenbrock.h.
|
protected |
right hand side of matrix equations
Definition at line 29 of file ode_rosenbrock.h.
|
protected |
temporary sol vector
Definition at line 31 of file ode_rosenbrock.h.