scenarioCentralBody

Overview

This script sets up a basic spacecraft in orbit about Earth. One option uses earth.isCentralBody = True and the other uses isCentralBody = False. The nuances of spacecraft position and velocity I/O in these cases are demonstrated.

../_images/test_scenarioBasicOrbit.svg

The script is found in the folder basilisk/examples and executed by using:

python3 scenarioCentralBody.py

Note

This script is a good reference for configuring the following modules:

Illustration of Simulation Results

Running this example script will yield the following results.

show_plots = True, useCentral = False
../_images/scenarioCentralBody10.svg
../_images/scenarioCentralBody20.svg
show_plots = True, useCentral = True
../_images/scenarioCentralBody11.svg
../_images/scenarioCentralBody21.svg
scenarioCentralBody.run(show_plots, useCentral)[source]
Parameters:
  • show_plots (bool) – Determines if the script should display plots

  • useCentral (bool) – Specifies if the planet is the center of the coordinate system