RungeKutta#
- class fridom.framework.time_steppers.RungeKutta(dt: timedelta64 | float = 1, method: RKMethods = RKMethods.RK4, max_dt: timedelta64 | float | None = None, tol: float = 1e-06)[source]#
Bases:
TimeStepper- __init__(dt: timedelta64 | float = 1, method: RKMethods = RKMethods.RK4, max_dt: timedelta64 | float | None = None, tol: float = 1e-06) None[source]#
Methods
__init__([dt, method, max_dt, tol])disable()Disable the module.
enable()Enable the module.
is_enabled()Whether the module is enabled or not.
reset()Stop and start the module.
setup(mset[, setup_mode])Set the module up.
start()Start the module.
stop()Stop the module.
time_discretization_effect(omega)Compute the time discretization effect on a frequency.
update(mz)Update the model state to the next time level.
Attributes
diff_moduleThe differentiation module to be used by this module.
dtTime step size.
gridThe grid of the model settings.
infoReturn a dictionary with information about the time stepper.
interp_moduleThe interpolation module to be used by this module.
is_setupWhether the module is set up.
Time step size.
msetThe model settings.
required_haloThe required halo points for this module.
- name = 'Runge-Kutta'#
- update(mz: ModelState) ModelState[source]#
Update the model state to the next time level.
Parameters#
- mzModelState
Model state.
- property max_dt: timedelta64#
Time step size.