A Virtual 3D Solar System
by Yi Xie, Astronomy Department of Najing University, China, E-mail: shea@citiz.net , 20/01/2004 Yi Xie
NOTE: This application demonstrates how Maple 9 can be used in making a virtual 3D solar system.
Introduction
In solar system, all planetary orbits, except Pluto 's, are nearly in a plane and circular. Here, we use a little knowledge of Celestial Mechanics and power of Maple to make a virtual 3D solar system and illustrate these characteristics.
Warning, the protected names norm and trace have been redefined and unprotected
Warning, the name changecoords has been redefined
Warning, the name arrow has been redefined
Section I: Coordinates Transformation
In 2-body problem, such as Sun and a planet, it exists 6 orbital elements that can describe planetary orbital configuration and motion of the planet. The orbital elements are semi-major axis (a), eccentricity (e), orbital inclination (i), longitude of ascending node ( ), augument of perihelion ( ) and mean anomaly (M). And in 2-body problem, we can easily find that the orbit of planet is in a 2D invariant plane, so each planet has a different invariant plane. To get an outline picture of solar system, we should convert these invariant planes to a universal framework through coordinates transformation by matrix rotation. See reference for details about 2-body problem and coordinates transformation.
For jth planet, we define 3 matrixes , and for rotation.
For jth planet, the position vector in invariant plane is A , A =( , , 0), where is eccentric anomaly and the position vector B in the universal famework is , where .
Section 2: Orbits in the universal famework
Now, we have got the position vector in the universal famework, which only depends on for other elements are known. It means we have got the parameter equations of orbits.
Here, we set 9 planetary orbital elements in 5 sequences. Note: the sequence [9] is longitude of perihelion, instead of augument of perihelion. But we can convert them to augument of perihelion through some spherical trigonometry knowledge.
Convert degree to radian.
Calculate augument of perihelion from longitude of perihelion.
Parameter equations of 9 planetary orbits.
Section 3: Plot the orbits
As we have got the orbit equations, we can plot them directly.
Plot the orbits.
Plot the Sun.
Texts on each orbit.
display(pic1,scaling=CONSTRAINED);
Section 4: Export to VRML
For semi-major axises vary largely from about 0.4A.U. to nearly 40A.U., so it is difficult to distinguish inner planets in a whole picture of solar system as above. But VRML can solve this problem and it can show some characteristics mentioned at first. In exported VRML file, the color is not good. Of course, you can modify it. You can visit my VRML about a 3D solar system, http://www.hjsm.net/astro/sheaweb/files/9planets.wrl .
References
Murray, C. D. and Dermott, S. F. 1999: "Solar System Dynamics", Cambridge University Press, Cambridge.
Licence Agreement
20/01/2004 Yi Xie