test_keplerianOrbit
- test_keplerianOrbit.assert_orbit_outputs(orbit, elements, mu)[source]
Check elliptic outputs against element formulas and Cartesian state invariants.
- test_keplerianOrbit.make_elements(eccentricity, true_anomaly)[source]
Return elements for an inclined ellipse with the requested shape and phase.
- test_keplerianOrbit.test_constructor_outputs(eccentricity, true_anomaly, constructor)[source]
Check anomalies, signed flight-path angle, rates, and radius before any setter runs.
- test_keplerianOrbit.test_default_constructor_outputs()[source]
Check that the default constructor initializes the complete derived state.
- test_keplerianOrbit.test_element_updates(true_anomaly, element, setter, value)[source]
Check immediate consistency after each orbit-shape or orientation setter.
- test_keplerianOrbit.test_gravitational_parameter_updates(true_anomaly, mu_scale)[source]
Check immediate gravity updates, subsequent element changes, and copying.
- test_keplerianOrbit.test_true_anomaly_updates(eccentricity)[source]
Check repeated phase changes across apsides, negative angles, and revolutions.
- test_keplerianOrbit.unitKeplerianOrbit(show_plots=False)[source]
Unit Test Keplerian Orbit object
This test covers: 1) elem to rv conversion 2) orbit energy calculation 3) orbital period calculation 4) mean motion calculation 5) changing individual orbital elements 6) copy constructor 7) constructor with arguments 8) constructor without arguments
- Parameters:
show_plots (bool) – unused. required for Basilisk test suite
- Returns:
testFailCount (int) – number of tests that failed
testMessages (str) – a string of all of the failure messages