pymgrit.arenstorf_orbit package

Submodules

pymgrit.arenstorf_orbit.arenstorf_orbit module

Vector and application class for the Arenstorf orbit problem

class pymgrit.arenstorf_orbit.arenstorf_orbit.ArenstorfOrbit(*args, **kwargs)

Bases: pymgrit.core.application.Application

Application for Arenstorf orbit problem,

x’’ = x + 2y’ - b*(x + a)/D_1 - a*(x - b)/D_2, y’’ = y - 2x’ - b*y/D_1 - a*y/D_2

with a = 0.012277471, b = 1 - a,

D_1 = ((x + a)^2 + y^2)^(3/2), D_2 = ((x - a)^2 + y^2)^(3/2)

and ICs

x(0) = 0.994, x’(0) = 0, y(0) = 0, y’(0) = -2.00158510637908

step(u_start: pymgrit.arenstorf_orbit.arenstorf_orbit.VectorArenstorfOrbit, t_start: float, t_stop: float) pymgrit.arenstorf_orbit.arenstorf_orbit.VectorArenstorfOrbit

Time integration routine for the application

Parameters
  • u_start – approximate solution for the input time t_start

  • t_start – time associated with the input approximate solution u_start

  • t_stop – time to evolve the input approximate solution to

Returns

approximate solution at input time t_stop

class pymgrit.arenstorf_orbit.arenstorf_orbit.VectorArenstorfOrbit

Bases: pymgrit.core.vector.Vector

Vector for the Arenstorf orbit problem

clone()

Initialize vector object with same values

clone_rand()

Initialize vector object with random values

clone_zero()

Initialize vector object with zeros

get_values()

Get vector data

norm()

Norm of a vector object

pack()

Specifying communication data

plot()
set_values(values)

Set vector data

unpack(values)

Unpacking communication data

pymgrit.arenstorf_orbit.arenstorf_orbit.arenstorf(t, y, a, b)

Module contents