FixedStepControlConfig

class cubie.integrators.step_control.fixed_step_controller.FixedStepControlConfig(precision: type[float16] | type[float32] | type[float64] | dtype[float16] | dtype[float32] | dtype[float64], n: int = 1, timestep_memory_location: str = 'local', dt: float = 0.001)[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

Number of state variables controlled per step.

Type:

int

_validate_config() None[source]

Confirm that the configuration is internally consistent.

property dt: float

Return the fixed step size.

property dt0: float

Return the initial step size used at loop start.

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.

property settings_dict: dict[str, object]

Return the configuration as a dictionary.