Planetary Orbit Simulation

Report / Improvement Versions | 1.0.0
Input Parameters
Field Guide
Central Mass (Sun, kg)
Mass of the central body (e.g., Sun)
Planet Mass (kg)
Mass of orbiting body (usually much smaller)
Initial Distance (AU)
Initial distance from center in Astronomical Units (1 AU ≈ 1.496e11 m)
Initial Velocity (km/s, tangential)
Initial tangential velocity for circular/elliptical orbit
Simulation Time (years)
Total simulation duration
Time Steps
Number of calculation points (higher = smoother)

Cite

Formulas & Detailed Explanation

This tool simulates the two-dimensional gravitational orbit of a planet or any celestial body around a central mass, such as the Sun, using Newtonian mechanics.

Users specify the central mass, planet mass, initial distance from the center (in AU), initial tangential velocity, simulation duration, and number of time steps. The tool numerically integrates the equations of motion to compute the trajectory, supporting circular, elliptical, and hyperbolic orbits.

The motion is governed by Newton's law of universal gravitation:

\[ \vec{F} = -\frac{G M m}{r^2} \hat{r} \]

leading to the acceleration components:

\[ a_x = -\frac{G M x}{r^3} \quad , \quad a_y = -\frac{G M y}{r^3} \]

where \( r = \sqrt{x^2 + y^2} \), \( G = 6.67430 \times 10^{-11} \) m³ kg⁻¹ s⁻² is the gravitational constant, M is the central mass, and (x, y) is the position of the orbiting body relative to the center.

Initial conditions place the planet at (r₀, 0) with velocity perpendicular to the position vector (0, v₀). Numerical integration (Euler method) updates position and velocity over time.

The tool displays the complete orbital path, an interactive animation of the planet's motion (with visible planet marker distinct from the path), and a 3D animated view of the orbit. It correctly handles elliptical orbits, showing faster motion near periapsis and slower motion near apoapsis, in accordance with Kepler's laws.

Ideal for exploring orbital mechanics, Kepler's laws, exoplanet dynamics, satellite trajectories, and educational demonstrations in physics and astrophysics.

This is a poetic phrase
AD SPACE
New tools and features are announced first on LinkedIn. Follow us there to stay updated — daily and weekly!
Support

namjoo.org offers free scientific and industrial tools for accurate online calculations and simulations. Your support helps cover server and development costs, keeping the platform open, reliable, and growing.

Become a Sponsor
Keep namjoo.org free and growing Support the project