choreo.segm.ODE.ExplicitSymplecticIVP#
- ExplicitSymplecticIVP(fun, gun, (double, double) t_span, double[::1] x0, double[::1] v0, ExplicitSymplecticRKTable rk, grad_fun=None, grad_gun=None, double[:, ::1] grad_x0=None, double[:, ::1] grad_v0=None, mode=u'VX', Py_ssize_t nint=1, Py_ssize_t keep_freq=-1, bool keep_init=False, bool DoEFT=True)#
Explicit symplectic integration of a partitionned initial value problem.
- Parameters:
fun (
callable
orscipy.LowLevelCallable
) – Function defining the IVP.gun (
callable
orscipy.LowLevelCallable
) – Function defining the IVP.t_span (
tuple
(numpy.float64
,numpy.float64
)) – Initial and final time of integration.x0 (
numpy.ndarray
(shape = (n), dtype = np.float64)
) – Initial value for x.v0 (
numpy.ndarray
(shape = (n), dtype = np.float64)
) – Initial value for v.rk_x (
ExplicitSymplecticRKTable
) – Runge-Kutta tables for the integration of the IVP.grad_fun (
callable
orscipy.LowLevelCallable
, optional) – Gradient of the function defining the IVP, by defaultNone
.grad_gun (
callable
orscipy.LowLevelCallable
, optional) – Gradient of the function defining the IVP, by defaultNone
.mode (
str
, optional) – Whether to start the staggered integration with x or v, by default"VX"
.nint (
int
, optional) – Number of integration steps, by default1
.keep_freq (
int
, optional) – Number of integration steps to be taken before saving output, by default-1
.keep_init (
bool
, optional) – Whether to save the initial values, by defaultFalse
.DoEFT (
bool
, optional) – Whether to use an error-free transformation for summation, by defaultTrue
.
- Returns:
Arrays containing the computed approximation of the solution to the IVP at evaluation points.
- Return type:
tuple
ofnumpy.ndarray
.