SlideShare a Scribd company logo
1 of 5
Download to read offline
N-Body Simulation of Celestial Mechanics
Aaron Gruberg
July 31, 2014
Abstract
Newton’s second law was used to create a computational model for the motion of celestial bodies.
The equations of motion for a collection of point masses were used to calculate the gravitational force
on one point mass due to an additional point mass. The equations of motion for a collection of point
masses are:
mj
d2
r(t)j
dt2
=
i=j
Gmimj
| ri − rj |3 (ri − rj). (1)
Mass was measured in units of solar masses. Distance was measured in AUs. Time was measured in
1/2π years. Velocity was measured in 29.87km/s. This unit system allowed for G = 1. Initial conditions
for the position and velocity of all masses in Solar System Barycentric coordinates were taken from the
NASA Ephemeris. A system containing only the Sun and Mars was considered first. The equations of
motion were integrated using a 2nd-order leap frog method. The total energy of the Sun Mars system
was conserved. The energy oscillated sinusoidally. The angular momentum was conserved. Using initial
conditions from the NASA Ephemeris which were taken on November 1, 1988, the orbits of the remaining
planets were added to the system. An alternate set of initial conditions was used to model a binary star
system. Initial conditions from the Institute of Physics Belgrade were used to model a three-body system.
1
Figure 1: This is a plot of the change in energy over time of a system containing the Sun and Mars for varied
time step sizes. Every tenth data point was plotted to better show how the precision of the energy calculation
improved for varied time step sizes. Energy was conserved for all time step sizes. This means that for one
period, the initial energy was equal to the final energy. The total energy is constant. As the kinetic energy
increased, the potential energy decreased. The Sun Mars system was created by using a second order leap
frog method to integrate the differential equations of motion. Leap frog is a symplectic method and helps
to conserve the energy of a dynamic system.
Figure 2: This is a plot of the change in angular momentum over time of a Sun Mars system for varied time
step sizes. When time steps of seventy hours and forty-eight hours were used, angular momentum appeared
to be conserved. When a time step of twenty hours was used, the amplitude of angular momentum increased.
This increase in the positive and negative peaks of angular momentum was most visible when a time step
of three hours was used. It should be noted that the total angular momentum for the system was on the
order of 10−7
. The calculations for angular momentum were small because the units used were very large.
The change in amplitude angular momentum seems large in the plot using a three hour time step. This plot
shows that angular momentum was not perfectly conserved however, changes that occured were nearly zero.
2
Figure 3: This is the complete Solar System in the xy-plane integrated using intitial conditions from Novem-
ber 1, 1988 to May 2, 2014 for total time of 25.5 years. My final position for Mars was x = -0.2899, y =
-1.4387, z = -0.0229. In the Ephemeris, the final position of Mars was x = -1.3898, y = -0.7903, z = 0.017.
My final position for the Sun was x = 0.0020, y = -0.0015, -0.000069. In the Ephemeris, the final position
of the Sun was x = 0.00168, y = -0.00192, z = -0.000109. My final position for the Earth was x = 0.5619, y
= -0.8407, z = -0.000064. In the Ephemeris, the final position of the Earth was x = -0.7550, y = -0.667, z
= -0.00008356. This model of the Solar System made the assumption that the Sun and planets were alone
in a vaccuum. The Ephemeris accounts for other bodies that are nearby. This contributed to the error in
calculated position when it was compared to the Ephemeris.
Figure 4: This is the Solar System in the yz-plane.
3
Figure 5: This is a planet orbiting a binary star.
Figure 6: This is a planet with high initial velocity that is flung out of orbit.
4
Figure 7: This is a three body system with a figure eight trajectory. Initial conditions were taken from the
Institute of Physics Belgrade.
5

More Related Content

What's hot

1.3.1 newton cannons and satellites
1.3.1   newton cannons and satellites1.3.1   newton cannons and satellites
1.3.1 newton cannons and satellitesJohnPaul Kennedy
 
Öncel Akademi: İstatistiksel Sismoloji
Öncel Akademi: İstatistiksel SismolojiÖncel Akademi: İstatistiksel Sismoloji
Öncel Akademi: İstatistiksel SismolojiAli Osman Öncel
 
Öncel Akademi: İstatistiksel Sismoloji
Öncel Akademi: İstatistiksel SismolojiÖncel Akademi: İstatistiksel Sismoloji
Öncel Akademi: İstatistiksel SismolojiAli Osman Öncel
 
Testing dark energy as a function of scale
Testing dark energy as a function of scaleTesting dark energy as a function of scale
Testing dark energy as a function of scaleCosmoAIMS Bassett
 
Superflares in G, K and M Type Dwarfs from Kepler Observations
Superflares in G, K and M Type Dwarfs from Kepler ObservationsSuperflares in G, K and M Type Dwarfs from Kepler Observations
Superflares in G, K and M Type Dwarfs from Kepler ObservationsSimon Candelaresi
 
Senior_Project_Robert_Kittleson
Senior_Project_Robert_KittlesonSenior_Project_Robert_Kittleson
Senior_Project_Robert_KittlesonRobert Kittleson
 
units and measurement xi physics
units and measurement xi physics  units and measurement xi physics
units and measurement xi physics ASWIN SPARKZ XD
 
How fast do the planets move?
How fast do the planets move?How fast do the planets move?
How fast do the planets move?DanielPearcy
 
Computational Physics Final Report (MATLAB)
Computational Physics Final Report (MATLAB)Computational Physics Final Report (MATLAB)
Computational Physics Final Report (MATLAB)Ricardo Fritzke
 
Universal Gravitation
Universal GravitationUniversal Gravitation
Universal GravitationZBTHS
 
Binary pulsars as tools to study gravity
Binary pulsars as tools to study gravityBinary pulsars as tools to study gravity
Binary pulsars as tools to study gravityCosmoAIMS Bassett
 
Gravity origin & evolution
Gravity origin & evolutionGravity origin & evolution
Gravity origin & evolutiondsvthampi
 
Fisica pau-cyl-2007-2019-gravitacion ordenado (1)
Fisica pau-cyl-2007-2019-gravitacion ordenado (1)Fisica pau-cyl-2007-2019-gravitacion ordenado (1)
Fisica pau-cyl-2007-2019-gravitacion ordenado (1)Inmaculada García Pérez
 

What's hot (19)

1.3.1 newton cannons and satellites
1.3.1   newton cannons and satellites1.3.1   newton cannons and satellites
1.3.1 newton cannons and satellites
 
Öncel Akademi: İstatistiksel Sismoloji
Öncel Akademi: İstatistiksel SismolojiÖncel Akademi: İstatistiksel Sismoloji
Öncel Akademi: İstatistiksel Sismoloji
 
Öncel Akademi: İstatistiksel Sismoloji
Öncel Akademi: İstatistiksel SismolojiÖncel Akademi: İstatistiksel Sismoloji
Öncel Akademi: İstatistiksel Sismoloji
 
1.4.1 gravity again
1.4.1   gravity again1.4.1   gravity again
1.4.1 gravity again
 
Testing dark energy as a function of scale
Testing dark energy as a function of scaleTesting dark energy as a function of scale
Testing dark energy as a function of scale
 
Superflares in G, K and M Type Dwarfs from Kepler Observations
Superflares in G, K and M Type Dwarfs from Kepler ObservationsSuperflares in G, K and M Type Dwarfs from Kepler Observations
Superflares in G, K and M Type Dwarfs from Kepler Observations
 
Senior_Project_Robert_Kittleson
Senior_Project_Robert_KittlesonSenior_Project_Robert_Kittleson
Senior_Project_Robert_Kittleson
 
Decerprit_percolation_GAP
Decerprit_percolation_GAPDecerprit_percolation_GAP
Decerprit_percolation_GAP
 
Wandera_et_al_HESS_2017
Wandera_et_al_HESS_2017Wandera_et_al_HESS_2017
Wandera_et_al_HESS_2017
 
units and measurement xi physics
units and measurement xi physics  units and measurement xi physics
units and measurement xi physics
 
Ge3111891192
Ge3111891192Ge3111891192
Ge3111891192
 
How fast do the planets move?
How fast do the planets move?How fast do the planets move?
How fast do the planets move?
 
Computational Physics Final Report (MATLAB)
Computational Physics Final Report (MATLAB)Computational Physics Final Report (MATLAB)
Computational Physics Final Report (MATLAB)
 
Universal Gravitation
Universal GravitationUniversal Gravitation
Universal Gravitation
 
Binary pulsars as tools to study gravity
Binary pulsars as tools to study gravityBinary pulsars as tools to study gravity
Binary pulsars as tools to study gravity
 
Sheet # 1
Sheet # 1Sheet # 1
Sheet # 1
 
Gravity origin & evolution
Gravity origin & evolutionGravity origin & evolution
Gravity origin & evolution
 
Chapter3
Chapter3Chapter3
Chapter3
 
Fisica pau-cyl-2007-2019-gravitacion ordenado (1)
Fisica pau-cyl-2007-2019-gravitacion ordenado (1)Fisica pau-cyl-2007-2019-gravitacion ordenado (1)
Fisica pau-cyl-2007-2019-gravitacion ordenado (1)
 

Viewers also liked

virus informaticos
virus informaticosvirus informaticos
virus informaticosU.P.T.C
 
Ext nº 11_ii_ord_valores_unitarios
Ext nº 11_ii_ord_valores_unitariosExt nº 11_ii_ord_valores_unitarios
Ext nº 11_ii_ord_valores_unitariosMaría Linares
 
A receita amarga e triste
A receita amarga e triste A receita amarga e triste
A receita amarga e triste TheJokerGames
 
Germanage R2M 2015 Presentation
Germanage R2M 2015 PresentationGermanage R2M 2015 Presentation
Germanage R2M 2015 PresentationTanade Sirinumas
 
Parque Amate (Sevilla): itinerario botánico por la parcela I-1 (Perimetral NW)
Parque Amate (Sevilla): itinerario botánico por la parcela I-1 (Perimetral NW)Parque Amate (Sevilla): itinerario botánico por la parcela I-1 (Perimetral NW)
Parque Amate (Sevilla): itinerario botánico por la parcela I-1 (Perimetral NW)Carlos Romero-Zarco
 
Informe sobre la Industria Automotriz Nº 17 con datos al mes de Abril de 2015...
Informe sobre la Industria Automotriz Nº 17 con datos al mes de Abril de 2015...Informe sobre la Industria Automotriz Nº 17 con datos al mes de Abril de 2015...
Informe sobre la Industria Automotriz Nº 17 con datos al mes de Abril de 2015...Eduardo Nelson German
 
Co-Teaching Approaches
Co-Teaching ApproachesCo-Teaching Approaches
Co-Teaching ApproachesSpiro Bolos
 
Progetto Affianca Ecdl Ai Curricula 2009
Progetto Affianca Ecdl Ai Curricula 2009Progetto Affianca Ecdl Ai Curricula 2009
Progetto Affianca Ecdl Ai Curricula 2009Matekanc
 
G4 w2 陳虹誼.陳禹安.鍾承庭.何元杰
G4 w2 陳虹誼.陳禹安.鍾承庭.何元杰G4 w2 陳虹誼.陳禹安.鍾承庭.何元杰
G4 w2 陳虹誼.陳禹安.鍾承庭.何元杰visualization, ID, NCKU
 
Bahan ajar kls x bab ii
Bahan ajar kls x bab iiBahan ajar kls x bab ii
Bahan ajar kls x bab iiZul Karnain
 
Four seasons english 8
Four seasons english 8Four seasons english 8
Four seasons english 8buket77
 
1011第六組張雅筑 曾怡嘉 黃昱仁
1011第六組張雅筑 曾怡嘉 黃昱仁1011第六組張雅筑 曾怡嘉 黃昱仁
1011第六組張雅筑 曾怡嘉 黃昱仁visualization, ID, NCKU
 

Viewers also liked (20)

virus informaticos
virus informaticosvirus informaticos
virus informaticos
 
Volunteering
VolunteeringVolunteering
Volunteering
 
Ext nº 11_ii_ord_valores_unitarios
Ext nº 11_ii_ord_valores_unitariosExt nº 11_ii_ord_valores_unitarios
Ext nº 11_ii_ord_valores_unitarios
 
A receita amarga e triste
A receita amarga e triste A receita amarga e triste
A receita amarga e triste
 
Germanage R2M 2015 Presentation
Germanage R2M 2015 PresentationGermanage R2M 2015 Presentation
Germanage R2M 2015 Presentation
 
Parque Amate (Sevilla): itinerario botánico por la parcela I-1 (Perimetral NW)
Parque Amate (Sevilla): itinerario botánico por la parcela I-1 (Perimetral NW)Parque Amate (Sevilla): itinerario botánico por la parcela I-1 (Perimetral NW)
Parque Amate (Sevilla): itinerario botánico por la parcela I-1 (Perimetral NW)
 
Germanage R2M 2015 Report
Germanage R2M 2015 ReportGermanage R2M 2015 Report
Germanage R2M 2015 Report
 
Informe sobre la Industria Automotriz Nº 17 con datos al mes de Abril de 2015...
Informe sobre la Industria Automotriz Nº 17 con datos al mes de Abril de 2015...Informe sobre la Industria Automotriz Nº 17 con datos al mes de Abril de 2015...
Informe sobre la Industria Automotriz Nº 17 con datos al mes de Abril de 2015...
 
Birth
BirthBirth
Birth
 
Co-Teaching Approaches
Co-Teaching ApproachesCo-Teaching Approaches
Co-Teaching Approaches
 
Grupo pepsico
Grupo pepsicoGrupo pepsico
Grupo pepsico
 
Progetto Affianca Ecdl Ai Curricula 2009
Progetto Affianca Ecdl Ai Curricula 2009Progetto Affianca Ecdl Ai Curricula 2009
Progetto Affianca Ecdl Ai Curricula 2009
 
G4 w2 陳虹誼.陳禹安.鍾承庭.何元杰
G4 w2 陳虹誼.陳禹安.鍾承庭.何元杰G4 w2 陳虹誼.陳禹安.鍾承庭.何元杰
G4 w2 陳虹誼.陳禹安.鍾承庭.何元杰
 
Bahan ajar kls x bab ii
Bahan ajar kls x bab iiBahan ajar kls x bab ii
Bahan ajar kls x bab ii
 
Four seasons english 8
Four seasons english 8Four seasons english 8
Four seasons english 8
 
EOD - přednáška na FPF SLU
EOD - přednáška na FPF SLU EOD - přednáška na FPF SLU
EOD - přednáška na FPF SLU
 
26.10.2012, NEWSWIRE, Issue 245
26.10.2012, NEWSWIRE, Issue 24526.10.2012, NEWSWIRE, Issue 245
26.10.2012, NEWSWIRE, Issue 245
 
Web 2.0
Web 2.0Web 2.0
Web 2.0
 
22.02.2013, NEWSWIRE, Issues 261-262
22.02.2013, NEWSWIRE, Issues 261-26222.02.2013, NEWSWIRE, Issues 261-262
22.02.2013, NEWSWIRE, Issues 261-262
 
1011第六組張雅筑 曾怡嘉 黃昱仁
1011第六組張雅筑 曾怡嘉 黃昱仁1011第六組張雅筑 曾怡嘉 黃昱仁
1011第六組張雅筑 曾怡嘉 黃昱仁
 

Similar to hw2

The Equation Based on the Rotational and Orbital Motion of the Planets
The Equation Based on the Rotational and Orbital Motion of the PlanetsThe Equation Based on the Rotational and Orbital Motion of the Planets
The Equation Based on the Rotational and Orbital Motion of the PlanetsIJERA Editor
 
SuzukisSymplecticIntegrator
SuzukisSymplecticIntegratorSuzukisSymplecticIntegrator
SuzukisSymplecticIntegratorColin Delia
 
Modelling and Simulations
Modelling and SimulationsModelling and Simulations
Modelling and SimulationsMinjie Lu
 
Rich Mathematical Problems in Astronomy
Rich Mathematical Problems in AstronomyRich Mathematical Problems in Astronomy
Rich Mathematical Problems in Astronomysmiller5
 
dynamics chapt 1 .pptx
dynamics chapt 1 .pptxdynamics chapt 1 .pptx
dynamics chapt 1 .pptxJibrilJundi
 
Study Unit Ill Engineerin M Part4 an1cs By And.docx
Study Unit Ill Engineerin M Part4 an1cs By And.docxStudy Unit Ill Engineerin M Part4 an1cs By And.docx
Study Unit Ill Engineerin M Part4 an1cs By And.docxhanneloremccaffery
 
Newton's Law of Universal Gravitation
Newton's Law of Universal Gravitation Newton's Law of Universal Gravitation
Newton's Law of Universal Gravitation akshat saxena
 
Modern phyiscs lecture 1
Modern phyiscs lecture 1Modern phyiscs lecture 1
Modern phyiscs lecture 1ahmed salman
 
Newtons second law of motion (Engineering Mechanics).pptx
Newtons second law of motion (Engineering Mechanics).pptxNewtons second law of motion (Engineering Mechanics).pptx
Newtons second law of motion (Engineering Mechanics).pptxnabinsarkar345
 
Planetary Motion- The simple Physics Behind the heavenly bodies
Planetary Motion- The simple Physics Behind the heavenly bodiesPlanetary Motion- The simple Physics Behind the heavenly bodies
Planetary Motion- The simple Physics Behind the heavenly bodiesNISER-sac
 
Materials RequiredComputer and internet accessDrawing mate.docx
Materials RequiredComputer and internet accessDrawing mate.docxMaterials RequiredComputer and internet accessDrawing mate.docx
Materials RequiredComputer and internet accessDrawing mate.docxjessiehampson
 
Exp 4.auxiliary mass.pptx
Exp 4.auxiliary mass.pptxExp 4.auxiliary mass.pptx
Exp 4.auxiliary mass.pptx201810526
 
REPORT SUMMARYVibration refers to a mechanical.docx
REPORT SUMMARYVibration refers to a mechanical.docxREPORT SUMMARYVibration refers to a mechanical.docx
REPORT SUMMARYVibration refers to a mechanical.docxdebishakespeare
 
6.1 - Gravitational Force and fields
6.1 - Gravitational Force and fields6.1 - Gravitational Force and fields
6.1 - Gravitational Force and fieldssimonandisa
 
Simulation of Deployment and Operation of an Earth Observing Satellite
Simulation of Deployment and Operation of an Earth Observing SatelliteSimulation of Deployment and Operation of an Earth Observing Satellite
Simulation of Deployment and Operation of an Earth Observing SatelliteAlber Douglawi
 
Earth Moon moves with 2 Rates Of Time (Part VI)
Earth Moon moves with 2 Rates Of Time (Part VI)Earth Moon moves with 2 Rates Of Time (Part VI)
Earth Moon moves with 2 Rates Of Time (Part VI)Gerges francis
 
Moon Orbital Motion Analysis
Moon Orbital Motion AnalysisMoon Orbital Motion Analysis
Moon Orbital Motion AnalysisGerges francis
 
2013 final ISRO internship Report
2013 final ISRO internship Report2013 final ISRO internship Report
2013 final ISRO internship ReportShripad Thakur
 

Similar to hw2 (20)

The Equation Based on the Rotational and Orbital Motion of the Planets
The Equation Based on the Rotational and Orbital Motion of the PlanetsThe Equation Based on the Rotational and Orbital Motion of the Planets
The Equation Based on the Rotational and Orbital Motion of the Planets
 
SuzukisSymplecticIntegrator
SuzukisSymplecticIntegratorSuzukisSymplecticIntegrator
SuzukisSymplecticIntegrator
 
Modelling and Simulations
Modelling and SimulationsModelling and Simulations
Modelling and Simulations
 
Astonomical thinking notes
Astonomical thinking notesAstonomical thinking notes
Astonomical thinking notes
 
Rich Mathematical Problems in Astronomy
Rich Mathematical Problems in AstronomyRich Mathematical Problems in Astronomy
Rich Mathematical Problems in Astronomy
 
dynamics chapt 1 .pptx
dynamics chapt 1 .pptxdynamics chapt 1 .pptx
dynamics chapt 1 .pptx
 
Study Unit Ill Engineerin M Part4 an1cs By And.docx
Study Unit Ill Engineerin M Part4 an1cs By And.docxStudy Unit Ill Engineerin M Part4 an1cs By And.docx
Study Unit Ill Engineerin M Part4 an1cs By And.docx
 
Newton's Law of Universal Gravitation
Newton's Law of Universal Gravitation Newton's Law of Universal Gravitation
Newton's Law of Universal Gravitation
 
Modern phyiscs lecture 1
Modern phyiscs lecture 1Modern phyiscs lecture 1
Modern phyiscs lecture 1
 
Newtons second law of motion (Engineering Mechanics).pptx
Newtons second law of motion (Engineering Mechanics).pptxNewtons second law of motion (Engineering Mechanics).pptx
Newtons second law of motion (Engineering Mechanics).pptx
 
Planetary Motion- The simple Physics Behind the heavenly bodies
Planetary Motion- The simple Physics Behind the heavenly bodiesPlanetary Motion- The simple Physics Behind the heavenly bodies
Planetary Motion- The simple Physics Behind the heavenly bodies
 
Materials RequiredComputer and internet accessDrawing mate.docx
Materials RequiredComputer and internet accessDrawing mate.docxMaterials RequiredComputer and internet accessDrawing mate.docx
Materials RequiredComputer and internet accessDrawing mate.docx
 
kuramoto
kuramotokuramoto
kuramoto
 
Exp 4.auxiliary mass.pptx
Exp 4.auxiliary mass.pptxExp 4.auxiliary mass.pptx
Exp 4.auxiliary mass.pptx
 
REPORT SUMMARYVibration refers to a mechanical.docx
REPORT SUMMARYVibration refers to a mechanical.docxREPORT SUMMARYVibration refers to a mechanical.docx
REPORT SUMMARYVibration refers to a mechanical.docx
 
6.1 - Gravitational Force and fields
6.1 - Gravitational Force and fields6.1 - Gravitational Force and fields
6.1 - Gravitational Force and fields
 
Simulation of Deployment and Operation of an Earth Observing Satellite
Simulation of Deployment and Operation of an Earth Observing SatelliteSimulation of Deployment and Operation of an Earth Observing Satellite
Simulation of Deployment and Operation of an Earth Observing Satellite
 
Earth Moon moves with 2 Rates Of Time (Part VI)
Earth Moon moves with 2 Rates Of Time (Part VI)Earth Moon moves with 2 Rates Of Time (Part VI)
Earth Moon moves with 2 Rates Of Time (Part VI)
 
Moon Orbital Motion Analysis
Moon Orbital Motion AnalysisMoon Orbital Motion Analysis
Moon Orbital Motion Analysis
 
2013 final ISRO internship Report
2013 final ISRO internship Report2013 final ISRO internship Report
2013 final ISRO internship Report
 

hw2

  • 1. N-Body Simulation of Celestial Mechanics Aaron Gruberg July 31, 2014 Abstract Newton’s second law was used to create a computational model for the motion of celestial bodies. The equations of motion for a collection of point masses were used to calculate the gravitational force on one point mass due to an additional point mass. The equations of motion for a collection of point masses are: mj d2 r(t)j dt2 = i=j Gmimj | ri − rj |3 (ri − rj). (1) Mass was measured in units of solar masses. Distance was measured in AUs. Time was measured in 1/2π years. Velocity was measured in 29.87km/s. This unit system allowed for G = 1. Initial conditions for the position and velocity of all masses in Solar System Barycentric coordinates were taken from the NASA Ephemeris. A system containing only the Sun and Mars was considered first. The equations of motion were integrated using a 2nd-order leap frog method. The total energy of the Sun Mars system was conserved. The energy oscillated sinusoidally. The angular momentum was conserved. Using initial conditions from the NASA Ephemeris which were taken on November 1, 1988, the orbits of the remaining planets were added to the system. An alternate set of initial conditions was used to model a binary star system. Initial conditions from the Institute of Physics Belgrade were used to model a three-body system. 1
  • 2. Figure 1: This is a plot of the change in energy over time of a system containing the Sun and Mars for varied time step sizes. Every tenth data point was plotted to better show how the precision of the energy calculation improved for varied time step sizes. Energy was conserved for all time step sizes. This means that for one period, the initial energy was equal to the final energy. The total energy is constant. As the kinetic energy increased, the potential energy decreased. The Sun Mars system was created by using a second order leap frog method to integrate the differential equations of motion. Leap frog is a symplectic method and helps to conserve the energy of a dynamic system. Figure 2: This is a plot of the change in angular momentum over time of a Sun Mars system for varied time step sizes. When time steps of seventy hours and forty-eight hours were used, angular momentum appeared to be conserved. When a time step of twenty hours was used, the amplitude of angular momentum increased. This increase in the positive and negative peaks of angular momentum was most visible when a time step of three hours was used. It should be noted that the total angular momentum for the system was on the order of 10−7 . The calculations for angular momentum were small because the units used were very large. The change in amplitude angular momentum seems large in the plot using a three hour time step. This plot shows that angular momentum was not perfectly conserved however, changes that occured were nearly zero. 2
  • 3. Figure 3: This is the complete Solar System in the xy-plane integrated using intitial conditions from Novem- ber 1, 1988 to May 2, 2014 for total time of 25.5 years. My final position for Mars was x = -0.2899, y = -1.4387, z = -0.0229. In the Ephemeris, the final position of Mars was x = -1.3898, y = -0.7903, z = 0.017. My final position for the Sun was x = 0.0020, y = -0.0015, -0.000069. In the Ephemeris, the final position of the Sun was x = 0.00168, y = -0.00192, z = -0.000109. My final position for the Earth was x = 0.5619, y = -0.8407, z = -0.000064. In the Ephemeris, the final position of the Earth was x = -0.7550, y = -0.667, z = -0.00008356. This model of the Solar System made the assumption that the Sun and planets were alone in a vaccuum. The Ephemeris accounts for other bodies that are nearby. This contributed to the error in calculated position when it was compared to the Ephemeris. Figure 4: This is the Solar System in the yz-plane. 3
  • 4. Figure 5: This is a planet orbiting a binary star. Figure 6: This is a planet with high initial velocity that is flung out of orbit. 4
  • 5. Figure 7: This is a three body system with a figure eight trajectory. Initial conditions were taken from the Institute of Physics Belgrade. 5