5 #include <utl/RK5ODEIntegrator.h>
14 using namespace galactic;
21 template<
typename Vector>
26 const double r2 = v[0]*v[0] + v[1]*v[1] + v[2]*v[2];
42 for (
double energy = 0.01*
EeV; energy <= 100*
EeV; energy *= 1.3) {
44 ODE chargeMotionODE(1*
eplus, energy, hmr);
52 const Vector6 x0u0 = { -sunGCDistance, 0, 50*
parsec, 1, 0, 0 };
53 const double accuracy = 1e-5;
61 Vector6& xu = it.
GetY();
71 for (
int j = 0; j < 3; ++j)
74 for (
int j = 3; j < 6; ++j)
int main(int argc, char *argv[])
AdaptiveRK5Iterator< DerivativeFunctor, VectorType > AdaptiveBegin(const double x, const double dx, const VectorType &y, const double accuracy=1e-5)
double RadialDistance(const Vector &v)