implementations.sweeper_classes.Multistep module¶
- class AdamsBashforthExplicit1Step(params, level)[source]¶
Bases:
MultiStepThis is just forward Euler.
- alpha = [-1.0]¶
- beta = [1.0, 0.0]¶
- class AdamsMoultonImplicit1Step(params, level)[source]¶
Bases:
MultiStepTrapezoidal method dressed up as a multistep method.
- alpha = [-1.0]¶
- beta = [0.5, 0.5]¶
- class AdamsMoultonImplicit2Step(params, level)[source]¶
Bases:
MultiStepThird order implicit scheme
- alpha = [0.0, -1.0]¶
- beta = [-0.08333333333333333, 0.6666666666666666, 0.4166666666666667]¶
- class BackwardEuler(params, level)[source]¶
Bases:
MultiStepAlmost as old, impressive and beloved as Koelner Dom.
- alpha = [-1.0]¶
- beta = [0.0, 1.0]¶
- class Cache(num_steps)[source]¶
Bases:
objectClass for managing solutions and right hand side evaluations of previous steps for the MultiStep “sweeper”.
- - u
Contains solution from previous steps
- Type:
list
- - f
Contains right hand side evaluations from previous steps
- Type:
list
- - t
Contains time of previous steps
- Type:
list
- class MultiStep(params, level)[source]¶
Bases:
Sweeper- alpha = None¶
- beta = None¶
- compute_residual(stage=None)[source]¶
Do nothing.
- Parameters:
stage (str) – The current stage of the step the level belongs to
- generate_starting_values()[source]¶
Compute solutions to the steps when not enough previous values are available for the multistep method. The initial conditions are added in predict since this is not bespoke behaviour to any method.
- property level¶
Returns the current level
- Returns:
Current level
- Return type:
pySDC.Level.level