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.
 
 
 
 
 

150 lines
3.1 KiB

# Solar System Configuration
[[bodies]]
name = "Sun"
mass = 1.989e30 # kg
radius = 6.96e8 # m
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
name = "Venus"
mass = 4.867e24
radius = 6.0518e6
position = { x = 1.082e11, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.9, g = 0.7, b = 0.3 }
eccentricity = 0.0
semi_major_axis = 1.082e11
[[bodies]]
name = "Venus"
mass = 4.867e24
radius = 6.0518e6
position = { x = 1.082e11, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.9, g = 0.7, b = 0.3 }
eccentricity = 0.0
semi_major_axis = 1.082e11
[[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.279e11, 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.279e11
[[bodies]]
name = "Jupiter"
mass = 1.898e27
radius = 6.9911e7
position = { x = 7.785e11, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.9, g = 0.7, b = 0.5 }
eccentricity = 0.0
semi_major_axis = 7.785e11
[[bodies]]
name = "Saturn"
mass = 5.683e26
radius = 5.8232e7
position = { x = 1.434e12, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.9, g = 0.8, b = 0.6 }
eccentricity = 0.0
semi_major_axis = 1.434e12
[[bodies]]
name = "Uranus"
mass = 8.681e25
radius = 2.5362e7
position = { x = 2.871e12, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.5, g = 0.8, b = 0.9 }
eccentricity = 0.0
semi_major_axis = 2.871e12
[[bodies]]
name = "Neptune"
mass = 1.024e26
radius = 2.4622e7
position = { x = 4.495e12, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.2, g = 0.4, b = 0.9 }
eccentricity = 0.0
semi_major_axis = 4.495e12
[[bodies]]
name = "Moon"
mass = 7.342e22
radius = 1.737e6
position = { x = 1.500e11, y = 0.0, z = 0.0 }
parent_index = 3
color = { r = 0.7, g = 0.7, b = 0.7 }
eccentricity = 0.0
semi_major_axis = 1.500e11
[[bodies]]
name = "Io"
mass = 8.93e22
radius = 1.822e6
position = { x = 8.207e11, y = 0.0, z = 0.0 }
parent_index = 5
color = { r = 0.9, g = 0.9, b = 0.3 }
eccentricity = 0.0
semi_major_axis = 8.207e11
[[bodies]]
name = "Europa"
mass = 4.80e22
radius = 1.561e6
position = { x = 8.456e11, y = 0.0, z = 0.0 }
parent_index = 5
color = { r = 0.8, g = 0.8, b = 0.7 }
eccentricity = 0.0
semi_major_axis = 8.456e11
[[bodies]]
name = "Ganymede"
mass = 1.48e23
radius = 2.634e6
position = { x = 8.853e11, y = 0.0, z = 0.0 }
parent_index = 5
color = { r = 0.6, g = 0.6, b = 0.5 }
eccentricity = 0.0
semi_major_axis = 8.853e11
[[bodies]]
name = "Callisto"
mass = 1.08e23
radius = 2.410e6
position = { x = 9.670e11, y = 0.0, z = 0.0 }
parent_index = 5
color = { r = 0.5, g = 0.5, b = 0.4 }
eccentricity = 0.0
semi_major_axis = 9.670e11
[[bodies]]
name = "Titan"
mass = 1.345e23
radius = 2.575e6
position = { x = 1.556e12, y = 0.0, z = 0.0 }
parent_index = 6
color = { r = 0.9, g = 0.6, b = 0.3 }
eccentricity = 0.0
semi_major_axis = 1.556e12