Yukterez

Gravity & Charge, 10 Body Simulator

Feb 20th, 2019 (edited)
94
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (* |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| *)
  2. (* ||| Mathematica Syntax || yukterez.net || n Body Newtonian Mass & Charge Simulator ||| *)
  3. (* |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| *)
  4.  
  5. ClearAll["Global`*"]; ClearAll["Local`*"];
  6. Needs["DifferentialEquations`NDSolveProblems`"];
  7. Needs["DifferentialEquations`NDSolveUtilities`"];
  8.  
  9. Amp = 1; kg = 1; m = 1; sek = 1; km = 1000 m; (* SI Einheiten *)
  10.  
  11. mt1 = {"StiffnessSwitching", Method-> {"ExplicitRungeKutta", Automatic}};
  12. mt2 = {"ImplicitRungeKutta", "DifferenceOrder"-> 20};
  13. mt3 = {"EquationSimplification"-> "Residual"};
  14. mt0 = Automatic;
  15. mta = mt2;
  16. wp = MachinePrecision;
  17.  
  18. (* Plot Optionen *)
  19.  
  20. Tmax = 40 yr;
  21. tMax = Min[Tmax, plunge];
  22. trail = 10 yr;
  23. point = 0.015;
  24. thk = 0.004;
  25. plotrange = 50 Au {{-1, +1}, {-1, +1}, {-1, +1}};
  26. viewpoint = {40, 30, 20};
  27. imagesize = 430;
  28. startpos = 0;
  29.  
  30. (* Konstanten *)
  31.  
  32. G = 667384/10^16 m^3/kg/sek^2;
  33. Λ = 11056*^-56/m^2;
  34. ε0 = 8854187817*^-21 Amp^2 sek^4/kg/m^3;
  35. c = 299792458 m/sek;
  36. Au = 149597870700 m;
  37. dy = 24*3600 sek;
  38. yr = 36525*dy/100;
  39. (* Ephemeriden vom 19.02.2019, 0:00:00 TDB *)
  40. (* Sonne *)
  41.  
  42. m1 = +1.988435*^30 kg;
  43. q1 = +77 Amp sek;
  44.  
  45. x1x = -1.147196570503204*^-03 Au;
  46. y1y = +7.515074431920434*^-03 Au;
  47. z1z = -4.730273651193038*^-05 Au;
  48.  
  49. v1x = -8.107931162902937*^-06 Au/dy;
  50. v1y = +1.520849732928662*^-06 Au/dy;
  51. v1z = +2.095554598567427*^-07 Au/dy;
  52.  
  53. (* Merkur *)
  54.  
  55. m2 = +3.30104*^23 kg;
  56. q2 = +0 Amp sek;
  57.  
  58. x2x = +2.493682187528474*^-01 Au;
  59. y2y = +2.060848667278006*^-01 Au;
  60. z2z = -6.803162776737710*^-03 Au;
  61.  
  62. v2x = -2.301828852252654*^-02 Au/dy;
  63. v2y = +2.326003199133993*^-02 Au/dy;
  64. v2z = +4.011640539083395*^-03 Au/dy;
  65.  
  66. (* Venus *)
  67.  
  68. m3 = +4.86732*^24 kg;
  69. q3 = +0 Amp sek;
  70.  
  71. x3x = -5.604572600267276*^-01 Au;
  72. y3y = -4.500554270408416*^-01 Au;
  73. z3z = +2.595073246894732*^-02 Au;
  74.  
  75. v3x = +1.265689462094818*^-02 Au/dy;
  76. v3y = -1.574829638876520*^-02 Au/dy;
  77. v3z = -9.467652690844731*^-04 Au/dy;
  78.  
  79. (* Erde + Mond *)
  80.  
  81. m4 = +5.9721986*^24 kg+7.3459*^22 kg;
  82. q4 = +0 Amp sek;
  83.  
  84. x4x = -8.552072163834489*^-01 Au;
  85. y4y = +5.049715021822364*^-01 Au;
  86. z4z = -6.849877545851131*^-05 Au;
  87.  
  88. v4x = -8.942912568116291*^-03 Au/dy;
  89. v4y = -1.492365678503182*^-02 Au/dy;
  90. v4z = +2.741178622694643*^-07 Au/dy;
  91.  
  92. (* Mars *)
  93.  
  94. m5 = +6.41693*^23 kg;
  95. q5 = +0 Amp sek;
  96.  
  97. x5x = +5.580724605736193*^-01 Au;
  98. y5y = +1.416261572201534*^+00 Au;
  99. z5z = +1.574925082740965*^-02 Au;
  100.  
  101. v5x = -1.248544019487808*^-02 Au/dy;
  102. v5y = +6.355083417008326*^-03 Au/dy;
  103. v5z = +4.394992947386628*^-04 Au/dy;
  104.  
  105. (* Jupiter *)
  106.  
  107. m6 = +1.89813*^27 kg;
  108. q6 = +0 Amp sek;
  109.  
  110. x6x = -1.795821860926694*^+00 Au;
  111. y6y = -5.016469167174772*^+00 Au;
  112. z6z = +6.097587180308248*^-02 Au;
  113.  
  114. v6x = +7.014525824256318*^-03 Au/dy;
  115. v6y = -2.183010990796764*^-03 Au/dy;
  116. v6z = -1.478090774743338*^-04 Au/dy;
  117.  
  118. (* Saturn *)
  119.  
  120. m7 = +5.68319*^26 kg;
  121. q7 = +0 Amp sek;
  122.  
  123. x7x = +2.211165351380597*^+00 Au;
  124. y7y = -9.803846216723874*^+00 Au;
  125. z7z = +8.244475037063657*^-02 Au;
  126.  
  127. v7x = +5.133965065556525*^-03 Au/dy;
  128. v7y = +1.210333590471664*^-03 Au/dy;
  129. v7z = -2.255855621236429*^-04 Au/dy;
  130.  
  131. (* Uranus *)
  132.  
  133. m8 = +8.68103*^25 kg;
  134. q8 = +0 Amp sek;
  135.  
  136. x8x = +1.691367572961052*^+01 Au;
  137. y8y = +1.040615964042521*^+01 Au;
  138. z8z = -1.804702052122950*^-01 Au;
  139.  
  140. v8x = -2.089933372733080*^-03 Au/dy;
  141. v8y = +3.166549064213605*^-03 Au/dy;
  142. v8z = +3.884093561739733*^-05 Au/dy;
  143.  
  144. (* Neptun *)
  145.  
  146. m9 = +1.02413*^26 kg;
  147. q9 = +0 Amp sek;
  148.  
  149. x9x = +2.901867480863295*^+01 Au;
  150. y9y = -7.331260396521146*^+00 Au;
  151. z9z = -5.177914737734761*^-01 Au;
  152.  
  153. v9x = +7.476131405747911*^-04 Au/dy;
  154. v9y = +3.062101642790218*^-03 Au/dy;
  155. v9z = -8.000840096853115*^-05 Au/dy;
  156.  
  157. (* Pluto + Charon *)
  158.  
  159. m0 = +1.303*^22 kg+1.586*^21 kg;
  160. q0 = +0 Amp sek;
  161.  
  162. x0x = +1.202894612500549*^+01 Au;
  163. y0y = -3.151878221568063*^+01 Au;
  164. z0z = -1.067812248721266*^-01 Au;
  165.  
  166. v0x = +3.004427922255182*^-03 Au/dy;
  167. v0y = +4.501898344345873*^-04 Au/dy;
  168. v0z = -9.299030165680609*^-04 Au/dy;
  169.  
  170. (* Differentialgleichung *)
  171.  
  172. nds=NDSolve[{
  173.  
  174. x1'[t] == vx1[t], y1'[t] == vy1[t], z1'[t] == vz1[t],
  175. x2'[t] == vx2[t], y2'[t] == vy2[t], z2'[t] == vz2[t],
  176. x3'[t] == vx3[t], y3'[t] == vy3[t], z3'[t] == vz3[t],
  177. x4'[t] == vx4[t], y4'[t] == vy4[t], z4'[t] == vz4[t],
  178. x5'[t] == vx5[t], y5'[t] == vy5[t], z5'[t] == vz5[t],
  179. x6'[t] == vx6[t], y6'[t] == vy6[t], z6'[t] == vz6[t],
  180. x7'[t] == vx7[t], y7'[t] == vy7[t], z7'[t] == vz7[t],
  181. x8'[t] == vx8[t], y8'[t] == vy8[t], z8'[t] == vz8[t],
  182. x9'[t] == vx9[t], y9'[t] == vy9[t], z9'[t] == vz9[t],
  183. x0'[t] == vx0[t], y0'[t] == vy0[t], z0'[t] == vz0[t],
  184.  
  185. vx1'[t] ==
  186. (G m2 (x2[t]-x1[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  187. (G m3 (x3[t]-x1[t]))/Sqrt[((x3[t]-x1[t])^2+(y3[t]-y1[t])^2+(z3[t]-z1[t])^2)^3]+
  188. (G m4 (x4[t]-x1[t]))/Sqrt[((x4[t]-x1[t])^2+(y4[t]-y1[t])^2+(z4[t]-z1[t])^2)^3]+
  189. (G m5 (x5[t]-x1[t]))/Sqrt[((x5[t]-x1[t])^2+(y5[t]-y1[t])^2+(z5[t]-z1[t])^2)^3]+
  190. (G m6 (x6[t]-x1[t]))/Sqrt[((x6[t]-x1[t])^2+(y6[t]-y1[t])^2+(z6[t]-z1[t])^2)^3]+
  191. (G m7 (x7[t]-x1[t]))/Sqrt[((x7[t]-x1[t])^2+(y7[t]-y1[t])^2+(z7[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+
  204. (-q1*q0/(4Pi ε0 )/m1 (x0[t]-x1[t]))/Sqrt[((x0[t]-x1[t])^2+(y0[t]-y1[t])^2+(z0[t]-z1[t])^2)^3]]+
  205. Λ*c^2*x1[t]^2/Sqrt[x1[t]^2+y1[t]^2+z1[t]^2],
  206.  
  207. vy1'[t] ==
  208. (G m2 (y2[t]-y1[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  209. (G m3 (y3[t]-y1[t]))/Sqrt[((x3[t]-x1[t])^2+(y3[t]-y1[t])^2+(z3[t]-z1[t])^2)^3]+
  210. (G m4 (y4[t]-y1[t]))/Sqrt[((x4[t]-x1[t])^2+(y4[t]-y1[t])^2+(z4[t]-z1[t])^2)^3]+
  211. (G m5 (y5[t]-y1[t]))/Sqrt[((x5[t]-x1[t])^2+(y5[t]-y1[t])^2+(z5[t]-z1[t])^2)^3]+
  212. (G m6 (y6[t]-y1[t]))/Sqrt[((x6[t]-x1[t])^2+(y6[t]-y1[t])^2+(z6[t]-z1[t])^2)^3]+
  213. (G m7 (y7[t]-y1[t]))/Sqrt[((x7[t]-x1[t])^2+(y7[t]-y1[t])^2+(z7[t]-z1[t])^2)^3]+
  214. (G m8 (y8[t]-y1[t]))/Sqrt[((x8[t]-x1[t])^2+(y8[t]-y1[t])^2+(z8[t]-z1[t])^2)^3]+
  215. (G m9 (y9[t]-y1[t]))/Sqrt[((x9[t]-x1[t])^2+(y9[t]-y1[t])^2+(z9[t]-z1[t])^2)^3]+
  216. (G m0 (y0[t]-y1[t]))/Sqrt[((x0[t]-x1[t])^2+(y0[t]-y1[t])^2+(z0[t]-z1[t])^2)^3]+
  217. If[q1 == 0, 0,
  218. (-q1*q2/(4Pi ε0 )/m1 (y2[t]-y1[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  219. (-q1*q3/(4Pi ε0 )/m1 (y3[t]-y1[t]))/Sqrt[((x3[t]-x1[t])^2+(y3[t]-y1[t])^2+(z3[t]-z1[t])^2)^3]+
  220. (-q1*q4/(4Pi ε0 )/m1 (y4[t]-y1[t]))/Sqrt[((x4[t]-x1[t])^2+(y4[t]-y1[t])^2+(z4[t]-z1[t])^2)^3]+
  221. (-q1*q5/(4Pi ε0 )/m1 (y5[t]-y1[t]))/Sqrt[((x5[t]-x1[t])^2+(y5[t]-y1[t])^2+(z5[t]-z1[t])^2)^3]+
  222. (-q1*q6/(4Pi ε0 )/m1 (y6[t]-y1[t]))/Sqrt[((x6[t]-x1[t])^2+(y6[t]-y1[t])^2+(z6[t]-z1[t])^2)^3]+
  223. (-q1*q7/(4Pi ε0 )/m1 (y7[t]-y1[t]))/Sqrt[((x7[t]-x1[t])^2+(y7[t]-y1[t])^2+(z7[t]-z1[t])^2)^3]+
  224. (-q1*q8/(4Pi ε0 )/m1 (y8[t]-y1[t]))/Sqrt[((x8[t]-x1[t])^2+(y8[t]-y1[t])^2+(z8[t]-z1[t])^2)^3]+
  225. (-q1*q9/(4Pi ε0 )/m1 (y9[t]-y1[t]))/Sqrt[((x9[t]-x1[t])^2+(y9[t]-y1[t])^2+(z9[t]-z1[t])^2)^3]+
  226. (-q1*q0/(4Pi ε0 )/m1 (y0[t]-y1[t]))/Sqrt[((x0[t]-x1[t])^2+(y0[t]-y1[t])^2+(z0[t]-z1[t])^2)^3]]+
  227. Λ*c^2*y1[t]^2/Sqrt[x1[t]^2+y1[t]^2+z1[t]^2],
  228.  
  229. vz1'[t] ==
  230. (G m2 (z2[t]-z1[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  231. (G m3 (z3[t]-z1[t]))/Sqrt[((x3[t]-x1[t])^2+(y3[t]-y1[t])^2+(z3[t]-z1[t])^2)^3]+
  232. (G m4 (z4[t]-z1[t]))/Sqrt[((x4[t]-x1[t])^2+(y4[t]-y1[t])^2+(z4[t]-z1[t])^2)^3]+
  233. (G m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])^2+(z7[t]-z1[t])^2)^3]+
  246. (-q1*q8/(4Pi ε0 )/m1 (z8[t]-z1[t]))/Sqrt[((x8[t]-x1[t])^2+(y8[t]-y1[t])^2+(z8[t]-z1[t])^2)^3]+
  247. (-q1*q9/(4Pi ε0 )/m1 (z9[t]-z1[t]))/Sqrt[((x9[t]-x1[t])^2+(y9[t]-y1[t])^2+(z9[t]-z1[t])^2)^3]+
  248. (-q1*q0/(4Pi ε0 )/m1 (z0[t]-z1[t]))/Sqrt[((x0[t]-x1[t])^2+(y0[t]-y1[t])^2+(z0[t]-z1[t])^2)^3]]+
  249. Λ*c^2*z1[t]^2/Sqrt[x1[t]^2+y1[t]^2+z1[t]^2],
  250.  
  251. vx2'[t] ==
  252. (G m1 (x1[t]-x2[t]))/Sqrt[((x1[t]-x2[t])^2+(y1[t]-y2[t])^2+(z1[t]-z2[t])^2)^3]+
  253. (G m3 (x3[t]-x2[t]))/Sqrt[((x3[t]-x2[t])^2+(y3[t]-y2[t])^2+(z3[t]-z2[t])^2)^3]+
  254. (G m4 (x4[t]-x2[t]))/Sqrt[((x4[t]-x2[t])^2+(y4[t]-y2[t])^2+(z4[t]-z2[t])^2)^3]+
  255. (G m5 (x5[t]-x2[t]))/Sqrt[((x5[t]-x2[t])^2+(y5[t]-y2[t])^2+(z5[t]-z2[t])^2)^3]+
  256. (G m6 (x6[t]-x2[t]))/Sqrt[((x6[t]-x2[t])^2+(y6[t]-y2[t])^2+(z6[t]-z2[t])^2)^3]+
  257. (G m7 (x7[t]-x2[t]))/Sqrt[((x7[t]-x2[t])^2+(y7[t]-y2[t])^2+(z7[t]-z2[t])^2)^3]+
  258. (G m8 (x8[t]-x2[t]))/Sqrt[((x8[t]-x2[t])^2+(y8[t]-y2[t])^2+(z8[t]-z2[t])^2)^3]+
  259. (G m9 (x9[t]-x2[t]))/Sqrt[((x9[t]-x2[t])^2+(y9[t]-y2[t])^2+(z9[t]-z2[t])^2)^3]+
  260. (G m0 (x0[t]-x2[t]))/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((x1[t]-x2[t])^2+(y1[t]-y2[t])^2+(z1[t]-z2[t])^2)^3]+
  275. (G m3 (y3[t]-y2[t]))/Sqrt[((x3[t]-x2[t])^2+(y3[t]-y2[t])^2+(z3[t]-z2[t])^2)^3]+
  276. (G m4 (y4[t]-y2[t]))/Sqrt[((x4[t]-x2[t])^2+(y4[t]-y2[t])^2+(z4[t]-z2[t])^2)^3]+
  277. (G m5 (y5[t]-y2[t]))/Sqrt[((x5[t]-x2[t])^2+(y5[t]-y2[t])^2+(z5[t]-z2[t])^2)^3]+
  278. (G m6 (y6[t]-y2[t]))/Sqrt[((x6[t]-x2[t])^2+(y6[t]-y2[t])^2+(z6[t]-z2[t])^2)^3]+
  279. (G m7 (y7[t]-y2[t]))/Sqrt[((x7[t]-x2[t])^2+(y7[t]-y2[t])^2+(z7[t]-z2[t])^2)^3]+
  280. (G m8 (y8[t]-y2[t]))/Sqrt[((x8[t]-x2[t])^2+(y8[t]-y2[t])^2+(z8[t]-z2[t])^2)^3]+
  281. (G m9 (y9[t]-y2[t]))/Sqrt[((x9[t]-x2[t])^2+(y9[t]-y2[t])^2+(z9[t]-z2[t])^2)^3]+
  282. (G m0 (y0[t]-y2[t]))/Sqrt[((x0[t]-x2[t])^2+(y0[t]-y2[t])^2+(z0[t]-z2[t])^2)^3]+
  283. If[q2 == 0, 0,
  284. (-q2*q1/(4Pi ε0 )/m2 (y1[t]-y2[t]))/Sqrt[((x1[t]-x2[t])^2+(y1[t]-y2[t])^2+(z1[t]-z2[t])^2)^3]+
  285. (-q2*q3/(4Pi ε0 )/m2 (y3[t]-y2[t]))/Sqrt[((x3[t]-x2[t])^2+(y3[t]-y2[t])^2+(z3[t]-z2[t])^2)^3]+
  286. (-q2*q4/(4Pi ε0 )/m2 (y4[t]-y2[t]))/Sqrt[((x4[t]-x2[t])^2+(y4[t]-y2[t])^2+(z4[t]-z2[t])^2)^3]+
  287. (-q2*q5/(4Pi ε0 )/m2 (y5[t]-y2[t]))/Sqrt[((x5[t]-x2[t])^2+(y5[t]-y2[t])^2+(z5[t]-z2[t])^2)^3]+
  288. (-q2*q6/(4Pi ε0 )/m2 (y6[t]-y2[t]))/Sqrt[((x6[t]-x2[t])^2+(y6[t]-y2[t])^2+(z6[t]-z2[t])^2)^3]+
  289. (-q2*q7/(4Pi ε0 )/m2 (y7[t]-y2[t]))/Sqrt[((x7[t]-x2[t])^2+(y7[t]-y2[t])^2+(z7[t]-z2[t])^2)^3]+
  290. (-q2*q8/(4Pi ε0 )/m2 (y8[t]-y2[t]))/Sqrt[((x8[t]-x2[t])^2+(y8[t]-y2[t])^2+(z8[t]-z2[t])^2)^3]+
  291. (-q2*q9/(4Pi ε0 )/m2 (y9[t]-y2[t]))/Sqrt[((x9[t]-x2[t])^2+(y9[t]-y2[t])^2+(z9[t]-z2[t])^2)^3]+
  292. (-q2*q0/(4Pi ε0 )/m2 (y0[t]-y2[t]))/Sqrt[((x0[t]-x2[t])^2+(y0[t]-y2[t])^2+(z0[t]-z2[t])^2)^3]]+
  293. Λ*c^2*y2[t]^2/Sqrt[x2[t]^2+y2[t]^2+z2[t]^2],
  294.  
  295. vz2'[t] ==
  296. (G m1 (z1[t]-z2[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  297. (G m3 (z3[t]-z2[t]))/Sqrt[((x3[t]-x2[t])^2+(y3[t]-y2[t])^2+(z3[t]-z2[t])^2)^3]+
  298. (G m4 (z4[t]-z2[t]))/Sqrt[((x4[t]-x2[t])^2+(y4[t]-y2[t])^2+(z4[t]-z2[t])^2)^3]+
  299. (G m5 (z5[t]-z2[t]))/Sqrt[((x5[t]-x2[t])^2+(y5[t]-y2[t])^2+(z5[t]-z2[t])^2)^3]+
  300. (G m6 (z6[t]-z2[t]))/Sqrt[((x6[t]-x2[t])^2+(y6[t]-y2[t])^2+(z6[t]-z2[t])^2)^3]+
  301. (G m7 (z7[t]-z2[t]))/Sqrt[((x7[t]-x2[t])^2+(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(z9[t]-z2[t])^2)^3]+
  314. (-q2*q0/(4Pi ε0 )/m2 (z0[t]-z2[t]))/Sqrt[((x0[t]-x2[t])^2+(y0[t]-y2[t])^2+(z0[t]-z2[t])^2)^3]]+
  315. Λ*c^2*z2[t]^2/Sqrt[x2[t]^2+y2[t]^2+z2[t]^2],
  316.  
  317. vx3'[t] ==
  318. (G m1 (x1[t]-x3[t]))/Sqrt[((x1[t]-x3[t])^2+(y1[t]-y3[t])^2+(z1[t]-z3[t])^2)^3]+
  319. (G m2 (x2[t]-x3[t]))/Sqrt[((x2[t]-x3[t])^2+(y2[t]-y3[t])^2+(z2[t]-z3[t])^2)^3]+
  320. (G m4 (x4[t]-x3[t]))/Sqrt[((x4[t]-x3[t])^2+(y4[t]-y3[t])^2+(z4[t]-z3[t])^2)^3]+
  321. (G m5 (x5[t]-x3[t]))/Sqrt[((x5[t]-x3[t])^2+(y5[t]-y3[t])^2+(z5[t]-z3[t])^2)^3]+
  322. (G m6 (x6[t]-x3[t]))/Sqrt[((x6[t]-x3[t])^2+(y6[t]-y3[t])^2+(z6[t]-z3[t])^2)^3]+
  323. (G m7 (x7[t]-x3[t]))/Sqrt[((x7[t]-x3[t])^2+(y7[t]-y3[t])^2+(z7[t]-z3[t])^2)^3]+
  324. (G m8 (x8[t]-x3[t]))/Sqrt[((x8[t]-x3[t])^2+(y8[t]-y3[t])^2+(z8[t]-z3[t])^2)^3]+
  325. (G m9 (x9[t]-x3[t]))/Sqrt[((x9[t]-x3[t])^2+(y9[t]-y3[t])^2+(z9[t]-z3[t])^2)^3]+
  326. (G m0 (x0[t]-x3[t]))/Sqrt[((x0[t]-x3[t])^2+(y0[t]-y3[t])^2+(z0[t]-z3[t])^2)^3]+
  327. If[q3 == 0, 0,
  328. (-q3*q1/(4Pi ε0 )/m3 (x1[t]-x3[t]))/Sqrt[((x1[t]-x3[t])^2+(y1[t]-y3[t])^2+(z1[t]-z3[t])^2)^3]+
  329. (-q3*q2/(4Pi ε0 )/m3 (x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3[t])^2)^3]+
  343. (G m5 (y5[t]-y3[t]))/Sqrt[((x5[t]-x3[t])^2+(y5[t]-y3[t])^2+(z5[t]-z3[t])^2)^3]+
  344. (G m6 (y6[t]-y3[t]))/Sqrt[((x6[t]-x3[t])^2+(y6[t]-y3[t])^2+(z6[t]-z3[t])^2)^3]+
  345. (G m7 (y7[t]-y3[t]))/Sqrt[((x7[t]-x3[t])^2+(y7[t]-y3[t])^2+(z7[t]-z3[t])^2)^3]+
  346. (G m8 (y8[t]-y3[t]))/Sqrt[((x8[t]-x3[t])^2+(y8[t]-y3[t])^2+(z8[t]-z3[t])^2)^3]+
  347. (G m9 (y9[t]-y3[t]))/Sqrt[((x9[t]-x3[t])^2+(y9[t]-y3[t])^2+(z9[t]-z3[t])^2)^3]+
  348. (G m0 (y0[t]-y3[t]))/Sqrt[((x0[t]-x3[t])^2+(y0[t]-y3[t])^2+(z0[t]-z3[t])^2)^3]+
  349. If[q3 == 0, 0,
  350. (-q3*q1/(4Pi ε0 )/m3 (y1[t]-y3[t]))/Sqrt[((x1[t]-x3[t])^2+(y1[t]-y3[t])^2+(z1[t]-z3[t])^2)^3]+
  351. (-q3*q2/(4Pi ε0 )/m3 (y2[t]-y3[t]))/Sqrt[((x2[t]-x3[t])^2+(y2[t]-y3[t])^2+(z2[t]-z3[t])^2)^3]+
  352. (-q3*q4/(4Pi ε0 )/m3 (y4[t]-y3[t]))/Sqrt[((x4[t]-x3[t])^2+(y4[t]-y3[t])^2+(z4[t]-z3[t])^2)^3]+
  353. (-q3*q5/(4Pi ε0 )/m3 (y5[t]-y3[t]))/Sqrt[((x5[t]-x3[t])^2+(y5[t]-y3[t])^2+(z5[t]-z3[t])^2)^3]+
  354. (-q3*q6/(4Pi ε0 )/m3 (y6[t]-y3[t]))/Sqrt[((x6[t]-x3[t])^2+(y6[t]-y3[t])^2+(z6[t]-z3[t])^2)^3]+
  355. (-q3*q7/(4Pi ε0 )/m3 (y7[t]-y3[t]))/Sqrt[((x7[t]-x3[t])^2+(y7[t]-y3[t])^2+(z7[t]-z3[t])^2)^3]+
  356. (-q3*q8/(4Pi ε0 )/m3 (y8[t]-y3[t]))/Sqrt[((x8[t]-x3[t])^2+(y8[t]-y3[t])^2+(z8[t]-z3[t])^2)^3]+
  357. (-q3*q9/(4Pi ε0 )/m3 (y9[t]-y3[t]))/Sqrt[((x9[t]-x3[t])^2+(y9[t]-y3[t])^2+(z9[t]-z3[t])^2)^3]+
  358. (-q3*q0/(4Pi ε0 )/m3 (y0[t]-y3[t]))/Sqrt[((x0[t]-x3[t])^2+(y0[t]-y3[t])^2+(z0[t]-z3[t])^2)^3]]+
  359. Λ*c^2*y3[t]^2/Sqrt[x3[t]^2+y3[t]^2+z3[t]^2],
  360.  
  361. vz3'[t] ==
  362. (G m1 (z1[t]-z3[t]))/Sqrt[((x1[t]-x3[t])^2+(y1[t]-y3[t])^2+(z1[t]-z3[t])^2)^3]+
  363. (G m2 (z2[t]-z3[t]))/Sqrt[((x2[t]-x3[t])^2+(y2[t]-y3[t])^2+(z2[t]-z3[t])^2)^3]+
  364. (G m4 (z4[t]-z3[t]))/Sqrt[((x4[t]-x3[t])^2+(y4[t]-y3[t])^2+(z4[t]-z3[t])^2)^3]+
  365. (G m5 (z5[t]-z3[t]))/Sqrt[((x5[t]-x3[t])^2+(y5[t]-y3[t])^2+(z5[t]-z3[t])^2)^3]+
  366. (G m6 (z6[t]-z3[t]))/Sqrt[((x6[t]-x3[t])^2+(y6[t]-y3[t])^2+(z6[t]-z3[t])^2)^3]+
  367. (G m7 (z7[t]-z3[t]))/Sqrt[((x7[t]-x3[t])^2+(y7[t]-y3[t])^2+(z7[t]-z3[t])^2)^3]+
  368. (G m8 (z8[t]-z3[t]))/Sqrt[((x8[t]-x3[t])^2+(y8[t]-y3[t])^2+(z8[t]-z3[t])^2)^3]+
  369. (G m9 (z9[t]-z3[t]))/Sqrt[((x9[t]-x3[t])^2+(y9[t]-y3[t])^2+(z9[t]-z3[t])^2)^3]+
  370. (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1[t]-x4[t]))/Sqrt[((x1[t]-x4[t])^2+(y1[t]-y4[t])^2+(z1[t]-z4[t])^2)^3]+
  385. (G m2 (x2[t]-x4[t]))/Sqrt[((x2[t]-x4[t])^2+(y2[t]-y4[t])^2+(z2[t]-z4[t])^2)^3]+
  386. (G m3 (x3[t]-x4[t]))/Sqrt[((x3[t]-x4[t])^2+(y3[t]-y4[t])^2+(z3[t]-z4[t])^2)^3]+
  387. (G m5 (x5[t]-x4[t]))/Sqrt[((x5[t]-x4[t])^2+(y5[t]-y4[t])^2+(z5[t]-z4[t])^2)^3]+
  388. (G m6 (x6[t]-x4[t]))/Sqrt[((x6[t]-x4[t])^2+(y6[t]-y4[t])^2+(z6[t]-z4[t])^2)^3]+
  389. (G m7 (x7[t]-x4[t]))/Sqrt[((x7[t]-x4[t])^2+(y7[t]-y4[t])^2+(z7[t]-z4[t])^2)^3]+
  390. (G m8 (x8[t]-x4[t]))/Sqrt[((x8[t]-x4[t])^2+(y8[t]-y4[t])^2+(z8[t]-z4[t])^2)^3]+
  391. (G m9 (x9[t]-x4[t]))/Sqrt[((x9[t]-x4[t])^2+(y9[t]-y4[t])^2+(z9[t]-z4[t])^2)^3]+
  392. (G m0 (x0[t]-x4[t]))/Sqrt[((x0[t]-x4[t])^2+(y0[t]-y4[t])^2+(z0[t]-z4[t])^2)^3]+
  393. If[q4 == 0, 0,
  394. (-q4*q1/(4Pi ε0 )/m4 (x1[t]-x4[t]))/Sqrt[((x1[t]-x4[t])^2+(y1[t]-y4[t])^2+(z1[t]-z4[t])^2)^3]+
  395. (-q4*q2/(4Pi ε0 )/m4 (x2[t]-x4[t]))/Sqrt[((x2[t]-x4[t])^2+(y2[t]-y4[t])^2+(z2[t]-z4[t])^2)^3]+
  396. (-q4*q3/(4Pi ε0 )/m4 (x3[t]-x4[t]))/Sqrt[((x3[t]-x4[t])^2+(y3[t]-y4[t])^2+(z3[t]-z4[t])^2)^3]+
  397. (-q4*q5/(4Pi ε0 )/m4 (x5[t]-x4[t]))/Sqrt[((x5[t]-x4[t])^2+(y5[t]-y4[t])^2+(z5[t]-z4[t])^2)^3]+
  398. (-q4*q6/(4Pi ε0 )/m4 (x6[t]-x4[t]))/Sqrt[((x6[t]-x4[t])^2+(y6[t]-y4[t])^2+(z6[t]-z4[t])^2)^3]+
  399. (-q4*q7/(4Pi ε0 )/m4 (x7[t]-x4[t]))/Sqrt[((x7[t]-x4[t])^2+(y7[t]-y4[t])^2+(z7[t]-z4[t])^2)^3]+
  400. (-q4*q8/(4Pi ε0 )/m4 (x8[t]-x4[t]))/Sqrt[((x8[t]-x4[t])^2+(y8[t]-y4[t])^2+(z8[t]-z4[t])^2)^3]+
  401. (-q4*q9/(4Pi ε0 )/m4 (x9[t]-x4[t]))/Sqrt[((x9[t]-x4[t])^2+(y9[t]-y4[t])^2+(z9[t]-z4[t])^2)^3]+
  402. (-q4*q0/(4Pi ε0 )/m4 (x0[t]-x4[t]))/Sqrt[((x0[t]-x4[t])^2+(y0[t]-y4[t])^2+(z0[t]-z4[t])^2)^3]]+
  403. Λ*c^2*x4[t]^2/Sqrt[x4[t]^2+y4[t]^2+z4[t]^2],
  404.  
  405. vy4'[t] ==
  406. (G m1 (y1[t]-y4[t]))/Sqrt[((x1[t]-x4[t])^2+(y1[t]-y4[t])^2+(z1[t]-z4[t])^2)^3]+
  407. (G m2 (y2[t]-y4[t]))/Sqrt[((x2[t]-x4[t])^2+(y2[t]-y4[t])^2+(z2[t]-z4[t])^2)^3]+
  408. (G m3 (y3[t]-y4[t]))/Sqrt[((x3[t]-x4[t])^2+(y3[t]-y4[t])^2+(z3[t]-z4[t])^2)^3]+
  409. (G m5 (y5[t]-y4[t]))/Sqrt[((x5[t]-x4[t])^2+(y5[t]-y4[t])^2+(z5[t]-z4[t])^2)^3]+
  410. (G m6 (y6[t]-y4[t]))/Sqrt[((x6[t]-x4[t])^2+(y6[t]-y4[t])^2+(z6[t]-z4[t])^2)^3]+
  411. (G m7 (y7[t]-y4[t]))/Sqr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^2+(y9[t]-y4[t])^2+(z9[t]-z4[t])^2)^3]+
  424. (-q4*q0/(4Pi ε0 )/m4 (y0[t]-y4[t]))/Sqrt[((x0[t]-x4[t])^2+(y0[t]-y4[t])^2+(z0[t]-z4[t])^2)^3]]+
  425. Λ*c^2*y4[t]^2/Sqrt[x4[t]^2+y4[t]^2+z4[t]^2],
  426.  
  427. vz4'[t] ==
  428. (G m1 (z1[t]-z4[t]))/Sqrt[((x1[t]-x4[t])^2+(y1[t]-y4[t])^2+(z1[t]-z4[t])^2)^3]+
  429. (G m2 (z2[t]-z4[t]))/Sqrt[((x2[t]-x4[t])^2+(y2[t]-y4[t])^2+(z2[t]-z4[t])^2)^3]+
  430. (G m3 (z3[t]-z4[t]))/Sqrt[((x3[t]-x4[t])^2+(y3[t]-y4[t])^2+(z3[t]-z4[t])^2)^3]+
  431. (G m5 (z5[t]-z4[t]))/Sqrt[((x5[t]-x4[t])^2+(y5[t]-y4[t])^2+(z5[t]-z4[t])^2)^3]+
  432. (G m6 (z6[t]-z4[t]))/Sqrt[((x6[t]-x4[t])^2+(y6[t]-y4[t])^2+(z6[t]-z4[t])^2)^3]+
  433. (G m7 (z7[t]-z4[t]))/Sqrt[((x7[t]-x4[t])^2+(y7[t]-y4[t])^2+(z7[t]-z4[t])^2)^3]+
  434. (G m8 (z8[t]-z4[t]))/Sqrt[((x8[t]-x4[t])^2+(y8[t]-y4[t])^2+(z8[t]-z4[t])^2)^3]+
  435. (G m9 (z9[t]-z4[t]))/Sqrt[((x9[t]-x4[t])^2+(y9[t]-y4[t])^2+(z9[t]-z4[t])^2)^3]+
  436. (G m0 (z0[t]-z4[t]))/Sqrt[((x0[t]-x4[t])^2+(y0[t]-y4[t])^2+(z0[t]-z4[t])^2)^3]+
  437. If[q4 == 0, 0,
  438. (-q4*q1/(4Pi ε0 )/m4 (z1[t]-z4[t]))/Sqrt[((x1[t]-x4[t])^2+(y1[t]-y4[t])^2+(z1[t]-z4[t])^2)^3]+
  439. (-q4*q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]-y5[t])^2+(z3[t]-z5[t])^2)^3]+
  453. (G m4 (x4[t]-x5[t]))/Sqrt[((x4[t]-x5[t])^2+(y4[t]-y5[t])^2+(z4[t]-z5[t])^2)^3]+
  454. (G m6 (x6[t]-x5[t]))/Sqrt[((x6[t]-x5[t])^2+(y6[t]-y5[t])^2+(z6[t]-z5[t])^2)^3]+
  455. (G m7 (x7[t]-x5[t]))/Sqrt[((x7[t]-x5[t])^2+(y7[t]-y5[t])^2+(z7[t]-z5[t])^2)^3]+
  456. (G m8 (x8[t]-x5[t]))/Sqrt[((x8[t]-x5[t])^2+(y8[t]-y5[t])^2+(z8[t]-z5[t])^2)^3]+
  457. (G m9 (x9[t]-x5[t]))/Sqrt[((x9[t]-x5[t])^2+(y9[t]-y5[t])^2+(z9[t]-z5[t])^2)^3]+
  458. (G m0 (x0[t]-x5[t]))/Sqrt[((x0[t]-x5[t])^2+(y0[t]-y5[t])^2+(z0[t]-z5[t])^2)^3]+
  459. If[q5 == 0, 0,
  460. (-q5*q1/(4Pi ε0 )/m5 (x1[t]-x5[t]))/Sqrt[((x1[t]-x5[t])^2+(y1[t]-y5[t])^2+(z1[t]-z5[t])^2)^3]+
  461. (-q5*q2/(4Pi ε0 )/m5 (x2[t]-x5[t]))/Sqrt[((x2[t]-x5[t])^2+(y2[t]-y5[t])^2+(z2[t]-z5[t])^2)^3]+
  462. (-q5*q3/(4Pi ε0 )/m5 (x3[t]-x5[t]))/Sqrt[((x3[t]-x5[t])^2+(y3[t]-y5[t])^2+(z3[t]-z5[t])^2)^3]+
  463. (-q5*q4/(4Pi ε0 )/m5 (x4[t]-x5[t]))/Sqrt[((x4[t]-x5[t])^2+(y4[t]-y5[t])^2+(z4[t]-z5[t])^2)^3]+
  464. (-q5*q6/(4Pi ε0 )/m5 (x6[t]-x5[t]))/Sqrt[((x6[t]-x5[t])^2+(y6[t]-y5[t])^2+(z6[t]-z5[t])^2)^3]+
  465. (-q5*q7/(4Pi ε0 )/m5 (x7[t]-x5[t]))/Sqrt[((x7[t]-x5[t])^2+(y7[t]-y5[t])^2+(z7[t]-z5[t])^2)^3]+
  466. (-q5*q8/(4Pi ε0 )/m5 (x8[t]-x5[t]))/Sqrt[((x8[t]-x5[t])^2+(y8[t]-y5[t])^2+(z8[t]-z5[t])^2)^3]+
  467. (-q5*q9/(4Pi ε0 )/m5 (x9[t]-x5[t]))/Sqrt[((x9[t]-x5[t])^2+(y9[t]-y5[t])^2+(z9[t]-z5[t])^2)^3]+
  468. (-q5*q0/(4Pi ε0 )/m5 (x0[t]-x5[t]))/Sqrt[((x0[t]-x5[t])^2+(y0[t]-y5[t])^2+(z0[t]-z5[t])^2)^3]]+
  469. Λ*c^2*x5[t]^2/Sqrt[x5[t]^2+y5[t]^2+z5[t]^2],
  470.  
  471. vy5'[t] ==
  472. (G m1 (y1[t]-y5[t]))/Sqrt[((x1[t]-x5[t])^2+(y1[t]-y5[t])^2+(z1[t]-z5[t])^2)^3]+
  473. (G m2 (y2[t]-y5[t]))/Sqrt[((x2[t]-x5[t])^2+(y2[t]-y5[t])^2+(z2[t]-z5[t])^2)^3]+
  474. (G m3 (y3[t]-y5[t]))/Sqrt[((x3[t]-x5[t])^2+(y3[t]-y5[t])^2+(z3[t]-z5[t])^2)^3]+
  475. (G m4 (y4[t]-y5[t]))/Sqrt[((x4[t]-x5[t])^2+(y4[t]-y5[t])^2+(z4[t]-z5[t])^2)^3]+
  476. (G m6 (y6[t]-y5[t]))/Sqrt[((x6[t]-x5[t])^2+(y6[t]-y5[t])^2+(z6[t]-z5[t])^2)^3]+
  477. (G m7 (y7[t]-y5[t]))/Sqrt[((x7[t]-x5[t])^2+(y7[t]-y5[t])^2+(z7[t]-z5[t])^2)^3]+
  478. (G m8 (y8[t]-y5[t]))/Sqrt[((x8[t]-x5[t])^2+(y8[t]-y5[t])^2+(z8[t]-z5[t])^2)^3]+
  479. (G m9 (y9[t]-y5[t]))/Sqrt[((x9[t]-x5[t])^2+(y9[t]-y5[t])^2+(z9[t]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5'[t] ==
  494. (G m1 (z1[t]-z5[t]))/Sqrt[((x1[t]-x5[t])^2+(y1[t]-y5[t])^2+(z1[t]-z5[t])^2)^3]+
  495. (G m2 (z2[t]-z5[t]))/Sqrt[((x2[t]-x5[t])^2+(y2[t]-y5[t])^2+(z2[t]-z5[t])^2)^3]+
  496. (G m3 (z3[t]-z5[t]))/Sqrt[((x3[t]-x5[t])^2+(y3[t]-y5[t])^2+(z3[t]-z5[t])^2)^3]+
  497. (G m4 (z4[t]-z5[t]))/Sqrt[((x4[t]-x5[t])^2+(y4[t]-y5[t])^2+(z4[t]-z5[t])^2)^3]+
  498. (G m6 (z6[t]-z5[t]))/Sqrt[((x6[t]-x5[t])^2+(y6[t]-y5[t])^2+(z6[t]-z5[t])^2)^3]+
  499. (G m7 (z7[t]-z5[t]))/Sqrt[((x7[t]-x5[t])^2+(y7[t]-y5[t])^2+(z7[t]-z5[t])^2)^3]+
  500. (G m8 (z8[t]-z5[t]))/Sqrt[((x8[t]-x5[t])^2+(y8[t]-y5[t])^2+(z8[t]-z5[t])^2)^3]+
  501. (G m9 (z9[t]-z5[t]))/Sqrt[((x9[t]-x5[t])^2+(y9[t]-y5[t])^2+(z9[t]-z5[t])^2)^3]+
  502. (G m0 (z0[t]-z5[t]))/Sqrt[((x0[t]-x5[t])^2+(y0[t]-y5[t])^2+(z0[t]-z5[t])^2)^3]+
  503. If[q5 == 0, 0,
  504. (-q5*q1/(4Pi ε0 )/m5 (z1[t]-z5[t]))/Sqrt[((x1[t]-x5[t])^2+(y1[t]-y5[t])^2+(z1[t]-z5[t])^2)^3]+
  505. (-q5*q2/(4Pi ε0 )/m5 (z2[t]-z5[t]))/Sqrt[((x2[t]-x5[t])^2+(y2[t]-y5[t])^2+(z2[t]-z5[t])^2)^3]+
  506. (-q5*q3/(4Pi ε0 )/m5 (z3[t]-z5[t]))/Sqrt[((x3[t]-x5[t])^2+(y3[t]-y5[t])^2+(z3[t]-z5[t])^2)^3]+
  507. (-q5*q4/(4Pi ε0 )/m5 (z4[t]-z5[t]))/Sqrt[((x4[t]-x5[t])^2+(y4[t]-y5[t])^2+(z4[t]-z5[t])^2)^3]+
  508. (-q5*q6/(4Pi ε0 )/m5 (z6[t]-z5[t]))/Sqrt[((x6[t]-x5[t])^2+(y6[t]-y5[t])^2+(z6[t]-z5[t])^2)^3]+
  509. (-q5*q7/(4Pi ε0 )/m5 (z7[t]-z5[t]))/Sqrt[((x7[t]-x5[t])^2+(y7[t]-y5[t])^2+(z7[t]-z5[t])^2)^3]+
  510. (-q5*q8/(4Pi ε0 )/m5 (z8[t]-z5[t]))/Sqrt[((x8[t]-x5[t])^2+(y8[t]-y5[t])^2+(z8[t]-z5[t])^2)^3]+
  511. (-q5*q9/(4Pi ε0 )/m5 (z9[t]-z5[t]))/Sqrt[((x9[t]-x5[t])^2+(y9[t]-y5[t])^2+(z9[t]-z5[t])^2)^3]+
  512. (-q5*q0/(4Pi ε0 )/m5 (z0[t]-z5[t]))/Sqrt[((x0[t]-x5[t])^2+(y0[t]-y5[t])^2+(z0[t]-z5[t])^2)^3]]+
  513. Λ*c^2*z5[t]^2/Sqrt[x5[t]^2+y5[t]^2+z5[t]^2],
  514.  
  515. vx6'[t] ==
  516. (G m1 (x1[t]-x6[t]))/Sqrt[((x1[t]-x6[t])^2+(y1[t]-y6[t])^2+(z1[t]-z6[t])^2)^3]+
  517. (G m2 (x2[t]-x6[t]))/Sqrt[((x2[t]-x6[t])^2+(y2[t]-y6[t])^2+(z2[t]-z6[t])^2)^3]+
  518. (G m3 (x3[t]-x6[t]))/Sqrt[((x3[t]-x6[t])^2+(y3[t]-y6[t])^2+(z3[t]-z6[t])^2)^3]+
  519. (G m4 (x4[t]-x6[t]))/Sqrt[((x4[t]-x6[t])^2+(y4[t]-y6[t])^2+(z4[t]-z6[t])^2)^3]+
  520. (G m5 (x5[t]-x6[t]))/Sqrt[((x5[t]-x6[t])^2+(y5[t]-y6[t])^2+(z5[t]-z6[t])^2)^3]+
  521. (G m7 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Sqrt[((x9[t]-x6[t])^2+(y9[t]-y6[t])^2+(z9[t]-z6[t])^2)^3]+
  534. (-q6*q0/(4Pi ε0 )/m6 (x0[t]-x6[t]))/Sqrt[((x0[t]-x6[t])^2+(y0[t]-y6[t])^2+(z0[t]-z6[t])^2)^3]]+
  535. Λ*c^2*x6[t]^2/Sqrt[x6[t]^2+y6[t]^2+z6[t]^2],
  536.  
  537. vy6'[t] ==
  538. (G m1 (y1[t]-y6[t]))/Sqrt[((x1[t]-x6[t])^2+(y1[t]-y6[t])^2+(z1[t]-z6[t])^2)^3]+
  539. (G m2 (y2[t]-y6[t]))/Sqrt[((x2[t]-x6[t])^2+(y2[t]-y6[t])^2+(z2[t]-z6[t])^2)^3]+
  540. (G m3 (y3[t]-y6[t]))/Sqrt[((x3[t]-x6[t])^2+(y3[t]-y6[t])^2+(z3[t]-z6[t])^2)^3]+
  541. (G m4 (y4[t]-y6[t]))/Sqrt[((x4[t]-x6[t])^2+(y4[t]-y6[t])^2+(z4[t]-z6[t])^2)^3]+
  542. (G m5 (y5[t]-y6[t]))/Sqrt[((x5[t]-x6[t])^2+(y5[t]-y6[t])^2+(z5[t]-z6[t])^2)^3]+
  543. (G m7 (y7[t]-y6[t]))/Sqrt[((x7[t]-x6[t])^2+(y7[t]-y6[t])^2+(z7[t]-z6[t])^2)^3]+
  544. (G m8 (y8[t]-y6[t]))/Sqrt[((x8[t]-x6[t])^2+(y8[t]-y6[t])^2+(z8[t]-z6[t])^2)^3]+
  545. (G m9 (y9[t]-y6[t]))/Sqrt[((x9[t]-x6[t])^2+(y9[t]-y6[t])^2+(z9[t]-z6[t])^2)^3]+
  546. (G m0 (y0[t]-y6[t]))/Sqrt[((x0[t]-x6[t])^2+(y0[t]-y6[t])^2+(z0[t]-z6[t])^2)^3]+
  547. If[q6 == 0, 0,
  548. (-q6*q1/(4Pi ε0 )/m6 (y1[t]-y6[t]))/Sqrt[((x1[t]-x6[t])^2+(y1[t]-y6[t])^2+(z1[t]-z6[t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3[t]-x6[t])^2+(y3[t]-y6[t])^2+(z3[t]-z6[t])^2)^3]+
  563. (G m4 (z4[t]-z6[t]))/Sqrt[((x4[t]-x6[t])^2+(y4[t]-y6[t])^2+(z4[t]-z6[t])^2)^3]+
  564. (G m5 (z5[t]-z6[t]))/Sqrt[((x5[t]-x6[t])^2+(y5[t]-y6[t])^2+(z5[t]-z6[t])^2)^3]+
  565. (G m7 (z7[t]-z6[t]))/Sqrt[((x7[t]-x6[t])^2+(y7[t]-y6[t])^2+(z7[t]-z6[t])^2)^3]+
  566. (G m8 (z8[t]-z6[t]))/Sqrt[((x8[t]-x6[t])^2+(y8[t]-y6[t])^2+(z8[t]-z6[t])^2)^3]+
  567. (G m9 (z9[t]-z6[t]))/Sqrt[((x9[t]-x6[t])^2+(y9[t]-y6[t])^2+(z9[t]-z6[t])^2)^3]+
  568. (G m0 (z0[t]-z6[t]))/Sqrt[((x0[t]-x6[t])^2+(y0[t]-y6[t])^2+(z0[t]-z6[t])^2)^3]+
  569. If[q6 == 0, 0,
  570. (-q6*q1/(4Pi ε0 )/m6 (z1[t]-z6[t]))/Sqrt[((x1[t]-x6[t])^2+(y1[t]-y6[t])^2+(z1[t]-z6[t])^2)^3]+
  571. (-q6*q2/(4Pi ε0 )/m6 (z2[t]-z6[t]))/Sqrt[((x2[t]-x6[t])^2+(y2[t]-y6[t])^2+(z2[t]-z6[t])^2)^3]+
  572. (-q6*q3/(4Pi ε0 )/m6 (z3[t]-z6[t]))/Sqrt[((x3[t]-x6[t])^2+(y3[t]-y6[t])^2+(z3[t]-z6[t])^2)^3]+
  573. (-q6*q4/(4Pi ε0 )/m6 (z4[t]-z6[t]))/Sqrt[((x4[t]-x6[t])^2+(y4[t]-y6[t])^2+(z4[t]-z6[t])^2)^3]+
  574. (-q6*q5/(4Pi ε0 )/m6 (z5[t]-z6[t]))/Sqrt[((x5[t]-x6[t])^2+(y5[t]-y6[t])^2+(z5[t]-z6[t])^2)^3]+
  575. (-q6*q7/(4Pi ε0 )/m6 (z7[t]-z6[t]))/Sqrt[((x7[t]-x6[t])^2+(y7[t]-y6[t])^2+(z7[t]-z6[t])^2)^3]+
  576. (-q6*q8/(4Pi ε0 )/m6 (z8[t]-z6[t]))/Sqrt[((x8[t]-x6[t])^2+(y8[t]-y6[t])^2+(z8[t]-z6[t])^2)^3]+
  577. (-q6*q9/(4Pi ε0 )/m6 (z9[t]-z6[t]))/Sqrt[((x9[t]-x6[t])^2+(y9[t]-y6[t])^2+(z9[t]-z6[t])^2)^3]+
  578. (-q6*q0/(4Pi ε0 )/m6 (z0[t]-z6[t]))/Sqrt[((x0[t]-x6[t])^2+(y0[t]-y6[t])^2+(z0[t]-z6[t])^2)^3]]+
  579. Λ*c^2*z6[t]^2/Sqrt[x6[t]^2+y6[t]^2+z6[t]^2],
  580.  
  581. vx7'[t] ==
  582. (G m1 (x1[t]-x7[t]))/Sqrt[((x1[t]-x7[t])^2+(y1[t]-y7[t])^2+(z1[t]-z7[t])^2)^3]+
  583. (G m2 (x2[t]-x7[t]))/Sqrt[((x2[t]-x7[t])^2+(y2[t]-y7[t])^2+(z2[t]-z7[t])^2)^3]+
  584. (G m3 (x3[t]-x7[t]))/Sqrt[((x3[t]-x7[t])^2+(y3[t]-y7[t])^2+(z3[t]-z7[t])^2)^3]+
  585. (G m4 (x4[t]-x7[t]))/Sqrt[((x4[t]-x7[t])^2+(y4[t]-y7[t])^2+(z4[t]-z7[t])^2)^3]+
  586. (G m5 (x5[t]-x7[t]))/Sqrt[((x5[t]-x7[t])^2+(y5[t]-y7[t])^2+(z5[t]-z7[t])^2)^3]+
  587. (G m6 (x6[t]-x7[t]))/Sqrt[((x6[t]-x7[t])^2+(y6[t]-y7[t])^2+(z6[t]-z7[t])^2)^3]+
  588. (G m8 (x8[t]-x7[t]))/Sqrt[((x8[t]-x7[t])^2+(y8[t]-y7[t])^2+(z8[t]-z7[t])^2)^3]+
  589. (G m9 (x9[t]-x7[t]))/Sqrt[((x9[t]-x7[t])^2+(y9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7[t]^2],
  602.  
  603. vy7'[t] ==
  604. (G m1 (y1[t]-y7[t]))/Sqrt[((x1[t]-x7[t])^2+(y1[t]-y7[t])^2+(z1[t]-z7[t])^2)^3]+
  605. (G m2 (y2[t]-y7[t]))/Sqrt[((x2[t]-x7[t])^2+(y2[t]-y7[t])^2+(z2[t]-z7[t])^2)^3]+
  606. (G m3 (y3[t]-y7[t]))/Sqrt[((x3[t]-x7[t])^2+(y3[t]-y7[t])^2+(z3[t]-z7[t])^2)^3]+
  607. (G m4 (y4[t]-y7[t]))/Sqrt[((x4[t]-x7[t])^2+(y4[t]-y7[t])^2+(z4[t]-z7[t])^2)^3]+
  608. (G m5 (y5[t]-y7[t]))/Sqrt[((x5[t]-x7[t])^2+(y5[t]-y7[t])^2+(z5[t]-z7[t])^2)^3]+
  609. (G m6 (y6[t]-y7[t]))/Sqrt[((x6[t]-x7[t])^2+(y6[t]-y7[t])^2+(z6[t]-z7[t])^2)^3]+
  610. (G m8 (y8[t]-y7[t]))/Sqrt[((x8[t]-x7[t])^2+(y8[t]-y7[t])^2+(z8[t]-z7[t])^2)^3]+
  611. (G m9 (y9[t]-y7[t]))/Sqrt[((x9[t]-x7[t])^2+(y9[t]-y7[t])^2+(z9[t]-z7[t])^2)^3]+
  612. (G m0 (y0[t]-y7[t]))/Sqrt[((x0[t]-x7[t])^2+(y0[t]-y7[t])^2+(z0[t]-z7[t])^2)^3]+
  613. If[q7 == 0, 0,
  614. (-q7*q1/(4Pi ε0 )/m7 (y1[t]-y7[t]))/Sqrt[((x1[t]-x7[t])^2+(y1[t]-y7[t])^2+(z1[t]-z7[t])^2)^3]+
  615. (-q7*q2/(4Pi ε0 )/m7 (y2[t]-y7[t]))/Sqrt[((x2[t]-x7[t])^2+(y2[t]-y7[t])^2+(z2[t]-z7[t])^2)^3]+
  616. (-q7*q3/(4Pi ε0 )/m7 (y3[t]-y7[t]))/Sqrt[((x3[t]-x7[t])^2+(y3[t]-y7[t])^2+(z3[t]-z7[t])^2)^3]+
  617. (-q7*q4/(4Pi ε0 )/m7 (y4[t]-y7[t]))/Sqrt[((x4[t]-x7[t])^2+(y4[t]-y7[t])^2+(z4[t]-z7[t])^2)^3]+
  618. (-q7*q5/(4Pi ε0 )/m7 (y5[t]-y7[t]))/Sqrt[((x5[t]-x7[t])^2+(y5[t]-y7[t])^2+(z5[t]-z7[t])^2)^3]+
  619. (-q7*q6/(4Pi ε0 )/m7 (y6[t]-y7[t]))/Sqrt[((x6[t]-x7[t])^2+(y6[t]-y7[t])^2+(z6[t]-z7[t])^2)^3]+
  620. (-q7*q8/(4Pi ε0 )/m7 (y8[t]-y7[t]))/Sqrt[((x8[t]-x7[t])^2+(y8[t]-y7[t])^2+(z8[t]-z7[t])^2)^3]+
  621. (-q7*q9/(4Pi ε0 )/m7 (y9[t]-y7[t]))/Sqrt[((x9[t]-x7[t])^2+(y9[t]-y7[t])^2+(z9[t]-z7[t])^2)^3]+
  622. (-q7*q0/(4Pi ε0 )/m7 (y0[t]-y7[t]))/Sqrt[((x0[t]-x7[t])^2+(y0[t]-y7[t])^2+(z0[t]-z7[t])^2)^3]]+
  623. Λ*c^2*y7[t]^2/Sqrt[x7[t]^2+y7[t]^2+z7[t]^2],
  624.  
  625. vz7'[t] ==
  626. (G m1 (z1[t]-z7[t]))/Sqrt[((x1[t]-x7[t])^2+(y1[t]-y7[t])^2+(z1[t]-z7[t])^2)^3]+
  627. (G m2 (z2[t]-z7[t]))/Sqrt[((x2[t]-x7[t])^2+(y2[t]-y7[t])^2+(z2[t]-z7[t])^2)^3]+
  628. (G m3 (z3[t]-z7[t]))/Sqrt[((x3[t]-x7[t])^2+(y3[t]-y7[t])^2+(z3[t]-z7[t])^2)^3]+
  629. (G m4 (z4[t]-z7[t]))/Sqrt[((x4[t]-x7[t])^2+(y4[t]-y7[t])^2+(z4[t]-z7[t])^2)^3]+
  630. (G m5 (z5[t]-z7[t]))/Sqrt[((x5[t]-x7[t])^2+(y5[t]-y7[t])^2+(z5[t]-z7[t])^2)^3]+
  631. (G m6 (z6[t]-z7[t]))/Sqrt[((x6[t]-x7[t])^2+(y6[t]-y7[t])^2+(z6[t]-z7[t])^2)^3]+
  632. (G m8 (z8[t]-z7[t]))/Sqrt[((x8[t]-x7[t])^2+(y8[t]-y7[t])^2+(z8[t]-z7[t])^2)^3]+
  633. (G m9 (z9[t]-z7[t]))/Sqrt[((x9[t]-x7[t])^2+(y9[t]-y7[t])^2+(z9[t]-z7[t])^2)^3]+
  634. (G m0 (z0[t]-z7[t]))/Sqrt[((x0[t]-x7[t])^2+(y0[t]-y7[t])^2+(z0[t]-z7[t])^2)^3]+
  635. If[q7 == 0, 0,
  636. (-q7*q1/(4Pi ε0 )/m7 (z1[t]-z7[t]))/Sqrt[((x1[t]-x7[t])^2+(y1[t]-y7[t])^2+(z1[t]-z7[t])^2)^3]+
  637. (-q7*q2/(4Pi ε0 )/m7 (z2[t]-z7[t]))/Sqrt[((x2[t]-x7[t])^2+(y2[t]-y7[t])^2+(z2[t]-z7[t])^2)^3]+
  638. (-q7*q3/(4Pi ε0 )/m7 (z3[t]-z7[t]))/Sqrt[((x3[t]-x7[t])^2+(y3[t]-y7[t])^2+(z3[t]-z7[t])^2)^3]+
  639. (-q7*q4/(4Pi ε0 )/m7 (z4[t]-z7[t]))/Sqrt[((x4[t]-x7[t])^2+(y4[t]-y7[t])^2+(z4[t]-z7[t])^2)^3]+
  640. (-q7*q5/(4Pi ε0 )/m7 (z5[t]-z7[t]))/Sqrt[((x5[t]-x7[t])^2+(y5[t]-y7[t])^2+(z5[t]-z7[t])^2)^3]+
  641. (-q7*q6/(4Pi ε0 )/m7 (z6[t]-z7[t]))/Sqrt[((x6[t]-x7[t])^2+(y6[t]-y7[t])^2+(z6[t]-z7[t])^2)^3]+
  642. (-q7*q8/(4Pi ε0 )/m7 (z8[t]-z7[t]))/Sqrt[((x8[t]-x7[t])^2+(y8[t]-y7[t])^2+(z8[t]-z7[t])^2)^3]+
  643. (-q7*q9/(4Pi ε0 )/m7 (z9[t]-z7[t]))/Sqrt[((x9[t]-x7[t])^2+(y9[t]-y7[t])^2+(z9[t]-z7[t])^2)^3]+
  644. (-q7*q0/(4Pi ε0 )/m7 (z0[t]-z7[t]))/Sqrt[((x0[t]-x7[t])^2+(y0[t]-y7[t])^2+(z0[t]-z7[t])^2)^3]]+
  645. Λ*c^2*z7[t]^2/Sqrt[x7[t]^2+y7[t]^2+z7[t]^2],
  646.  
  647. vx8'[t] ==
  648. (G m1 (x1[t]-x8[t]))/Sqrt[((x1[t]-x8[t])^2+(y1[t]-y8[t])^2+(z1[t]-z8[t])^2)^3]+
  649. (G m2 (x2[t]-x8[t]))/Sqrt[((x2[t]-x8[t])^2+(y2[t]-y8[t])^2+(z2[t]-z8[t])^2)^3]+
  650. (G m3 (x3[t]-x8[t]))/Sqrt[((x3[t]-x8[t])^2+(y3[t]-y8[t])^2+(z3[t]-z8[t])^2)^3]+
  651. (G m4 (x4[t]-x8[t]))/Sqrt[((x4[t]-x8[t])^2+(y4[t]-y8[t])^2+(z4[t]-z8[t])^2)^3]+
  652. (G m5 (x5[t]-x8[t]))/Sqrt[((x5[t]-x8[t])^2+(y5[t]-y8[t])^2+(z5[t]-z8[t])^2)^3]+
  653. (G m6 (x6[t]-x8[t]))/Sqrt[((x6[t]-x8[t])^2+(y6[t]-y8[t])^2+(z6[t]-z8[t])^2)^3]+
  654. (G m7 (x7[t]-x8[t]))/Sqrt[((x7[t]-x8[t])^2+(y7[t]-y8[t])^2+(z7[t]-z8[t])^2)^3]+
  655. (G m9 (x9[t]-x8[t]))/Sqrt[((x9[t]-x8[t])^2+(y9[t]-y8[t])^2+(z9[t]-z8[t])^2)^3]+
  656. (G m0 (x0[t]-x8[t]))/Sqrt[((x0[t]-x8[t])^2+(y0[t]-y8[t])^2+(z0[t]-z8[t])^2)^3]+
  657. If[q8 == 0, 0,
  658. (-q8*q1/(4Pi ε0 )/m8 (x1[t]-x8[t]))/Sqrt[((x1[t]-x8[t])^2+(y1[t]-y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t]-y8[t]))/Sqrt[((x3[t]-x8[t])^2+(y3[t]-y8[t])^2+(z3[t]-z8[t])^2)^3]+
  673. (G m4 (y4[t]-y8[t]))/Sqrt[((x4[t]-x8[t])^2+(y4[t]-y8[t])^2+(z4[t]-z8[t])^2)^3]+
  674. (G m5 (y5[t]-y8[t]))/Sqrt[((x5[t]-x8[t])^2+(y5[t]-y8[t])^2+(z5[t]-z8[t])^2)^3]+
  675. (G m6 (y6[t]-y8[t]))/Sqrt[((x6[t]-x8[t])^2+(y6[t]-y8[t])^2+(z6[t]-z8[t])^2)^3]+
  676. (G m7 (y7[t]-y8[t]))/Sqrt[((x7[t]-x8[t])^2+(y7[t]-y8[t])^2+(z7[t]-z8[t])^2)^3]+
  677. (G m9 (y9[t]-y8[t]))/Sqrt[((x9[t]-x8[t])^2+(y9[t]-y8[t])^2+(z9[t]-z8[t])^2)^3]+
  678. (G m0 (y0[t]-y8[t]))/Sqrt[((x0[t]-x8[t])^2+(y0[t]-y8[t])^2+(z0[t]-z8[t])^2)^3]+
  679. If[q8 == 0, 0,
  680. (-q8*q1/(4Pi ε0 )/m8 (y1[t]-y8[t]))/Sqrt[((x1[t]-x8[t])^2+(y1[t]-y8[t])^2+(z1[t]-z8[t])^2)^3]+
  681. (-q8*q2/(4Pi ε0 )/m8 (y2[t]-y8[t]))/Sqrt[((x2[t]-x8[t])^2+(y2[t]-y8[t])^2+(z2[t]-z8[t])^2)^3]+
  682. (-q8*q3/(4Pi ε0 )/m8 (y3[t]-y8[t]))/Sqrt[((x3[t]-x8[t])^2+(y3[t]-y8[t])^2+(z3[t]-z8[t])^2)^3]+
  683. (-q8*q4/(4Pi ε0 )/m8 (y4[t]-y8[t]))/Sqrt[((x4[t]-x8[t])^2+(y4[t]-y8[t])^2+(z4[t]-z8[t])^2)^3]+
  684. (-q8*q5/(4Pi ε0 )/m8 (y5[t]-y8[t]))/Sqrt[((x5[t]-x8[t])^2+(y5[t]-y8[t])^2+(z5[t]-z8[t])^2)^3]+
  685. (-q8*q6/(4Pi ε0 )/m8 (y6[t]-y8[t]))/Sqrt[((x6[t]-x8[t])^2+(y6[t]-y8[t])^2+(z6[t]-z8[t])^2)^3]+
  686. (-q8*q7/(4Pi ε0 )/m8 (y7[t]-y8[t]))/Sqrt[((x7[t]-x8[t])^2+(y7[t]-y8[t])^2+(z7[t]-z8[t])^2)^3]+
  687. (-q8*q9/(4Pi ε0 )/m8 (y9[t]-y8[t]))/Sqrt[((x9[t]-x8[t])^2+(y9[t]-y8[t])^2+(z9[t]-z8[t])^2)^3]+
  688. (-q8*q0/(4Pi ε0 )/m8 (y0[t]-y8[t]))/Sqrt[((x0[t]-x8[t])^2+(y0[t]-y8[t])^2+(z0[t]-z8[t])^2)^3]]+
  689. Λ*c^2*y8[t]^2/Sqrt[x8[t]^2+y8[t]^2+z8[t]^2],
  690.  
  691. vz8'[t] ==
  692. (G m1 (z1[t]-z8[t]))/Sqrt[((x1[t]-x8[t])^2+(y1[t]-y8[t])^2+(z1[t]-z8[t])^2)^3]+
  693. (G m2 (z2[t]-z8[t]))/Sqrt[((x2[t]-x8[t])^2+(y2[t]-y8[t])^2+(z2[t]-z8[t])^2)^3]+
  694. (G m3 (z3[t]-z8[t]))/Sqrt[((x3[t]-x8[t])^2+(y3[t]-y8[t])^2+(z3[t]-z8[t])^2)^3]+
  695. (G m4 (z4[t]-z8[t]))/Sqrt[((x4[t]-x8[t])^2+(y4[t]-y8[t])^2+(z4[t]-z8[t])^2)^3]+
  696. (G m5 (z5[t]-z8[t]))/Sqrt[((x5[t]-x8[t])^2+(y5[t]-y8[t])^2+(z5[t]-z8[t])^2)^3]+
  697. (G m6 (z6[t]-z8[t]))/Sqrt[((x6[t]-x8[t])^2+(y6[t]-y8[t])^2+(z6[t]-z8[t])^2)^3]+
  698. (G m7 (z7[t]-z8[t]))/Sqrt[((x7[t]-x8[t])^2+(y7[t]-y8[t])^2+(z7[t]-z8[t])^2)^3]+
  699. (G m9 (z9[t]-z8[t]))/Sqrt[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[x8[t]^2+y8[t]^2+z8[t]^2],
  712.  
  713. vx9'[t] ==
  714. (G m1 (x1[t]-x9[t]))/Sqrt[((x1[t]-x9[t])^2+(y1[t]-y9[t])^2+(z1[t]-z9[t])^2)^3]+
  715. (G m2 (x2[t]-x9[t]))/Sqrt[((x2[t]-x9[t])^2+(y2[t]-y9[t])^2+(z2[t]-z9[t])^2)^3]+
  716. (G m3 (x3[t]-x9[t]))/Sqrt[((x3[t]-x9[t])^2+(y3[t]-y9[t])^2+(z3[t]-z9[t])^2)^3]+
  717. (G m4 (x4[t]-x9[t]))/Sqrt[((x4[t]-x9[t])^2+(y4[t]-y9[t])^2+(z4[t]-z9[t])^2)^3]+
  718. (G m5 (x5[t]-x9[t]))/Sqrt[((x5[t]-x9[t])^2+(y5[t]-y9[t])^2+(z5[t]-z9[t])^2)^3]+
  719. (G m6 (x6[t]-x9[t]))/Sqrt[((x6[t]-x9[t])^2+(y6[t]-y9[t])^2+(z6[t]-z9[t])^2)^3]+
  720. (G m7 (x7[t]-x9[t]))/Sqrt[((x7[t]-x9[t])^2+(y7[t]-y9[t])^2+(z7[t]-z9[t])^2)^3]+
  721. (G m8 (x8[t]-x9[t]))/Sqrt[((x8[t]-x9[t])^2+(y8[t]-y9[t])^2+(z8[t]-z9[t])^2)^3]+
  722. (G m0 (x0[t]-x9[t]))/Sqrt[((x0[t]-x9[t])^2+(y0[t]-y9[t])^2+(z0[t]-z9[t])^2)^3]+
  723. If[q9 == 0, 0,
  724. (-q9*q1/(4Pi ε0 )/m9 (x1[t]-x9[t]))/Sqrt[((x1[t]-x9[t])^2+(y1[t]-y9[t])^2+(z1[t]-z9[t])^2)^3]+
  725. (-q9*q2/(4Pi ε0 )/m9 (x2[t]-x9[t]))/Sqrt[((x2[t]-x9[t])^2+(y2[t]-y9[t])^2+(z2[t]-z9[t])^2)^3]+
  726. (-q9*q3/(4Pi ε0 )/m9 (x3[t]-x9[t]))/Sqrt[((x3[t]-x9[t])^2+(y3[t]-y9[t])^2+(z3[t]-z9[t])^2)^3]+
  727. (-q9*q4/(4Pi ε0 )/m9 (x4[t]-x9[t]))/Sqrt[((x4[t]-x9[t])^2+(y4[t]-y9[t])^2+(z4[t]-z9[t])^2)^3]+
  728. (-q9*q5/(4Pi ε0 )/m9 (x5[t]-x9[t]))/Sqrt[((x5[t]-x9[t])^2+(y5[t]-y9[t])^2+(z5[t]-z9[t])^2)^3]+
  729. (-q9*q6/(4Pi ε0 )/m9 (x6[t]-x9[t]))/Sqrt[((x6[t]-x9[t])^2+(y6[t]-y9[t])^2+(z6[t]-z9[t])^2)^3]+
  730. (-q9*q7/(4Pi ε0 )/m9 (x7[t]-x9[t]))/Sqrt[((x7[t]-x9[t])^2+(y7[t]-y9[t])^2+(z7[t]-z9[t])^2)^3]+
  731. (-q9*q8/(4Pi ε0 )/m9 (x8[t]-x9[t]))/Sqrt[((x8[t]-x9[t])^2+(y8[t]-y9[t])^2+(z8[t]-z9[t])^2)^3]+
  732. (-q9*q0/(4Pi ε0 )/m9 (x0[t]-x9[t]))/Sqrt[((x0[t]-x9[t])^2+(y0[t]-y9[t])^2+(z0[t]-z9[t])^2)^3]]+
  733. Λ*c^2*x9[t]^2/Sqrt[x9[t]^2+y9[t]^2+z9[t]^2],
  734.  
  735. vy9'[t] ==
  736. (G m1 (y1[t]-y9[t]))/Sqrt[((x1[t]-x9[t])^2+(y1[t]-y9[t])^2+(z1[t]-z9[t])^2)^3]+
  737. (G m2 (y2[t]-y9[t]))/Sqrt[((x2[t]-x9[t])^2+(y2[t]-y9[t])^2+(z2[t]-z9[t])^2)^3]+
  738. (G m3 (y3[t]-y9[t]))/Sqrt[((x3[t]-x9[t])^2+(y3[t]-y9[t])^2+(z3[t]-z9[t])^2)^3]+
  739. (G m4 (y4[t]-y9[t]))/Sqrt[((x4[t]-x9[t])^2+(y4[t]-y9[t])^2+(z4[t]-z9[t])^2)^3]+
  740. (G m5 (y5[t]-y9[t]))/Sqrt[((x5[t]-x9[t])^2+(y5[t]-y9[t])^2+(z5[t]-z9[t])^2)^3]+
  741. (G m6 (y6[t]-y9[t]))/Sqrt[((x6[t]-x9[t])^2+(y6[t]-y9[t])^2+(z6[t]-z9[t])^2)^3]+
  742. (G m7 (y7[t]-y9[t]))/Sqrt[((x7[t]-x9[t])^2+(y7[t]-y9[t])^2+(z7[t]-z9[t])^2)^3]+
  743. (G m8 (y8[t]-y9[t]))/Sqrt[((x8[t]-x9[t])^2+(y8[t]-y9[t])^2+(z8[t]-z9[t])^2)^3]+
  744. (G m0 (y0[t]-y9[t]))/Sqrt[((x0[t]-x9[t])^2+(y0[t]-y9[t])^2+(z0[t]-z9[t])^2)^3]+
  745. If[q9 == 0, 0,
  746. (-q9*q1/(4Pi ε0 )/m9 (y1[t]-y9[t]))/Sqrt[((x1[t]-x9[t])^2+(y1[t]-y9[t])^2+(z1[t]-z9[t])^2)^3]+
  747. (-q9*q2/(4Pi ε0 )/m9 (y2[t]-y9[t]))/Sqrt[((x2[t]-x9[t])^2+(y2[t]-y9[t])^2+(z2[t]-z9[t])^2)^3]+
  748. (-q9*q3/(4Pi ε0 )/m9 (y3[t]-y9[t]))/Sqrt[((x3[t]-x9[t])^2+(y3[t]-y9[t])^2+(z3[t]-z9[t])^2)^3]+
  749. (-q9*q4/(4Pi ε0 )/m9 (y4[t]-y9[t]))/Sqrt[((x4[t]-x9[t])^2+(y4[t]-y9[t])^2+(z4[t]-z9[t])^2)^3]+
  750. (-q9*q5/(4Pi ε0 )/m9 (y5[t]-y9[t]))/Sqrt[((x5[t]-x9[t])^2+(y5[t]-y9[t])^2+(z5[t]-z9[t])^2)^3]+
  751. (-q9*q6/(4Pi ε0 )/m9 (y6[t]-y9[t]))/Sqrt[((x6[t]-x9[t])^2+(y6[t]-y9[t])^2+(z6[t]-z9[t])^2)^3]+
  752. (-q9*q7/(4Pi ε0 )/m9 (y7[t]-y9[t]))/Sqrt[((x7[t]-x9[t])^2+(y7[t]-y9[t])^2+(z7[t]-z9[t])^2)^3]+
  753. (-q9*q8/(4Pi ε0 )/m9 (y8[t]-y9[t]))/Sqrt[((x8[t]-x9[t])^2+(y8[t]-y9[t])^2+(z8[t]-z9[t])^2)^3]+
  754. (-q9*q0/(4Pi ε0 )/m9 (y0[t]-y9[t]))/Sqrt[((x0[t]-x9[t])^2+(y0[t]-y9[t])^2+(z0[t]-z9[t])^2)^3]]+
  755. Λ*c^2*y9[t]^2/Sqrt[x9[t]^2+y9[t]^2+z9[t]^2],
  756.  
  757. vz9'[t] ==
  758. (G m1 (z1[t]-z9[t]))/Sqrt[((x1[t]-x9[t])^2+(y1[t]-y9[t])^2+(z1[t]-z9[t])^2)^3]+
  759. (G m2 (z2[t]-z9[t]))/Sqrt[((x2[t]-x9[t])^2+(y2[t]-y9[t])^2+(z2[t]-z9[t])^2)^3]+
  760. (G m3 (z3[t]-z9[t]))/Sqrt[((x3[t]-x9[t])^2+(y3[t]-y9[t])^2+(z3[t]-z9[t])^2)^3]+
  761. (G m4 (z4[t]-z9[t]))/Sqrt[((x4[t]-x9[t])^2+(y4[t]-y9[t])^2+(z4[t]-z9[t])^2)^3]+
  762. (G m5 (z5[t]-z9[t]))/Sqrt[((x5[t]-x9[t])^2+(y5[t]-y9[t])^2+(z5[t]-z9[t])^2)^3]+
  763. (G m6 (z6[t]-z9[t]))/Sqrt[((x6[t]-x9[t])^2+(y6[t]-y9[t])^2+(z6[t]-z9[t])^2)^3]+
  764. (G m7 (z7[t]-z9[t]))/Sqrt[((x7[t]-x9[t])^2+(y7[t]-y9[t])^2+(z7[t]-z9[t])^2)^3]+
  765. (G m8 (z8[t]-z9[t]))/Sqrt[((x8[t]-x9[t])^2+(y8[t]-y9[t])^2+(z8[t]-z9[t])^2)^3]+
  766. (G m0 (z0[t]-z9[t]))/Sqrt[((x0[t]-x9[t])^2+(y0[t]-y9[t])^2+(z0[t]-z9[t])^2)^3]+
  767. If[q9 == 0, 0,
  768. (-q9*q1/(4Pi ε0 )/m9 (z1[t]-z9[t]))/Sqrt[((x1[t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)^3]+
  782. (G m3 (x3[t]-x0[t]))/Sqrt[((x3[t]-x0[t])^2+(y3[t]-y0[t])^2+(z3[t]-z0[t])^2)^3]+
  783. (G m4 (x4[t]-x0[t]))/Sqrt[((x4[t]-x0[t])^2+(y4[t]-y0[t])^2+(z4[t]-z0[t])^2)^3]+
  784. (G m5 (x5[t]-x0[t]))/Sqrt[((x5[t]-x0[t])^2+(y5[t]-y0[t])^2+(z5[t]-z0[t])^2)^3]+
  785. (G m6 (x6[t]-x0[t]))/Sqrt[((x6[t]-x0[t])^2+(y6[t]-y0[t])^2+(z6[t]-z0[t])^2)^3]+
  786. (G m7 (x7[t]-x0[t]))/Sqrt[((x7[t]-x0[t])^2+(y7[t]-y0[t])^2+(z7[t]-z0[t])^2)^3]+
  787. (G m8 (x8[t]-x0[t]))/Sqrt[((x8[t]-x0[t])^2+(y8[t]-y0[t])^2+(z8[t]-z0[t])^2)^3]+
  788. (G m9 (x9[t]-x0[t]))/Sqrt[((x9[t]-x0[t])^2+(y9[t]-y0[t])^2+(z9[t]-z0[t])^2)^3]+
  789. If[q0 == 0, 0,
  790. (-q0*q1/(4Pi ε0 )/m0 (x1[t]-x0[t]))/Sqrt[((x1[t]-x0[t])^2+(y1[t]-y0[t])^2+(z1[t]-z0[t])^2)^3]+
  791. (-q0*q2/(4Pi ε0 )/m0 (x2[t]-x0[t]))/Sqrt[((x2[t]-x0[t])^2+(y2[t]-y0[t])^2+(z2[t]-z0[t])^2)^3]+
  792. (-q0*q3/(4Pi ε0 )/m0 (x3[t]-x0[t]))/Sqrt[((x3[t]-x0[t])^2+(y3[t]-y0[t])^2+(z3[t]-z0[t])^2)^3]+
  793. (-q0*q4/(4Pi ε0 )/m0 (x4[t]-x0[t]))/Sqrt[((x4[t]-x0[t])^2+(y4[t]-y0[t])^2+(z4[t]-z0[t])^2)^3]+
  794. (-q0*q5/(4Pi ε0 )/m0 (x5[t]-x0[t]))/Sqrt[((x5[t]-x0[t])^2+(y5[t]-y0[t])^2+(z5[t]-z0[t])^2)^3]+
  795. (-q0*q6/(4Pi ε0 )/m0 (x6[t]-x0[t]))/Sqrt[((x6[t]-x0[t])^2+(y6[t]-y0[t])^2+(z6[t]-z0[t])^2)^3]+
  796. (-q0*q7/(4Pi ε0 )/m0 (x7[t]-x0[t]))/Sqrt[((x7[t]-x0[t])^2+(y7[t]-y0[t])^2+(z7[t]-z0[t])^2)^3]+
  797. (-q0*q8/(4Pi ε0 )/m0 (x8[t]-x0[t]))/Sqrt[((x8[t]-x0[t])^2+(y8[t]-y0[t])^2+(z8[t]-z0[t])^2)^3]+
  798. (-q0*q9/(4Pi ε0 )/m0 (x9[t]-x0[t]))/Sqrt[((x9[t]-x0[t])^2+(y9[t]-y0[t])^2+(z9[t]-z0[t])^2)^3]]+
  799. Λ*c^2*x0[t]^2/Sqrt[x0[t]^2+y0[t]^2+z0[t]^2],
  800.  
  801. vy0'[t] ==
  802. (G m1 (y1[t]-y0[t]))/Sqrt[((x1[t]-x0[t])^2+(y1[t]-y0[t])^2+(z1[t]-z0[t])^2)^3]+
  803. (G m2 (y2[t]-y0[t]))/Sqrt[((x2[t]-x0[t])^2+(y2[t]-y0[t])^2+(z2[t]-z0[t])^2)^3]+
  804. (G m3 (y3[t]-y0[t]))/Sqrt[((x3[t]-x0[t])^2+(y3[t]-y0[t])^2+(z3[t]-z0[t])^2)^3]+
  805. (G m4 (y4[t]-y0[t]))/Sqrt[((x4[t]-x0[t])^2+(y4[t]-y0[t])^2+(z4[t]-z0[t])^2)^3]+
  806. (G m5 (y5[t]-y0[t]))/Sqrt[((x5[t]-x0[t])^2+(y5[t]-y0[t])^2+(z5[t]-z0[t])^2)^3]+
  807. (G m6 (y6[t]-y0[t]))/Sqrt[((x6[t]-x0[t])^2+(y6[t]-y0[t])^2+(z6[t]-z0[t])^2)^3]+
  808. (G m7 (y7[t]-y0[t]))/Sqrt[((x7[t]-x0[t])^2+(y7[t]-y0[t])^2+(z7[t]-z0[t])^2)^3]+
  809. (G m8 (y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*c^2*y0[t]^2/Sqrt[x0[t]^2+y0[t]^2+z0[t]^2],
  822.  
  823. vz0'[t] ==
  824. (G m1 (z1[t]-z0[t]))/Sqrt[((x1[t]-x0[t])^2+(y1[t]-y0[t])^2+(z1[t]-z0[t])^2)^3]+
  825. (G m2 (z2[t]-z0[t]))/Sqrt[((x2[t]-x0[t])^2+(y2[t]-y0[t])^2+(z2[t]-z0[t])^2)^3]+
  826. (G m3 (z3[t]-z0[t]))/Sqrt[((x3[t]-x0[t])^2+(y3[t]-y0[t])^2+(z3[t]-z0[t])^2)^3]+
  827. (G m4 (z4[t]-z0[t]))/Sqrt[((x4[t]-x0[t])^2+(y4[t]-y0[t])^2+(z4[t]-z0[t])^2)^3]+
  828. (G m5 (z5[t]-z0[t]))/Sqrt[((x5[t]-x0[t])^2+(y5[t]-y0[t])^2+(z5[t]-z0[t])^2)^3]+
  829. (G m6 (z6[t]-z0[t]))/Sqrt[((x6[t]-x0[t])^2+(y6[t]-y0[t])^2+(z6[t]-z0[t])^2)^3]+
  830. (G m7 (z7[t]-z0[t]))/Sqrt[((x7[t]-x0[t])^2+(y7[t]-y0[t])^2+(z7[t]-z0[t])^2)^3]+
  831. (G m8 (z8[t]-z0[t]))/Sqrt[((x8[t]-x0[t])^2+(y8[t]-y0[t])^2+(z8[t]-z0[t])^2)^3]+
  832. (G m9 (z9[t]-z0[t]))/Sqrt[((x9[t]-x0[t])^2+(y9[t]-y0[t])^2+(z9[t]-z0[t])^2)^3]+
  833. If[q0 == 0, 0,
  834. (-q0*q1/(4Pi ε0 )/m0 (z1[t]-z0[t]))/Sqrt[((x1[t]-x0[t])^2+(y1[t]-y0[t])^2+(z1[t]-z0[t])^2)^3]+
  835. (-q0*q2/(4Pi ε0 )/m0 (z2[t]-z0[t]))/Sqrt[((x2[t]-x0[t])^2+(y2[t]-y0[t])^2+(z2[t]-z0[t])^2)^3]+
  836. (-q0*q3/(4Pi ε0 )/m0 (z3[t]-z0[t]))/Sqrt[((x3[t]-x0[t])^2+(y3[t]-y0[t])^2+(z3[t]-z0[t])^2)^3]+
  837. (-q0*q4/(4Pi ε0 )/m0 (z4[t]-z0[t]))/Sqrt[((x4[t]-x0[t])^2+(y4[t]-y0[t])^2+(z4[t]-z0[t])^2)^3]+
  838. (-q0*q5/(4Pi ε0 )/m0 (z5[t]-z0[t]))/Sqrt[((x5[t]-x0[t])^2+(y5[t]-y0[t])^2+(z5[t]-z0[t])^2)^3]+
  839. (-q0*q6/(4Pi ε0 )/m0 (z6[t]-z0[t]))/Sqrt[((x6[t]-x0[t])^2+(y6[t]-y0[t])^2+(z6[t]-z0[t])^2)^3]+
  840. (-q0*q7/(4Pi ε0 )/m0 (z7[t]-z0[t]))/Sqrt[((x7[t]-x0[t])^2+(y7[t]-y0[t])^2+(z7[t]-z0[t])^2)^3]+
  841. (-q0*q8/(4Pi ε0 )/m0 (z8[t]-z0[t]))/Sqrt[((x8[t]-x0[t])^2+(y8[t]-y0[t])^2+(z8[t]-z0[t])^2)^3]+
  842. (-q0*q9/(4Pi ε0 )/m0 (z9[t]-z0[t]))/Sqrt[((x9[t]-x0[t])^2+(y9[t]-y0[t])^2+(z9[t]-z0[t])^2)^3]]+
  843. Λ*c^2*z0[t]^2/Sqrt[x0[t]^2+y0[t]^2+z0[t]^2],
  844.  
  845. x1[0] == x1x, y1[0] == y1y, z1[0] == z1z,
  846. x2[0] == x2x, y2[0] == y2y, z2[0] == z2z,
  847. x3[0] == x3x, y3[0] == y3y, z3[0] == z3z,
  848. x4[0] == x4x, y4[0] == y4y, z4[0] == z4z,
  849. x5[0] == x5x, y5[0] == y5y, z5[0] == z5z,
  850. x6[0] == x6x, y6[0] == y6y, z6[0] == z6z,
  851. x7[0] == x7x, y7[0] == y7y, z7[0] == z7z,
  852. x8[0] == x8x, y8[0] == y8y, z8[0] == z8z,
  853. x9[0] == x9x, y9[0] == y9y, z9[0] == z9z,
  854. x0[0] == x0x, y0[0] == y0y, z0[0] == z0z,
  855.  
  856. vx1[0] == v1x, vy1[0] == v1y, vz1[0] == v1z,
  857. vx2[0] == v2x, vy2[0] == v2y, vz2[0] == v2z,
  858. vx3[0] == v3x, vy3[0] == v3y, vz3[0] == v3z,
  859. vx4[0] == v4x, vy4[0] == v4y, vz4[0] == v4z,
  860. vx5[0] == v5x, vy5[0] == v5y, vz5[0] == v5z,
  861. vx6[0] == v6x, vy6[0] == v6y, vz6[0] == v6z,
  862. vx7[0] == v7x, vy7[0] == v7y, vz7[0] == v7z,
  863. vx8[0] == v8x, vy8[0] == v8y, vz8[0] == v8z,
  864. vx9[0] == v9x, vy9[0] == v9y, vz9[0] == v9z,
  865. vx0[0] == v0x, vy0[0] == v0y, vz0[0] == v0z},
  866.  
  867. {x1, x2, x3, x4, x5, x6, x7, x8, x9, x0, y1, y2, y3, y4, y5, y6, y7, y8, y9, y0, z1, z2, z3, z4, z5, z6, z7, z8, z9, z0,
  868. vx1, vx2, vx3, vx4, vx5, vx6, vx7, vx8, vx9, vx0, vy1, vy2, vy3, vy4, vy5, vy6, vy7, vy8, vy9, vy0, vz1, vz2, vz3, vz4, vz5, vz6, vz7, vz8, vz9, vz0},
  869.  
  870. {t, 0, Tmax},
  871.  
  872. WorkingPrecision-> wp,
  873. MaxSteps-> Infinity,
  874. Method-> mta,
  875. InterpolationOrder-> All,
  876. StepMonitor :> (laststep=plunge; plunge=t;
  877. stepsize=plunge-laststep;), Method->{"EventLocator",
  878. "Event" :> (If[stepsize<1*^-4, 0, 1])}];
  879.  
  880. (* Position, Geschwindigkeit *)
  881.  
  882. f2p[t_]={{x1[t], y1[t], z1[t]}, {x2[t], y2[t], z2[t]}, {x3[t], y3[t], z3[t]}, {x4[t], y4[t], z4[t]}, {x5[t], y5[t], z5[t]}, {x6[t], y6[t], z6[t]}, {x7[t], y7[t], z7[t]}, {x8[t], y8[t], z8[t]}, {x9[t], y9[t], z9[t]}, {x0[t], y0[t], z0[t]}}/.nds[[1]];
  883. f2v[t_]={{vx1[t], vy1[t], vz1[t]}, {vx2[t], vy2[t], vz2[t]}, {vx3[t], vy3[t], vz3[t]}, {vx4[t], vy4[t], vz4[t]}, {vx5[t], vy5[t], vz5[t]}, {vx6[t], vy6[t], vz6[t]}, {vx7[t], vy7[t], vz7[t]}, {vx8[t], vy8[t], vz8[t]}, {vx9[t], vy9[t], vz9[t]}, {vx0[t], vy0[t], vz0[t]}}/.nds[[1]];
  884. swp[t_]=(m1 Evaluate[f2p[t][[1]]]+m2 Evaluate[f2p[t][[2]]]+m3 Evaluate[f2p[t][[3]]]+m4 Evaluate[f2p[t][[4]]]+m5 Evaluate[f2p[t][[5]]]+m6 Evaluate[f2p[t][[6]]]+m7 Evaluate[f2p[t][[7]]]+m8 Evaluate[f2p[t][[8]]]+m9 Evaluate[f2p[t][[9]]]+m0 Evaluate[f2p[t][[10]]])/(m1+m2+m3+m4+m5+m6+m7+m8+m9+m0);
  885.  
  886. (* Formatierung *)
  887.  
  888. s[text_]=Style[text, FontSize->11];
  889. sw[text_]=Style[text, White, FontSize->11];
  890. colorfunc[n_]=Function[{x, y, z, t},
  891. Hue[0, n, 0.5,
  892. If[Tmax<0, Max[Min[(+T+(-t+trail))/trail, 1], 0],
  893. Max[Min[(-T+(t+trail))/trail, 1], 0]]]];
  894.  
  895. (* Animation *)
  896.  
  897. Do[Print[Rasterize[
  898. Grid[{{
  899. Show[
  900.  
  901. If[T == 0, {},
  902.  
  903. ParametricPlot3D[Evaluate[f2p[t]],
  904. {t, Max[0, T-trail], T},
  905.  
  906. PlotStyle->{
  907. {Thickness[thk], Hue[10/10]},
  908. {Thickness[thk], Hue[05/10]},
  909. {Thickness[thk], Hue[09/10]},
  910. {Thickness[thk], Hue[04/10]},
  911. {Thickness[thk], Hue[08/10]},
  912. {Thickness[thk], Hue[03/10]},
  913. {Thickness[thk], Hue[07/10]},
  914. {Thickness[thk], Hue[02/10]},
  915. {Thickness[thk], Hue[06/10]},
  916. {Thickness[thk], Hue[01/10]}},
  917.  
  918. PlotRange->plotrange, AspectRatio->1, MaxRecursion->15, Axes->True, ImageSize->imagesize]],
  919.  
  920. Graphics3D[
  921. If[startpos==1, {
  922. {PointSize[2point/3], Hue[10/10], Point[{x1x, y1y, z1z}]},
  923. {PointSize[2point/3], Hue[05/10], Point[{x2x, y2y, z2z}]},
  924. {PointSize[2point/3], Hue[09/10], Point[{x3x, y3y, z3z}]},
  925. {PointSize[2point/3], Hue[04/10], Point[{x4x, y4y, z4z}]},
  926. {PointSize[2point/3], Hue[08/10], Point[{x5x, y5y, z5z}]},
  927. {PointSize[2point/3], Hue[03/10], Point[{x6x, y6y, z6z}]},
  928. {PointSize[2point/3], Hue[07/10], Point[{x7x, y7y, z7z}]},
  929. {PointSize[2point/3], Hue[02/10], Point[{x8x, y8y, z8z}]},
  930. {PointSize[2point/3], Hue[06/10], Point[{x9x, y9y, z9z}]},
  931. {PointSize[2point/3], Hue[01/10], Point[{x0x, y0y, z0z}]}
  932. }, {}],
  933.  
  934. PlotRange->plotrange, AspectRatio->1, Axes->True, ImageSize->imagesize],
  935.  
  936. Graphics3D[{PointSize[point], Hue[10/10], Point[Evaluate[f2p[T]][[1]]]}],
  937. Graphics3D[{PointSize[point], Hue[05/10], Point[Evaluate[f2p[T]][[2]]]}],
  938. Graphics3D[{PointSize[point], Hue[09/10], Point[Evaluate[f2p[T]][[3]]]}],
  939. Graphics3D[{PointSize[point], Hue[04/10], Point[Evaluate[f2p[T]][[4]]]}],
  940. Graphics3D[{PointSize[point], Hue[08/10], Point[Evaluate[f2p[T]][[5]]]}],
  941. Graphics3D[{PointSize[point], Hue[03/10], Point[Evaluate[f2p[T]][[6]]]}],
  942. Graphics3D[{PointSize[point], Hue[07/10], Point[Evaluate[f2p[T]][[7]]]}],
  943. Graphics3D[{PointSize[point], Hue[02/10], Point[Evaluate[f2p[T]][[8]]]}],
  944. Graphics3D[{PointSize[point], Hue[06/10], Point[Evaluate[f2p[T]][[9]]]}],
  945. Graphics3D[{PointSize[point], Hue[01/10], Point[Evaluate[f2p[T]][[10]]]}],
  946.  
  947. ViewPoint->viewpoint]},
  948.  
  949. { },
  950. {s["t"->N[T]], sw[1/2]},
  951. { },
  952. {s["Sun {}" -> {N@m1}], sw[1/2]},
  953. {s["p1{x,y,z}"-> Evaluate[f2p[T][[1]]]], sw[1/2]},
  954. {s["v1{x,y,z}"-> Evaluate[f2v[T][[1]]]], sw[1/2]},
  955. {s["v1{total}"->{Evaluate[Chop@Norm[f2v[T][[1]]]]}], sw[1/2]},
  956. { },
  957. {s["Mercury{}" -> {N@m2} ], sw[1/2]},
  958. {s["p2{x,y,z}"-> Evaluate[f2p[T][[2]]]], sw[1/2]},
  959. {s["v2{x,y,z}"-> Evaluate[f2v[T][[2]]]], sw[1/2]},
  960. {s["v2{total}"->{Evaluate[Chop@Norm[f2v[T][[2]]]]}], sw[1/2]},
  961. { },
  962. {s["Venus {}" -> {N@m3}], sw[1/2]},
  963. {s["p3{x,y,z}"-> Evaluate[f2p[T][[3]]]], sw[1/2]},
  964. {s["v3{x,y,z}"-> Evaluate[f2v[T][[3]]]], sw[1/2]},
  965. {s["v3{total}"->{Evaluate[Chop@Norm[f2v[T][[3]]]]}], sw[1/2]},
  966. { },
  967. {s["Earth {}" -> {N@m4} ], sw[1/2]},
  968. {s["p4{x,y,z}"-> Evaluate[f2p[T][[4]]]], sw[1/2]},
  969. {s["v4{x,y,z}"-> Evaluate[f2v[T][[4]]]], sw[1/2]},
  970. {s["v4{total}"->{Evaluate[Chop@Norm[f2v[T][[4]]]]}], sw[1/2]},
  971. { },
  972. {s["Mars {}" -> {N@m5} ], sw[1/2]},
  973. {s["p5{x,y,z}"-> Evaluate[f2p[T][[5]]]], sw[1/2]},
  974. {s["v5{x,y,z}"-> Evaluate[f2v[T][[5]]]], sw[1/2]},
  975. {s["v5{total}"->{Evaluate[Chop@Norm[f2v[T][[5]]]]}], sw[1/2]},
  976. { },
  977. {s["Jupiter{}" -> {N@m6 }], sw[1/2]},
  978. {s["p6{x,y,z}"-> Evaluate[f2p[T][[6]]]], sw[1/2]},
  979. {s["v6{x,y,z}"-> Evaluate[f2v[T][[6]]]], sw[1/2]},
  980. {s["v6{total}"->{Evaluate[Chop@Norm[f2v[T][[6]]]]}], sw[1/2]},
  981. { },
  982. {s["Saturn {}" -> {N@m7 }], sw[1/2]},
  983. {s["p7{x,y,z}"-> Evaluate[f2p[T][[7]]]], sw[1/2]},
  984. {s["v7{x,y,z}"-> Evaluate[f2v[T][[7]]]], sw[1/2]},
  985. {s["v7{total}"->{Evaluate[Chop@Norm[f2v[T][[7]]]]}], sw[1/2]},
  986. { },
  987. {s["Uranus {}" -> {N@m8}], sw[1/2]},
  988. {s["p8{x,y,z}"-> Evaluate[f2p[T][[8]]]], sw[1/2]},
  989. {s["v8{x,y,z}"-> Evaluate[f2v[T][[8]]]], sw[1/2]},
  990. {s["v8{total}"->{Evaluate[Chop@Norm[f2v[T][[8]]]]}], sw[1/2]},
  991. { },
  992. {s["Neptune{}" -> {N@m9}], sw[1/2]},
  993. {s["p9{x,y,z}"-> Evaluate[f2p[T][[9]]]], sw[1/2]},
  994. {s["v9{x,y,z}"-> Evaluate[f2v[T][[9]]]], sw[1/2]},
  995. {s["v9{total}"->{Evaluate[Chop@Norm[f2v[T][[9]]]]}], sw[1/2]},
  996. { },
  997. {s["Pluto {}" -> {N@m0} ], sw[1/2]},
  998. {s["p0{x,y,z}"-> Evaluate[f2p[T][[10]]]], sw[1/2]},
  999. {s["v0{x,y,z}"-> Evaluate[f2v[T][[10]]]], sw[1/2]},
  1000. {s["v0{total}"->{Evaluate[Chop@Norm[f2v[T][[10]]]]}], sw[1/2]},
  1001. { },
  1002. {s["System {}" -> {N@(m1+m2+m3+m4+m5+m6+m7+m8+m9+m0)}], sw[1/2]},
  1003. {s["ps{x,y,z}"-> swp[T]], sw[1/2]},
  1004. {s["vs{x,y,z}"-> swp'[T]], sw[1/2]},
  1005. {s["vs{total}"->{Chop@Norm[swp'[T]]}], sw[1/2]}
  1006. }, Alignment->Left]]],
  1007.  
  1008. (* Zeitregler *)
  1009.  
  1010. {T, 0, tMax, tMax/5}]
  1011.  
  1012. (* Export als HTML Dokument *)
  1013. (* Export["dateiname.html", EvaluationNotebook[], "GraphicsOutput" -> "PNG"] *)
  1014. (* Export direkt als Bildsequenz *)
  1015. (* ParallelDo[Export["dateiname" <> ToString[T] <> ".png", Rasterize[...] ], {T, 0, 10, 5}] *)
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
RAW Paste Data