@ -89,7 +89,7 @@ TEST_CASE("Config loading for hybrid burns", "[hybrid][burns][config]") {
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
REQUIRE ( sim - > body_count = = 2 ) ;
REQUIRE ( sim - > body_count = = 2 ) ;
REQUIRE ( std : : string ( sim - > bodies [ 0 ] . name ) = = " Sun " ) ;
REQUIRE ( std : : string ( sim - > bodies [ 0 ] . name ) = = " Sun " ) ;
@ -137,7 +137,7 @@ SCENARIO("Impulse Hohmann transfer with two burns", "[hybrid][burns][impulse][ho
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 0 ] ;
Spacecraft * craft = & sim - > spacecraft [ 0 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
@ -212,7 +212,7 @@ SCENARIO("Impulse large burns (Δv > orbital velocity)", "[hybrid][burns][impuls
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 5 ] ;
Spacecraft * craft = & sim - > spacecraft [ 5 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
@ -273,7 +273,7 @@ SCENARIO("Impulse energy conservation during burns", "[hybrid][burns][impulse][e
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 0 ] ;
Spacecraft * craft = & sim - > spacecraft [ 0 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
@ -364,7 +364,7 @@ SCENARIO("Impulse round-trip conversion with burns", "[hybrid][burns][impulse][r
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 0 ] ;
Spacecraft * craft = & sim - > spacecraft [ 0 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
@ -438,7 +438,7 @@ SCENARIO("Impulse multiple burn sequences", "[hybrid][burns][impulse][sequence]"
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 0 ] ;
Spacecraft * craft = & sim - > spacecraft [ 0 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
@ -529,7 +529,7 @@ TEST_CASE("Impulse burn direction vector calculation", "[hybrid][burns][impulse]
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 10 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 0 ] ;
Spacecraft * craft = & sim - > spacecraft [ 0 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
@ -576,7 +576,7 @@ TEST_CASE("Continuous low-thrust burns (ion engines)", "[hybrid][burns][continuo
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 6 ] ;
Spacecraft * craft = & sim - > spacecraft [ 6 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
@ -636,7 +636,7 @@ TEST_CASE("Continuous multi-burn sequences", "[hybrid][burns][continuous][multi_
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 7 ] ;
Spacecraft * craft = & sim - > spacecraft [ 7 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
@ -702,7 +702,7 @@ TEST_CASE("Continuous mode transitions during burns", "[hybrid][burns][continuou
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 8 ] ;
Spacecraft * craft = & sim - > spacecraft [ 8 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
@ -760,7 +760,7 @@ TEST_CASE("Continuous energy conservation during burns", "[hybrid][burns][contin
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 9 ] ;
Spacecraft * craft = & sim - > spacecraft [ 9 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
@ -839,7 +839,7 @@ TEST_CASE("Continuous accuracy of continuous vs. impulsive burns", "[hybrid][bur
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 6 ] ;
Spacecraft * craft = & sim - > spacecraft [ 6 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
@ -889,7 +889,7 @@ TEST_CASE("Continuous propagation during burn", "[hybrid][burns][continuous][pro
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 6 ] ;
Spacecraft * craft = & sim - > spacecraft [ 6 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
@ -971,7 +971,7 @@ TEST_CASE("Continuous numerical stability during many burn/conversion cycles", "
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
SimulationState * sim = create_simulation ( 2 , 10 , 100 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/configs/ test_hybrid_burns.toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_hybrid_burns.toml " ) ) ;
Spacecraft * craft = & sim - > spacecraft [ 6 ] ;
Spacecraft * craft = & sim - > spacecraft [ 6 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;
CelestialBody * earth = & sim - > bodies [ 1 ] ;