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.
 
 
 
 
 

70 lines
1.9 KiB

# Test Configuration: Hohmann Transfer Between Coplanar Circular Orbits
# Three spacecraft in circular, coplanar LEO orbits around Earth
# Tests Hohmann transfer phasing calculations in both directions
#
# Configuration:
# - Target_Satellite: middle orbit (reference)
# - Chaser_Lower: lower orbit, will transfer UP to target
# - Chaser_Higher: higher orbit, will transfer DOWN to target
[[bodies]]
name = "Earth"
mass = 5.972e24
radius = 6.371e6
parent_index = -1
color = { r = 0.0, g = 0.5, b = 1.0 }
orbit = {
semi_major_axis = 0.0,
eccentricity = 0.0,
true_anomaly = 0.0
}
# ========== TARGET SPACECRAFT ==========
# Circular LEO orbit at 400 km altitude
# Reference orbit for Hohmann transfers
[[spacecraft]]
name = "Target_Satellite"
mass = 500.0
parent_index = 0
orbit = {
semi_major_axis = 6.771e6,
eccentricity = 0.0,
true_anomaly = 0.0,
inclination = 0.0,
longitude_of_ascending_node = 0.0,
argument_of_periapsis = 0.0
}
# ========== CHASER LOWER ==========
# Circular LEO orbit at 300 km altitude (lower than target)
# Will perform Hohmann transfer UP to target orbit
# Starts 90 degrees behind target to test phasing
[[spacecraft]]
name = "Chaser_Lower"
mass = 500.0
parent_index = 0
orbit = {
semi_major_axis = 6.671e6,
eccentricity = 0.0,
true_anomaly = 4.71238898038469,
inclination = 0.0,
longitude_of_ascending_node = 0.0,
argument_of_periapsis = 0.0
}
# ========== CHASER HIGHER ==========
# Circular LEO orbit at 500 km altitude (higher than target)
# Will perform Hohmann transfer DOWN to target orbit
# Starts 90 degrees ahead of target to test phasing
[[spacecraft]]
name = "Chaser_Higher"
mass = 500.0
parent_index = 0
orbit = {
semi_major_axis = 6.871e6,
eccentricity = 0.0,
true_anomaly = 1.5707963267948966,
inclination = 0.0,
longitude_of_ascending_node = 0.0,
argument_of_periapsis = 0.0
}