diff --git a/work/week11/particle-trajectory-optimization/starting_point/compute_gravity.hh b/work/week11/particle-trajectory-optimization/starting_point/compute_gravity.hh index a75f2e1..cbdd001 100644 --- a/work/week11/particle-trajectory-optimization/starting_point/compute_gravity.hh +++ b/work/week11/particle-trajectory-optimization/starting_point/compute_gravity.hh @@ -1,27 +1,28 @@ #ifndef __COMPUTE_GRAVITY__HH__ #define __COMPUTE_GRAVITY__HH__ /* -------------------------------------------------------------------------- */ #include "compute_interaction.hh" //! Compute Newton gravity interaction class ComputeGravity : public ComputeInteraction { // Virtual implementation public: //! Newton gravity implementation void computePairInteraction(Particle& par1, Particle& par2) override; // Accessors public: //! set the gravitational constant void setG(Real G); // Members private: //! newton constant - Real G = 1.4881e-34; -}; + + Real G = 8.8872e-10; + /* -------------------------------------------------------------------------- */ #endif //__COMPUTE_GRAVITY__HH__ diff --git a/work/week11/particle-trajectory-optimization/step--0000.csv b/work/week11/particle-trajectory-optimization/step--0000.csv new file mode 100644 index 0000000..ff0d8e6 --- /dev/null +++ b/work/week11/particle-trajectory-optimization/step--0000.csv @@ -0,0 +1,10 @@ +#X Y Z VX VY VZ FX FY FZ mass name +0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 333060.401628 sun +-0.189870191687 -0.558688766307 -0.0282098980491 0.0466061119752 -0.0169958959322 -0.00566593768503 0.0 0.0 0.0 0.0552929494875 mercury +16.9714518993 -24.8089038611 0.119716118505 0.00257205257072 0.00179126750251 -9.61511264412e-05 0.0 0.0 0.0 17.1511623039 neptune +4.20279027308 2.98574348839 -0.106330648529 -0.0043814893185 0.00639310069043 7.16196974762e-05 0.0 0.0 0.0 317.906831497 jupiter +13.5722133861 -13.5968199989 -0.226678332174 0.00280195484701 0.00264110724035 -2.6528604208e-05 0.0 0.0 0.0 14.5357063322 uranus +1.4341161723 -0.0563475576814 -0.0364281159082 0.00106980614619 0.0149353365963 0.000286587232631 0.0 0.0 0.0 0.107473137995 mars +0.151328208644 -0.971618143147 -0.0 0.0172821497979 0.00271241361076 0.0 0.0 0.0 0.0 1.0 earth +-0.717631580513 -0.00364737734108 0.0413723125562 -1.5802845881e-05 -0.0203358469254 -0.000276996812978 0.0 0.0 0.0 0.815044397449 venus +6.407518055 7.01488406549 -0.377432769674 -0.0043424142317 0.00367836321207 0.000108694950481 0.0 0.0 0.0 95.1845135537 saturn