Physics simulations for high school students
Students at a particle-physics academy for high schoolers in Germany simulate Mercury’s general relativity–influenced motion around the Sun.
Christopher Körber, Jan-Lukas Wynen, and Inka Hammer
Numerical simulations are a vital part of a physicist’s professional repertoire. Yet physics education is rarely coupled with numerical methods programming until a student’s undergraduate years. Looking back at our educational experience, we wish that we had been taught those skills in high school.
Four years ago one of our collaborators, Joseline Heuer, conducted a graduate school project in which she analyzed the motion of planets in our solar system through a simulation that included post-Newtonian effects. That project served as the inspiration for the development of a dual course covering general relativity and numerical simulations and catering to high schoolers with a strong interest in physics.
In 2015 we adapted Heuer’s project to create a daylong course for the Schülerakademie Teilchenphysik
In developing the project, we decided to use Python
Figure 1. Only Newtonian gravity is used to simulate the orbit of Mercury (red) about the Sun (yellow); the planet’s elliptical closed curve is fixed in space.
The students begin with a basic code template
The fixed perihelion is a consequence of the use of the simple Newtonian 1/r2 gravitational force, with r as the distance between the Sun and Mercury. In reality, the perihelion of Mercury’s orbit moves around the Sun over time. This is largely the result of the influence of other planets but is also due to perturbations in spacetime described by Albert Einstein’s general theory of relativity (GR).
Despite the complexities of GR’s underlying mathematics, a simple approximation can capture most of its effects. We approximate the GR-induced force by including terms proportional to 1/r3 and 1/r4 in addition to the Newtonian 1/r2 term. In the solar system, Mercury’s perihelion motion due to GR amounts to less than 42.3″ (0.011°) in a century. However, the students were able to produce animations like the one in figure 2 by experimenting with unrealistically large strengths of the additional terms.
Figure 2. When a (markedly large) contribution from general relativity is factored in, Mercury’s orbital path becomes dynamic. The green points indicate the perihelion.
At the 2015 academy, students explored the problem in groups of two. We provided only basic guidance and encouraged the participants to pursue their own ideas. Some students focused on understanding GR, while some played with the parameters of the system (masses, size of the time step, and so on) and explored the boundaries of the solution in terms of stability. Others tossed in an additional planet, sometimes with a tilted orbital plane, and observed the chaotic nature of the three-body problem. Still others improved the graphical output by, for instance, marking the position of the perihelion—an idea we borrowed for later courses.
During breaks the students excitedly showed their results to the participants of the other two projects. Even after the session, we had some interesting discussions about relativity, with the students pushing us toward, and sometimes beyond, the limits of our own knowledge. Due to the interest and positive feedback, in 2017 we offered a second, refined iteration of our tutorial, with similar results.
We recently made the minicourse publicly available in a paper
Christopher Körber