OpenSim3.1:CoupledBushingForceExample didn't generate force
Posted: Tue Jan 07, 2014 8:57 am
Hello,
Thank you very much for reading this post. Currently, I am trying to add a CoupledBushingForce between torso and pelvis in the given example “gait2354_Simbody.osim” and check the output of the coupledbushingforces. I generated the plugin files based on the given source code(OpenSim 3.1/sdk/APIExamples/Plugin/CoupledBushingForceExample), CMaker2.8 and VS2010, and loaded it in OpenSim3.1 successfully. The CMC (based on the files in the given example) did work and calculated successfully. However, after the analysis, I found that the outputs of the CoupledBushingforces in the forcereport are all zero. So the plugin did not generate any force during the simulation. I also changed the Coupledbushingforce to Bushingforce, the Bushingforce element did generate the expected forces. So I really don't know why.
I sincerely hope someone can help me. I have attached the modified model, forcereport of the analysis, source code of the given CoupledBushingForceExample,the .dll/.lib files of the plugin and other files you may need in this topic. When you load all these files into the your Opensim3.1, you can see the problem that I have met.
Thank you very much for your time. Happy new year!
Xiangjie Meng
--------<to save your time, I show the parts that I modified below>------
The code I added in gait2354_Simbody.osim:
<CoupledBushingForce name="S_L5 CoupledBushing force">
<!--Flag indicating whether the force is disabled or not. Disabled means that the force is not active in subsequent dynamics realizations.-->
<isDisabled>false</isDisabled>
<body_1>pelvis</body_1>
<body_2>torso</body_2>
<location_body_1> -0.1007 0.0815 0</location_body_1>
<orientation_body_1> 0 0 0</orientation_body_1>
<location_body_2> 0 0 0</location_body_2>
<orientation_body_2> 0 0 0</orientation_body_2>
<stiffness_row1> 1000 0 0 0 0 0</stiffness_row1>
<stiffness_row2> 0 1000 0 0 0 0</stiffness_row2>
<stiffness_row3> 0 0 1000 0 0 0</stiffness_row3>
<stiffness_row4> 0 0 0 1000 0 0</stiffness_row4>
<stiffness_row5> 0 0 0 0 1000 0</stiffness_row5>
<stiffness_row6> 0 0 0 0 0 1000</stiffness_row6>
<damping_row1> 1000 0 0 0 0 0</damping_row1>
<damping_row2> 0 1000 0 0 0 0</damping_row2>
<damping_row3> 0 0 1000 0 0 0</damping_row3>
<damping_row4> 0 0 0 1000 0 0</damping_row4>
<damping_row5> 0 0 0 0 1000 0</damping_row5>
<damping_row6> 0 0 0 0 0 1000</damping_row6>
</CoupledBushingForce>
PS: I can see that S_L5 CoupledBushing force in "other forces" in the Navigator.
Thank you very much for reading this post. Currently, I am trying to add a CoupledBushingForce between torso and pelvis in the given example “gait2354_Simbody.osim” and check the output of the coupledbushingforces. I generated the plugin files based on the given source code(OpenSim 3.1/sdk/APIExamples/Plugin/CoupledBushingForceExample), CMaker2.8 and VS2010, and loaded it in OpenSim3.1 successfully. The CMC (based on the files in the given example) did work and calculated successfully. However, after the analysis, I found that the outputs of the CoupledBushingforces in the forcereport are all zero. So the plugin did not generate any force during the simulation. I also changed the Coupledbushingforce to Bushingforce, the Bushingforce element did generate the expected forces. So I really don't know why.
I sincerely hope someone can help me. I have attached the modified model, forcereport of the analysis, source code of the given CoupledBushingForceExample,the .dll/.lib files of the plugin and other files you may need in this topic. When you load all these files into the your Opensim3.1, you can see the problem that I have met.
Thank you very much for your time. Happy new year!
Xiangjie Meng
--------<to save your time, I show the parts that I modified below>------
The code I added in gait2354_Simbody.osim:
<CoupledBushingForce name="S_L5 CoupledBushing force">
<!--Flag indicating whether the force is disabled or not. Disabled means that the force is not active in subsequent dynamics realizations.-->
<isDisabled>false</isDisabled>
<body_1>pelvis</body_1>
<body_2>torso</body_2>
<location_body_1> -0.1007 0.0815 0</location_body_1>
<orientation_body_1> 0 0 0</orientation_body_1>
<location_body_2> 0 0 0</location_body_2>
<orientation_body_2> 0 0 0</orientation_body_2>
<stiffness_row1> 1000 0 0 0 0 0</stiffness_row1>
<stiffness_row2> 0 1000 0 0 0 0</stiffness_row2>
<stiffness_row3> 0 0 1000 0 0 0</stiffness_row3>
<stiffness_row4> 0 0 0 1000 0 0</stiffness_row4>
<stiffness_row5> 0 0 0 0 1000 0</stiffness_row5>
<stiffness_row6> 0 0 0 0 0 1000</stiffness_row6>
<damping_row1> 1000 0 0 0 0 0</damping_row1>
<damping_row2> 0 1000 0 0 0 0</damping_row2>
<damping_row3> 0 0 1000 0 0 0</damping_row3>
<damping_row4> 0 0 0 1000 0 0</damping_row4>
<damping_row5> 0 0 0 0 1000 0</damping_row5>
<damping_row6> 0 0 0 0 0 1000</damping_row6>
</CoupledBushingForce>
PS: I can see that S_L5 CoupledBushing force in "other forces" in the Navigator.