pyoculus 0.1.1
|
Class that used to setup the ODE integrator. More...
Public Member Functions | |
__init__ (self, params) | |
Set up the ODE solver. | |
set_initial_value (self, t, x) | |
Set up the initial value for the ODE solver. | |
integrate (self, tend) | |
Integrate the ODE until tend | |
get_solution (self) | |
Get the solution at current time. | |
copy (self) | |
Return a copy of self, to use if want to compute in parallel. | |
Public Attributes | |
t = t | |
x = x | |
Protected Attributes | |
_params = dict(params) | |
Class that used to setup the ODE integrator.
This is an abstract class, should never be used as an instance.
All integrators derived from BaseIntegrator should contain the following member functions
Optional:
pyoculus.integrators.base_integrator.BaseIntegrator.__init__ | ( | self, | |
params ) |
Set up the ODE solver.
params | dict, the parameters used in the ODE solver |
Reimplemented in pyoculus.integrators.rk_integrator.RKIntegrator.
pyoculus.integrators.base_integrator.BaseIntegrator.copy | ( | self | ) |
Return a copy of self, to use if want to compute in parallel.
Reimplemented in pyoculus.integrators.rk_integrator.RKIntegrator.
pyoculus.integrators.base_integrator.BaseIntegrator.get_solution | ( | self | ) |
Get the solution at current time.
pyoculus.integrators.base_integrator.BaseIntegrator.integrate | ( | self, | |
tend ) |
Integrate the ODE until tend
tend | the target end time |
Reimplemented in pyoculus.integrators.rk_integrator.RKIntegrator.
pyoculus.integrators.base_integrator.BaseIntegrator.set_initial_value | ( | self, | |
t, | |||
x ) |
Set up the initial value for the ODE solver.
t | the start of time |
x | the start of coordinates |
Reimplemented in pyoculus.integrators.rk_integrator.RKIntegrator.
|
protected |
pyoculus.integrators.base_integrator.BaseIntegrator.t = t |
pyoculus.integrators.base_integrator.BaseIntegrator.x = x |