Browse Source
- Move all configs from tests/configs/ to tests/ - Rename configs to match test filenames (test_NAME.toml) - Remove unused configs (earth_mars_simple, simple_root_transition, interplanetary_transfer) - Combine earth_circular and mars_circular into test_orbital_period.toml - Duplicate earth_circular.toml as test_energy.toml - Remove invalid parent test case from test_invalid_parent_assignment.cpp - Update all test files to reference new config paths - Delete tests/configs/ directorymain
23 changed files with 34 additions and 225 deletions
@ -1,50 +0,0 @@
|
||||
[[bodies]] |
||||
name = "Sun" |
||||
mass = 1.989e30 |
||||
radius = 6.96e8 |
||||
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 = "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 = "Spacecraft" |
||||
mass = 1.0 |
||||
radius = 1000.0 |
||||
# Position at LEO altitude: Earth position + (Earth radius + 200km altitude) |
||||
# Earth: 1.496e11, LEO offset: 6.571e6, Total: 1.49606571e11 |
||||
parent_index = 1 |
||||
color = { r = 1.0, g = 0.0, b = 0.5 } |
||||
orbit = { |
||||
# Semi-major axis: Earth radius + 200km LEO altitude |
||||
semi_major_axis = 6.571e6, |
||||
eccentricity = 0.0, |
||||
true_anomaly = 0.0 |
||||
} |
||||
@ -1,54 +0,0 @@
|
||||
# Interplanetary Transfer Test Configuration |
||||
# Sun + Earth + Mars + Probe |
||||
# Probe will transition: Earth -> Sun -> Mars |
||||
|
||||
[[bodies]] |
||||
name = "Sun" |
||||
mass = 1.989e30 |
||||
radius = 6.96e8 |
||||
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 = "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 = "Probe" |
||||
mass = 1.0e3 |
||||
radius = 1.0e1 |
||||
# Start at Earth's position, moving toward Mars |
||||
# The probe will escape Earth's SOI and transition to Sun, then to Mars |
||||
parent_index = 0 # Start orbiting Sun |
||||
color = { r = 0.0, g = 1.0, b = 0.0 } |
||||
orbit = { |
||||
# Use elliptical transfer orbit with semi_major_axis halfway between Earth and Mars |
||||
semi_major_axis = 1.888e11, |
||||
eccentricity = 0.3, |
||||
true_anomaly = 0.0 |
||||
} |
||||
@ -1,27 +0,0 @@
|
||||
# Test Configuration: Sun + Mars (circular orbit) |
||||
# Mars at 1.5 AU with circular orbit |
||||
# Expected orbital period: ~687 days |
||||
|
||||
[[bodies]] |
||||
name = "Sun" |
||||
mass = 1.989e30 |
||||
radius = 6.96e8 |
||||
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 = "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.244e11, |
||||
eccentricity = 0.0, |
||||
true_anomaly = 0.0 |
||||
} |
||||
Loading…
Reference in new issue