Simbody
|
A constant force f (a signed scalar) which acts along the line between two points, specified as a station on each of two bodies. More...
#include <Force.h>
Public Member Functions | |
TwoPointConstantForce (GeneralForceSubsystem &forces, const MobilizedBody &body1, const Vec3 &station1, const MobilizedBody &body2, const Vec3 &station2, Real force) | |
Create a TwoPointConstantForce. | |
SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS (TwoPointConstantForce, TwoPointConstantForceImpl, Force) |
A constant force f (a signed scalar) which acts along the line between two points, specified as a station on each of two bodies.
A positive force acts to separate the points; negative pulls them together. The force magnitude is independent of the separation between the points. This force does not contribute to the potential energy, so adding it to a system will cause energy not to be conserved. It is an error if the two points become coincident, since we are unable to determine a direction for the force in that case.
SimTK::Force::TwoPointConstantForce::TwoPointConstantForce | ( | GeneralForceSubsystem & | forces, |
const MobilizedBody & | body1, | ||
const Vec3 & | station1, | ||
const MobilizedBody & | body2, | ||
const Vec3 & | station2, | ||
Real | force | ||
) |
Create a TwoPointConstantForce.
forces | the subsystem to which this force should be added |
body1 | the first body to which the force should be applied |
station1 | the location on the first body at which the force should be applied |
body2 | the second body to which the force should be applied |
station2 | the location on the second body at which the force should be applied |
force | the magnitude of the force to apply |
SimTK::Force::TwoPointConstantForce::SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS | ( | TwoPointConstantForce | , |
TwoPointConstantForceImpl | , | ||
Force | |||
) |