TwoPointConstantForce Class Reference

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>

Inheritance diagram for TwoPointConstantForce:
Force PIMPLHandle< Force, ForceImpl, true >

List of all members.

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)

Detailed Description

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.


Constructor & Destructor Documentation

TwoPointConstantForce ( GeneralForceSubsystem forces,
const MobilizedBody body1,
const Vec3 station1,
const MobilizedBody body2,
const Vec3 station2,
Real  force 
)

Create a TwoPointConstantForce.

Parameters:
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

Member Function Documentation

SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS ( TwoPointConstantForce  ,
TwoPointConstantForceImpl  ,
Force   
)

The documentation for this class was generated from the following file:

Generated on Wed Dec 30 11:05:14 2009 for SimTKcore by  doxygen 1.6.1