|
Ember
|
Abstract base class for an ODE to be integrated by SundialsCvode. More...
#include <sundialsUtils.h>
Public Member Functions | |
| virtual int | f (const realtype t, const sdVector &y, sdVector &ydot)=0 |
| Evaluate the ODE function. | |
| virtual int | g (realtype t, sdVector &y, realtype *gOut) |
| Optional function for CVODE to find roots of. | |
| virtual int | denseJacobian (const realtype t, const sdVector &y, const sdVector &ydot, sdMatrix &J) |
| Optional function used to compute the dense Jacobian. | |
| virtual int | bandedJacobian (const realtype t, const sdVector &y, const sdVector &ydot, sdBandMatrix &J) |
| Optional function used to compute a banded Jacobian. | |
| virtual | ~sdODE () |
Abstract base class for an ODE to be integrated by SundialsCvode.
|
inlinevirtual |
Evaluate the ODE function.
\[ y' = f(y,t) \]
.
| t | the current time | |
| y | the current vector of state variables | |
| [out] | ydot | the computed time derivatives |
Implemented in ConvectionSystemUTW, ConvectionSystemY, and SourceSystemCVODE.
|
inlinevirtual |
Optional function for CVODE to find roots of.
| t | the current time | |
| y | the current vector of state variables | |
| [out] | gOut | the value of \[ g(y,t) \] |
|
inlinevirtual |
Optional function used to compute the dense Jacobian.
Used in conjuction with CVDense.
| t | the current time | |
| y | the current vector of state variables | |
| ydot | the current vector of time derivatives | |
| [out] | J | The computed Jacobian matrix |
Reimplemented in SourceSystemCVODE.
|
inlinevirtual |
Optional function used to compute a banded Jacobian.
Used in conjuction with CVBand.
| t | the current time | |
| y | the current vector of state variables | |
| ydot | the current vector of time derivatives | |
| [out] | J | The computed Jacobian matrix |