Function for Custom force

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Hang Xu
Posts: 26
Joined: Wed Aug 19, 2009 10:55 pm

Function for Custom force

Post by Hang Xu » Mon Jan 09, 2012 11:08 am

Hi, all
I met some questions when I tried to learn the Custom force class (https://simtk.org/api_docs/opensim/api_docs20b/)
I am confused about the different between "applyForce" which said "Apply a force to a particular body which only apply a force, not a torque, which is equivalent to applying the force at the body's center of mass."and "applyForceToPoint" which said "Apply a force to a particular body.Based on what point the force is applied at, automatically determines the torque produced by the force and applies that as well".

So my question is:
1. Does "applyForce" is chosen only when the force directly apply to the body's COM? is that right? Otherwise, there will be torque produced and we should choose "applyForceToPoint"
2. Especial for ligament force, which one should be used ? "applyForce" or "applyForceToPoint"

Thanks for any help and suggestion.

POST REPLY