ploonetide.numerical.Simulation¶
- class ploonetide.numerical.Simulation(variables)[source]¶
Bases:
objectBuild and run a simulation.
- Parameters:
variables (list) – List of Variable instances
Methods
__init__(variables)run(t, dt[, t0, jacobian, show_progress])Run the simulation.
set_diff_eq(calc_diff_eqs, params, ...)Set the differential equation function.
set_integration_method([method])Set the integration method.
Attributes
- set_diff_eq(calc_diff_eqs, params, ini_conds, events)[source]¶
Set the differential equation function.
- Parameters:
calc_diff_eqs – Callable returning dy/dt
**kwargs – Additional arguments passed to the function
- set_integration_method(method='RK45')[source]¶
Set the integration method.
- Parameters:
method (str) – Integration method name.
- supported_integration_methods = ('RK45', 'RK23', 'DOP853', 'Radau', 'BDF', 'LSODA')¶