Solar System
Copy this iframe to your website:
1 | |
Run Solar System MicroSim in Fullscreen Edit the Solar System MicroSim Using the p5.js Editor
Description
This MicroSim demonstrates orbital mechanics by simulating the inner solar system using real astronomical data from NASA. The simulation calculates gravitational forces between celestial bodies using Newton's Law of Universal Gravitation and displays orbital parameters in real-time.
Celestial Bodies
| Planet | Mass (kg) | Orbital Velocity (km/s) | Orbital Period (days) |
|---|---|---|---|
| Sun | 1.989 × 10³⁰ | — | — |
| Mercury | 3.30 × 10²³ | 38.86 | 88 |
| Venus | 4.87 × 10²⁴ | 34.79 | 225 |
| Earth | 5.97 × 10²⁴ | 29.29 | 366 |
| Mars | 6.39 × 10²³ | 21.97 | 687 |
Real-Time Statistics
For each planet, the simulation displays:
- Distance to Sun: Current distance in Astronomical Units (AU)
- Perihelion: Closest approach to the Sun
- Aphelion: Farthest distance from the Sun
- Orbital Velocity: Current speed in km/s
- Max/Min Velocity: Fastest and slowest orbital speeds
- Eccentricity: Calculated from velocity ratio (how elliptical the orbit is)
Physics Concepts Demonstrated
- Newton's Law of Universal Gravitation: F = G(m₁m₂)/r²
- Kepler's Laws of Planetary Motion:
- Planets orbit in ellipses with the Sun at one focus
- Equal areas swept in equal times
- T² ∝ a³ (period squared proportional to semi-major axis cubed)
- Conservation of Angular Momentum: Planets move faster at perihelion, slower at aphelion
- Orbital Mechanics: Relationship between velocity and orbital distance
Simulation Parameters
- Gravitational Constant (G): 6.67430 × 10⁻¹¹ N⋅m²/kg²
- Astronomical Unit (AU): 149.598 million km
- Time Step: 1 day per frame
- Scale: 200 pixels per AU
Lesson Plan
Learning Objectives
By the end of this lesson, students will be able to:
- Explain how gravitational force depends on mass and distance
- Describe the relationship between orbital velocity and distance from the Sun
- Calculate orbital eccentricity from velocity data
- Compare orbital parameters of the inner planets
Grade Level
High School Physics (Grades 10-12)
Prerequisites
- Understanding of Newton's Laws of Motion
- Basic knowledge of gravitational force
- Familiarity with vectors and velocity
- Understanding of ellipses and conic sections
Duration
45-60 minutes
Activities
Activity 1: Orbital Observation (15 min)
- Watch Mercury complete several orbits (fastest planet)
- Compare Mercury's orbital speed to Mars (slowest)
- Record the perihelion and aphelion for each planet
- Calculate the difference between perihelion and aphelion
Activity 2: Kepler's Second Law (15 min)
- Observe how each planet's velocity changes during its orbit
- Note where planets move fastest (perihelion) and slowest (aphelion)
- Explain why this happens using conservation of angular momentum
- Compare eccentricity values—which planet has the most elliptical orbit?
Activity 3: Gravitational Analysis (15 min)
- Compare the gravitational force on Mercury vs Mars (different distances)
- Calculate the expected orbital velocity ratio using v ∝ 1/√r
- Verify the simulation matches theoretical predictions
- Discuss why inner planets orbit faster than outer planets
Discussion Questions
- Why does Mercury orbit the Sun so much faster than Mars?
- What would happen if Earth's orbital velocity suddenly decreased?
- How does the Sun's mass affect the orbital periods of planets?
- Why are the orbits slightly elliptical rather than perfectly circular?
Assessment
- Students calculate orbital eccentricity from perihelion/aphelion data
- Students predict orbital velocity at a given distance
- Students compare simulation results to published NASA data
References
- NASA Planetary Fact Sheet - NASA GSFC - Authoritative source for planetary data used in this simulation
- Newton's Law of Universal Gravitation - Wikipedia - Mathematical foundation for the gravitational calculations
- Kepler's Laws of Planetary Motion - Wikipedia - The three laws governing orbital motion
- Python Planet Simulation - Tech With Tim - Original Python implementation that inspired this visualization
- Fifty Examples: Gravity - Reference for n-body gravitational simulation algorithms