test_spinningBodyNDOFStateEffector
- test_spinningBodyNDOFStateEffector.test_spinningBody(show_plots, function)[source]
Validation Test Description
This unit test sets up a spacecraft with a four single-axis rotating rigid bodies attached to a rigid hub. The spinning body’s center of mass is off-center from the spinning axis and the position of the axis is arbitrary. The scenario includes gravity acting on both the spacecraft and the effector.
Description of Variables Being Tested
In this file we are checking the principles of conservation of energy and angular momentum. Both the orbital and rotational energy and angular momentum must be maintained when conservative forces like gravity are present. Therefore, the values of the variables
finalOrbAngMom
finalOrbEnergy
finalRotAngMom
finalRotEnergy
against their initial values.