gemseo.algos.ode.scipy_ode.settings.rk45 module#
Settings for the RK45 ODE solver from Scipy.
- Settings RK45_Settings(*, first_step=None, max_step=inf, rtol=0.001, atol=1e-06)[source]#
Bases:
BaseScipyODESolverSettingsSettings for the RK45 ODE solver from Scipy.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
max_step (Annotated[float, Gt(gt=0)]) --
By default it is set to inf.
rtol (Annotated[float, Gt(gt=0)] | _NDArrayPydantic[Any, dtype[Annotated[float, Gt(gt=0)]]]) --
By default it is set to 0.001.
atol (Annotated[float, Gt(gt=0)] | _NDArrayPydantic[Any, dtype[Annotated[float, Gt(gt=0)]]]) --
By default it is set to 1e-06.
- Return type:
None
- model_post_init(context, /)#
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that's what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) -- The BaseModel instance.
context (Any) -- The context.
- Return type:
None