utils.solver.define_t_eval

utils.solver.define_t_eval(t_span, delta_t=None, num_points=None)

Build a t_eval array for use with :func:scipy.integrate.solve_ivp.

Parameters

t_span : tuple of float

(t0, tf) integration bounds.

delta_t : float or None = None

Output spacing. Used when num_points is not provided.

num_points : int or None = None

Number of evenly-spaced output points. Takes precedence over delta_t when both are provided.

Returns

t_eval : ndarray

1-D array of output times.

Raises

: ValueError

If neither delta_t nor num_points is provided.