autopdex.dae.DormandPrince
- class autopdex.dae.DormandPrince(order)[source]
Dormand-Prince method (explicit with embedded error estimation).
- Parameters:
order (int) – Order of the method (5, 8).
Supports PID control.
- __init__(order)[source]
Initializes the time integrator.
- Parameters:
name (str) – The name of the method.
value_and_derivatives (callable) – Function to compute state values and their derivatives.
update (callable) – Function that updates the state based on stage results.
stage_list (ndarray) – Array containing the indices or order of stages.
stage_types (tuple) – Tuple indicating the type of each stage (‘explicit’ or ‘implicit’).
stage_positions (ndarray) – Array of stage positions (e.g., Butcher nodes).
num_steps (int) – Number of previous steps (for multi-step methods).
num_derivs (int) – Highest derivative order that is supported.
num_stages (int) – Number of stages (e.g., in Runge–Kutta methods).
Methods
__delattr__(name, /)Implement delattr(self, name).
__dir__()Default dir() implementation.
__eq__(value, /)Return self==value.
__format__(format_spec, /)Default object formatter.
__ge__(value, /)Return self>=value.
__getattribute__(name, /)Return getattr(self, name).
__getstate__()Helper for pickle.
__gt__(value, /)Return self>value.
__hash__()Return hash(self).
__init_subclass__This method is called when a class is subclassed.
__le__(value, /)Return self<=value.
__lt__(value, /)Return self<value.
__ne__(value, /)Return self!=value.
__new__(**kwargs)__reduce__()Helper for pickle.
__reduce_ex__(protocol, /)Helper for pickle.
__repr__()Return repr(self).
__setattr__(name, value, /)Implement setattr(self, name, value).
__sizeof__()Size of object in memory, in bytes.
__str__()Return str(self).
__subclasshook__Abstract classes can override this to customize issubclass().
_error_estimate(q_stages, q_n, q_t_n, dt)Computes an error estimate for the integrator.
_rule(q, q_n, q_t_n, dt)Computes the function value and temporal derivative for an integrator, e.g.
_update(q_stages, q_n, q_t_n, dt)Updating rule after solving the step.
Attributes
__abstractmethods____annotations____dict____doc____module____slots____weakref__list of weak references to the object
_abc_impl