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.
 
 
 
 
 

169 lines
2.9 KiB

# Solar System Configuration
[[bodies]]
name = "Sun"
mass = 1.989e30 # kg
radius = 6.96e8 # m
parent_index = -1
color = { r = 1.0, g = 1.0, b = 0.0 }
orbit = {
semi_major_axis = 0.0,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Venus"
mass = 4.867e24
radius = 6.0518e6
parent_index = 0
color = { r = 0.9, g = 0.7, b = 0.3 }
orbit = {
semi_major_axis = 1.082e11,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Earth"
mass = 5.972e24
radius = 6.371e6
parent_index = 0
color = { r = 0.0, g = 0.5, b = 1.0 }
orbit = {
semi_major_axis = 1.496e11,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Mars"
mass = 6.39e23
radius = 3.3895e6
parent_index = 0
color = { r = 0.8, g = 0.3, b = 0.1 }
orbit = {
semi_major_axis = 2.279e11,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Jupiter"
mass = 1.898e27
radius = 6.9911e7
parent_index = 0
color = { r = 0.9, g = 0.7, b = 0.5 }
orbit = {
semi_major_axis = 7.785e11,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Saturn"
mass = 5.683e26
radius = 5.8232e7
parent_index = 0
color = { r = 0.9, g = 0.8, b = 0.6 }
orbit = {
semi_major_axis = 1.434e12,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Uranus"
mass = 8.681e25
radius = 2.5362e7
parent_index = 0
color = { r = 0.5, g = 0.8, b = 0.9 }
orbit = {
semi_major_axis = 2.871e12,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Neptune"
mass = 1.024e26
radius = 2.4622e7
parent_index = 0
color = { r = 0.2, g = 0.4, b = 0.9 }
orbit = {
semi_major_axis = 4.495e12,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Moon"
mass = 7.342e22
radius = 1.737e6
parent_index = 2
color = { r = 0.7, g = 0.7, b = 0.7 }
orbit = {
semi_major_axis = 3.844e8,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Io"
mass = 8.93e22
radius = 1.822e6
parent_index = 4
color = { r = 0.9, g = 0.9, b = 0.3 }
orbit = {
semi_major_axis = 4.217e8,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Europa"
mass = 4.80e22
radius = 1.561e6
parent_index = 4
color = { r = 0.8, g = 0.8, b = 0.7 }
orbit = {
semi_major_axis = 6.709e8,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Ganymede"
mass = 1.48e23
radius = 2.634e6
parent_index = 4
color = { r = 0.6, g = 0.6, b = 0.5 }
orbit = {
semi_major_axis = 1.070e9,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Callisto"
mass = 1.08e23
radius = 2.410e6
parent_index = 4
color = { r = 0.5, g = 0.5, b = 0.4 }
orbit = {
semi_major_axis = 1.883e9,
eccentricity = 0.0,
true_anomaly = 0.0
}
[[bodies]]
name = "Titan"
mass = 1.345e23
radius = 2.575e6
parent_index = 5
color = { r = 0.9, g = 0.6, b = 0.3 }
orbit = {
semi_major_axis = 1.222e9,
eccentricity = 0.0,
true_anomaly = 0.0
}