Motion in a central potential

An object of mass under the effects of a central force .
Kepler’s problem
The motion of the sun and the earth is an example of a “two-body problem”. This is a relatively simple problem that can be solved analytically (it interesting to notice here, however, that adding a new object to the problem, the moon for instance, make it completely intractable. This is the famous “three body problem”). We can assume that, to a good approximation, the sun is stationary and is a convenient origin of our coordinate system. This is equivalent to changing to a “center of mass” coordinate system, where most of the mass is concentrated in the sun. The problem can be reduced to an equivalent one body problem involving an object of reduced mass given by Since the mass of the earth is kg and the mass of the sun is kg we find that for most practical purposes, the reduced mass of the earth-sun system is that of the earth. Hence, in the following we are going to consider the problem of a single particle of mass moving about a fixed center of force, which we take as the origin of the coordinate system. The gravitational force on the particle m is given by where the vector is directed from to , and is the gravitation constant The negative sign implies that the gravitational force is attractive, and decreases with the separation . The gravitational force is a “central force”: its magnitude depends on the separation between the particles and its direction is along the line that connects them. The assumption is that the motion is confined to the plane. The angular momentum lies on the third direction and is a constant of motion, i.e. it is conserved: An additional constant of motion ins the total energy given by If we fix the coordinate system in the sun, the equation of motion is For computational purposes it is convenient to write it down in cartesian components: Hence, the equations of motions in cartesian coordinates are: where . These are coupled differential equations, since each differential equation contains both and .
Circular motion
Since many planetary orbits are nearly circular, it is useful to obtain the condition for a circular orbit. In this case, the magnitude of the acceleration is related to the radius by where is the speed of the object. The acceleration is always directed toward the center. Hence or This is a general condition for the circular orbit. We can also find the dependence of the period on the radius of a circular orbit. Using the relation we obtain
Elliptical orbits
An ellipse has two foci and , and has the property that for any point the distance is a constant. It also has a horizontal semi-axis and a vertical . It is common in astronomy to characterize an orbit by its “eccentricity” , given by the ratio of the distance between the foci, and the length of the major axis . Since , it is easy to show that (consider a point at ,) with . A special case is for which the ellipse reduces to a circle and . The earth orbit has eccentricity .
Astronomical units
It is useful to choose a system of units where the product is of the order of unity. To describe the earth’s motion, the convention is to choose the earth’s semi-major axis as the unit of length, called “astronomical unit” (AU) and is The unit of time is taken to be “one year”, or s. In these units, yr, , and we can write
Exercise 2.1: Simulation of the orbit
Write a program to simulate motion in a central force field. Verify the case of circular orbit using (in astronomical units) (, and . Use the condition ([circular] to calculate for a circular orbit. Choose a value of such that to a good approximation the total energy is conserved. Is your value of small enough to reproduce the orbit over several periods?
Run the program for different sets of initial conditions and consistent with the condition for a circular orbit. Set and . For each orbit, measure the radius and the period to verify Kepler’s third law (). Think of a simple condition which allows you to find the numerical value of the period.
Show that Euler’s method does not shield stable orbits for the same choice of used in the previous items. Is it sufficient to simply choose a smaller or Euler’s method is no stable for this dynamical system? Use the average velocity to obtain . Are the results any better?
Set and . By trial and error find several choices of and which yield coonvinient elliptical orbits. Determine total energy, angular momentum, semi-major and semi-nimor axes, eccentricity, and period for each orbit.
You probably noticed that Euler’s algorithm with a fixed breaks down if you get to close to the sun. How are you able to visually confirm this? What is the cause of the failure of the method? Think of a simple modification of your program that can improve your results.
Challenge 2.1:
Modify the previous code to:
Write the axis labels in the right units according to the previous discussion
Answer Exercise 2.1, parts 2-5
Modifly class particle2 to add a higher order method such as Runge-Kutta
A mini solar system
The presence of other planets implies that the total force on a planet is no longer a central force. Furthermore, since the orbits are not exactly on the same plane, the analysis must be extended to 3D. However, for simplicity, we are going to consider a two-dimensional solar system, with two planets in orbit around the sun.
The equations of motion of the two planets of mass and can be written in vector form as where and are directed form the sun to the planets, and is the vector from planet 1 to planet 2. This is a problem with no analytical solution, but its numerical solution can be obtained extending our previous analysis for the two-body problem.
Exercise 2.2: A three body problem
Let us consider astronomical units, and values for the masses and . Consider initial positions and and velocities .
Write a program to calculate the trajectories of the two planets, and plot them.
What would the shape and the periods of the orbits be if the don’t interact? What is the qualitative effect of the interaction. Why is one planet affected more by the interaction that the other? Are the angular momentum and energy of planet 1 conserved? Is the total momentum an energy of the two planets conserved?
In this particular case, since both planets do not interact, the individual energies are conserved.
Challenge 2:2:
Modify the previous code to introduce the gravitational interaction between planets, and repeat the calculations. Consider masses and , and the initial positions and , with velocities corresponding to circular orbits. Plot the orbits for 5 periods, and the individual and total energies.