FixedStepControlConfig

class cubie.integrators.step_control.fixed_step_controller.FixedStepControlConfig(precision: type[float16] | type[float32] | type[float64] | dtype[float16] | dtype[float32] | dtype[float64], n_states: int = 1, mass_flags: Iterable | None = None, timestep_memory_location: str = 'local', atol: float | ArrayLike = array([1.e-06]), rtol: float | ArrayLike = array([1.e-06]), dt: float = 0.001, *, jit_flags: JITFlags = NOTHING, unroll: UnrollFlags = NOTHING)[source]

Bases: BaseStepControllerConfig

Configuration for fixed-step integrator loops.

precision

Precision used for numerical operations.

Type:

type[numpy.float16] | type[numpy.float32] | type[numpy.float64] | numpy.dtype[numpy.float16] | numpy.dtype[numpy.float32] | numpy.dtype[numpy.float64]

n_states

Number of state variables controlled per step.

Type:

int

atol

Absolute tolerance vector inherited from the base config. The fixed controller never rejects steps, but implicit algorithms derive their inner-solver tolerances from it.

Type:

numpy.ndarray

rtol

Relative tolerance vector, on the same terms as atol.

Type:

numpy.ndarray

property dt: float

Return the fixed step size.

property dt_max: float

Return the maximum step size.

property dt_min: float

Return the minimum time step size.

property is_adaptive: bool

Return False because the controller is not adaptive.