test_linearTranslationOneDOFStateEffector
- test_linearTranslationOneDOFStateEffector.test_translatingBody(show_plots, function)[source]
Validation Test Description
This unit test sets up a spacecraft with a single-axis translating rigid body attached to a rigid hub. The position of the boom 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
should be constant when tested against their initial values.