vibe coding an orbital mechanics simulation to try out claude code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

40 lines
1.5 KiB

# Simple Test Configuration
# Planets in circular and eccentric orbits
#
# Orbital periods (for verification):
# Earth: ~365 days
# Mars: ~687 days
# Comet: ~1444 days
#
# At t=0:
# Earth starts at (1.0 AU, 0, 0) = (1.496e11 m, 0, 0)
# Mars starts at (1.5 AU, 0, 0) = (2.244e11 m, 0, 0)
# Comet starts at perihelion (0.75 AU, 0, 0) = (1.122e11 m, 0, 0)
# All orbit counter-clockwise when viewed from +Z
#
# Format: name mass(kg) radius(m) x(m) y(m) z(m) parent_index r g b eccentricity semi_major_axis(m)
# Sun at origin (index 0)
Sun 1.989e30 6.96e8 0 0 0 -1 1.0 1.0 0.0 0 0
# Earth at 1 AU - circular orbit (index 1, parent Sun)
Earth 5.972e24 6.371e6 1.496e11 0 0 0 0.0 0.5 1.0 0 1.496e11
# Mars at 1.5 AU - circular orbit (index 2, parent Sun)
Mars 6.39e23 3.3895e6 2.244e11 0 0 0 0.8 0.3 0.1 0 2.244e11
# Comet - eccentric orbit (e=0.7, a=2.5 AU)
# At perihelion: 0.75 AU, aphelion: 4.25 AU
Comet 1e14 5e3 1.122e11 0 0 0 0.5 0.8 1.0 0.7 3.74e11
# Parabolic object - escape trajectory (e=1.0, at perihelion 0.5 AU)
# Exactly at escape velocity
Parabolic 1e13 3e3 7.48e10 0 0 0 1.0 1.0 0.5 1.0 7.48e10
# Inclined asteroid - circular orbit at 1.2 AU, 30 deg inclination
# Position: x=1.2AU*cos(0)=1.2AU, y=0, z=1.2AU*sin(30deg)=0.6AU
Inclined 1e12 2e3 1.795e11 0 3.114e10 0 0.8 0.8 0.0 0 1.795e11
# Hyperbolic visitor - incoming from interstellar space (e=1.5, a=-1.0 AU)
# At perihelion 0.5 AU with high velocity
Hyperbolic 1e13 3e3 7.48e10 0 0 0 0.3 1.0 0.3 1.5 -1.496e11