test_linearTranslationNDOFStateEffector

test_linearTranslationNDOFStateEffector.test_translatingBody(show_plots, function)[source]

Validation Test Description

This unit test sets up a spacecraft with four single-axis translating rigid bodies attached to a rigid hub. Each translating body’s center of mass is off-center from the translating 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.

test_linearTranslationNDOFStateEffector.translatingBodyCommandedForce(show_plots)[source]

This test includes a commanded force to the link, so energy is not conserved.

test_linearTranslationNDOFStateEffector.translatingBodyLockAxis(show_plots)[source]

This test locks the axis, so the displacement is kept constant throughout the simulation.

test_linearTranslationNDOFStateEffector.translatingBodyNoInput(show_plots)[source]

This test does not use any input messages or lock flags, so the links are free to move.