Computing: Free Pascal Programming

Programming Home   Home   Contact

Planetary orbits simulation (PlanetaryOrbits).

Description: Physics related application, simulating planetary orbits: the 9 planets of our solar system turning around the sun. The user can choose which planets to consider, what and how to draw and how fast to run the graphical animation.
This simple simulation, based on Newton's law of attraction, shows the following:
  1. the relative distance of the 9 planets of our solar system from the sun and to each other
  2. the planets' orbit periods (time they make to accomplish a full revolution around the sun)
  3. the direction they move (Venus and Uranus turning in opposite direction of the other 7 planets)
  4. an indication of the different planets size
Help about how to use the programs is included, as well as technical info about this application, that is my first experience with Object Oriented Programming.

Free Pascal features: Pascal object oriented programming. Using timers and images' "Left" and "Top" properties to create graphical animations. Curve drawings using canvas. String grids.


Planetary orbits: Simulation data table
Planetary orbits: Graphical animation