Abstract base class for an ODE integrator that can integrate instances of class ODE.
More...
#include <integrator.h>
|
| | Integrator () |
| |
| virtual | ~Integrator () |
| |
| virtual void | set_y0 (const dvec &y0) |
| | Set the initial condition for the problem.
|
| |
| virtual void | initialize (const double t0, const double h) |
| | Set up parameters and problem-dependent data structures for the solver.
|
| |
| double | get_h () const |
| | Get the last step size used.
|
| |
| double | get_t () const |
| | Get the current time reached by the integrator.
|
| |
| virtual const dvec & | get_y () const |
| | Get the current state vector.
|
| |
| virtual const dvec & | get_ydot ()=0 |
| | Get the time derivative of the current state vector.
|
| |
| virtual void | step ()=0 |
| | Take a single step using the current step size.
|
| |
| virtual void | integrateToTime (double tEnd) |
| | Take as many steps as necessary to reach tEnd without stepping past it.
|
| |
|
| dvec | y |
| | solution vector
|
| |
| dvec | ydot |
| | derivative of state vector
|
| |
| double | t |
| | current time
|
| |
|
| double | h |
| | timestep
|
| |
| size_t | N |
| | Dimension of y.
|
| |
Abstract base class for an ODE integrator that can integrate instances of class ODE.
◆ Integrator()
| Integrator::Integrator |
( |
| ) |
|
◆ ~Integrator()
| virtual Integrator::~Integrator |
( |
| ) |
|
|
inlinevirtual |
◆ set_y0()
| void Integrator::set_y0 |
( |
const dvec & | y0 | ) |
|
|
virtual |
◆ initialize()
| void Integrator::initialize |
( |
const double | t0, |
|
|
const double | h ) |
|
virtual |
Set up parameters and problem-dependent data structures for the solver.
Must be called before starting integration.
- Parameters
-
| t0 | Start time for the integration |
| h | initial step size |
Reimplemented in TridiagonalIntegrator.
◆ get_h()
| double Integrator::get_h |
( |
| ) |
const |
Get the last step size used.
◆ get_t()
| double Integrator::get_t |
( |
| ) |
const |
Get the current time reached by the integrator.
◆ get_y()
| const dvec & Integrator::get_y |
( |
| ) |
const |
|
virtual |
Get the current state vector.
◆ get_ydot()
| virtual const dvec & Integrator::get_ydot |
( |
| ) |
|
|
pure virtual |
◆ step()
| virtual void Integrator::step |
( |
| ) |
|
|
pure virtual |
◆ integrateToTime()
| void Integrator::integrateToTime |
( |
double | tEnd | ) |
|
|
virtual |
Take as many steps as necessary to reach tEnd without stepping past it.
◆ ydot
derivative of state vector
The documentation for this class was generated from the following files: