FunctionBasedBushingForce example

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Gabor Piskoty
Posts: 10
Joined: Mon Nov 16, 2015 7:52 am

FunctionBasedBushingForce example

Post by Gabor Piskoty » Fri May 19, 2017 2:40 am

Dear All

In a simple pendulum model I would like to use the FunctionBasedBushingForce. My goal is to define the rotational resistance of a pendulum's joint in function of the rotational velocity of the joint. A BushingForce works well (see attachment), but the relationship between the angular velocity and the drag moment can be only linear in case of the BushingForce. With help of FunctionBasedBushingForce I would like to have flexibility regarding the relationship between angular velocity and the drag moment (e.g. a quadratic function instead linear).

Unfortunately, I have problem to figure out the right XML-syntax for FunctionBasedBushingForce. Of course, I checked the Opensim XML-browser, but I'm still helpless.

Please upload any .osim-file (XLM) using FunctionBasedBushingForce. Based on a working example I'm most probably able to figure out the right usage and syntax.

Thank you for your helping hand!

Best regards

Gabor
Attachments
pendulum08.osim
BushingForce works
(25.47 KiB) Downloaded 56 times

User avatar
Thomas Uchida
Posts: 1794
Joined: Wed May 16, 2012 11:40 am

Re: FunctionBasedBushingForce example

Post by Thomas Uchida » Fri May 19, 2017 11:03 pm

The template XML code can be found in the XML Browser under "FunctionBasedBushingForce". I searched simtk.org and found a project containing examples. Here is a direct link: https://simtk.org/svn/force_plugin/trun ... d_bushing/.

User avatar
Gabor Piskoty
Posts: 10
Joined: Mon Nov 16, 2015 7:52 am

Re: FunctionBasedBushingForce example

Post by Gabor Piskoty » Sun May 21, 2017 11:59 pm

Dear Tom

Thank you very much for your useful hint!

Best regards

Gabor

POST REPLY