Package hedge :: Package timestep :: Package multirate_ab :: Class TwoRateAdamsBashforthTimeStepper
[hide private]
[frames] | no frames]

Class TwoRateAdamsBashforthTimeStepper

source code


Simultaneously timesteps two parts of an ODE system, the first with a small timestep, the second with a large timestep.

[1] C.W. Gear and D.R. Wells, "Multirate linear multistep methods," BIT Numerical Mathematics, vol. 24, Dec. 1984, pg. 484-502.

Instance Methods [hide private]
 
__init__(self, method, large_dt, substep_count, order, order_f2f=None, order_s2f=None, order_f2s=None, order_s2s=None, startup_stepper=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, ys, t, rhss) source code
 
run_ab(self, ys, t, rhss) source code
 
get_coefficients(self, for_fast_history, hist_head_time_level, start_level, end_level, order) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, method, large_dt, substep_count, order, order_f2f=None, order_s2f=None, order_f2s=None, order_s2s=None, startup_stepper=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__call__(self, ys, t, rhss)
(Call operator)

source code 
Parameters:
  • rhss - Matrix of right-hand sides, stored in row-major order, i.e. [f2f, s2f, f2s, s2s].

get_coefficients(self, for_fast_history, hist_head_time_level, start_level, end_level, order)

source code 
Decorators:
  • @memoize_method