[关闭]
@FangYing 2016-05-10T23:24:20.000000Z 字数 2436 阅读 1394

Chapter 4 problem 4.7

python.assignment


name: Li FangYing
number: 2013301020027

Abstract

Simulation of solar system in three-dimension version will be made. In addition, Two body system and binary star system will be explored and displayed in three-dimension form.

Introduction

If we want to explore fundamental physical principles such as Newton's laws, we would better find a system without friction force. The solar system is such a ideal laboratory.
Studying of the motion of celestial bodys is really inspiraing! We will begin with a sun and one planet system than go to binary star systems.

Nummerical Approach

Euler-Cromer method is a better choice than Euler method on this problem. Because the planetary motion is a oscillatory problem.
If we use Euler method, the energy of the planet will go with time, but Euler-Cromer method can exactly conserve energy over the course of each orbit. So we will take the latter one for our problem.
Consider a simple system which has a sun and a planet, the dynamic equation can be written as:


We will use astronomical units,AU and use year to measure time, and we have , for simplity we take the period as 1 year, than so . For earth,
If we consider two body problem, in which has no fixed body, there will be equations:, and right hand of the equation will be and so on.

Data analysis

First, we start with the simplest situation: a system with Earth and Sun:

Following the fundamental principle, we can develop our own solar system. This is a 3D display of a part of the system:

Viewing stars rotating is just a pleasures after errors and tries!

Than we let the two bodys have equal mass:
Notice that we should set the total momentum equals to zero, and the initial location is ; the initial velocity is :

We can enlarge the figure to see it more clearly:

We can see the route is almost the same, but if we change the initial condition, the result will be totally differen. The result will change with initial conditions.

Next step we naturally want them have different masses, and they becomes binary stars:

The bigger one is twice as heavy as the smaller one. As you can see, the heavier one has smaller radius.

Conclusion

Today we construct our own solar system, and explore two body problem.
When two body has same masses, their trajectory is symmetric, when they have different masses, the trajectory of the heavier one has a smaller radius. If one of it is extremely heavy, the radius get down to zero and it becomes a fixed body. Besides, the trajectory will vary with the initial condition.

program codes

Earth and Sun
3D solar system
two body with equal mass
3D binary stars

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注