GustafssonStepControlConfig

class cubie.integrators.step_control.gustafsson_controller.GustafssonStepControlConfig(precision: type[float16] | type[float32] | type[float64] | dtype[float16] | dtype[float32] | dtype[float64], n: int = 1, timestep_memory_location: str = 'local', dt_min: float = 1e-06, dt_max: float | None = 1.0, atol: float | Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] = array([1.e-06]), rtol: float | Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] = array([1.e-06]), algorithm_order: int = 1, min_gain: float = 0.3, max_gain: float = 2.0, safety: float = 0.9, deadband_min: float = 1.0, deadband_max: float = 1.2, gamma: float = 0.9, newton_max_iters: int = 20)[source]

Bases: AdaptiveStepControlConfig

Configuration for Gustafsson-like predictive controller.

Notes

Includes damping and Newton iteration limits used by Gustafsson’s predictor for implicit integrators.

property gamma: float

Return the damping factor applied to the gain.

property newton_max_iters: int

Return the maximum number of Newton iterations considered.

property settings_dict: dict[str, object]

Return the configuration as a dictionary.