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.
 
 
 
 
 

83 lines
1.8 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
[[bodies]]
name = "Sun"
mass = 1.989e30
radius = 6.96e8
position = { x = 0.0, y = 0.0, z = 0.0 }
parent_index = -1
color = { r = 1.0, g = 1.0, b = 0.0 }
eccentricity = 0.0
semi_major_axis = 0.0
[[bodies]]
name = "Earth"
mass = 5.972e24
radius = 6.371e6
position = { x = 1.496e11, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.0, g = 0.5, b = 1.0 }
eccentricity = 0.0
semi_major_axis = 1.496e11
[[bodies]]
name = "Mars"
mass = 6.39e23
radius = 3.3895e6
position = { x = 2.244e11, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.8, g = 0.3, b = 0.1 }
eccentricity = 0.0
semi_major_axis = 2.244e11
[[bodies]]
name = "Comet"
mass = 1e14
radius = 5e3
position = { x = 1.122e11, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.5, g = 0.8, b = 1.0 }
eccentricity = 0.7
semi_major_axis = 3.74e11
[[bodies]]
name = "Parabolic"
mass = 1e13
radius = 3e3
position = { x = 7.48e10, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 1.0, g = 1.0, b = 0.5 }
eccentricity = 1.0
semi_major_axis = 7.48e10
[[bodies]]
name = "Inclined"
mass = 1e12
radius = 2e3
position = { x = 1.795e11, y = 0.0, z = 3.114e10 }
parent_index = 0
color = { r = 0.8, g = 0.8, b = 0.0 }
eccentricity = 0.0
semi_major_axis = 1.795e11
[[bodies]]
name = "Hyperbolic"
mass = 1e13
radius = 3e3
position = { x = 7.48e10, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.3, g = 1.0, b = 0.3 }
eccentricity = 1.5
semi_major_axis = -1.496e11