#include <Force.h>
The mobility here selects a generalized speed (u), not a generalized coordinate (q), and the meaning depends on the definition of the generalized speed. If that speed is a translation then this is a force; if a rotation then this is a torque. This force does not contribute to the potential energy, so adding it to a system will cause energy not to be conserved.
Public Member Functions | |
MobilityConstantForce (GeneralForceSubsystem &forces, const MobilizedBody &body, int coordinate, Real force) | |
Create a MobilityConstantForce. | |
SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS (MobilityConstantForce, MobilityConstantForceImpl, Force) |
MobilityConstantForce | ( | GeneralForceSubsystem & | forces, | |
const MobilizedBody & | body, | |||
int | coordinate, | |||
Real | force | |||
) |
Create a MobilityConstantForce.
forces | the subsystem to which this force should be added | |
body | the body to which the force should be applied | |
coordinate | the index of the coordinate in the body's u vector to which the force should be applied | |
force | the force to apply |
SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS | ( | MobilityConstantForce | , | |
MobilityConstantForceImpl | , | |||
Force | ||||
) |