Browse Source
Extend config format to support both circular and eccentric orbits using eccentricity and semi-major axis parameters. All bodies now use the same format: e=0 for circular orbits, e>0 for eccentric orbits. Velocity calculation uses vis-viva equation for all cases. Add example comet with highly eccentric orbit (e=0.7) to test configuration. 🤖 Generated with [Claude Code](https://claude.com/claude-code)main
2 changed files with 51 additions and 22 deletions
@ -1,22 +1,28 @@
|
||||
# Simple Test Configuration |
||||
# Two planets in circular orbits for easy position verification |
||||
# 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) |
||||
# Both orbit counter-clockwise when viewed from +Z |
||||
# Comet starts at perihelion (0.75 AU, 0, 0) = (1.122e11 m, 0, 0) |
||||
# All orbit counter-clockwise when viewed from +Z |
||||
# |
||||
# Format: name mass(kg) radius(m) x(m) y(m) z(m) parent_index r g b |
||||
# Format: name mass(kg) radius(m) x(m) y(m) z(m) parent_index r g b eccentricity semi_major_axis(m) |
||||
|
||||
# Sun at origin (index 0) |
||||
Sun 1.989e30 6.96e8 0 0 0 -1 1.0 1.0 0.0 |
||||
Sun 1.989e30 6.96e8 0 0 0 -1 1.0 1.0 0.0 0 0 |
||||
|
||||
# Earth at 1 AU on positive X axis (index 1, parent Sun) |
||||
Earth 5.972e24 6.371e6 1.496e11 0 0 0 0.0 0.5 1.0 |
||||
# Earth at 1 AU - circular orbit (index 1, parent Sun) |
||||
Earth 5.972e24 6.371e6 1.496e11 0 0 0 0.0 0.5 1.0 0 1.496e11 |
||||
|
||||
# Mars at 1.5 AU on positive X axis (index 2, parent Sun) |
||||
Mars 6.39e23 3.3895e6 2.244e11 0 0 0 0.8 0.3 0.1 |
||||
# Mars at 1.5 AU - circular orbit (index 2, parent Sun) |
||||
Mars 6.39e23 3.3895e6 2.244e11 0 0 0 0.8 0.3 0.1 0 2.244e11 |
||||
|
||||
# Comet - eccentric orbit (e=0.7, a=2.5 AU) |
||||
# At perihelion: 0.75 AU, aphelion: 4.25 AU |
||||
Comet 1e14 5e3 1.122e11 0 0 0 0.5 0.8 1.0 0.7 3.74e11 |
||||
|
||||
Loading…
Reference in new issue