Simbody
Public Member Functions

SimTK::Force::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 SimTK::Force::TwoPointConstantForce:

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

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

Create a TwoPointConstantForce.

Parameters:
forcesthe subsystem to which this force should be added
body1the first body to which the force should be applied
station1the location on the first body at which the force should be applied
body2the second body to which the force should be applied
station2the location on the second body at which the force should be applied
forcethe magnitude of the force to apply

Member Function Documentation

SimTK::Force::TwoPointConstantForce::SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS ( TwoPointConstantForce  ,
TwoPointConstantForceImpl  ,
Force   
)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines