Damper

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Anne Schmitz
Posts: 76
Joined: Thu May 31, 2007 7:44 am

Damper

Post by Anne Schmitz » Wed Sep 15, 2010 1:37 pm

How can I add a damper to my model?

User avatar
Anne Schmitz
Posts: 76
Joined: Thu May 31, 2007 7:44 am

RE: Damper

Post by Anne Schmitz » Mon Oct 11, 2010 12:59 am

I've added a SpringGeneralizedForce to int/ext knee rotation with zero stiffness but some viscosity. Is this basically a damper then?

Thanks,

Anne

User avatar
Roger Mathys
Posts: 20
Joined: Sun May 02, 2010 4:35 am

RE: Damper

Post by Roger Mathys » Thu Oct 21, 2010 8:00 am

Hi Anne,

Unfortunately I do not have an answer to your question.

But I would like to add a certain stiffness to the joints of a neck model I am working with. There was already a thread about ligaments which you started.

Could you help me how to include a stiffness (SpringGeneralizedForce) or even better ligaments to a joint. Unfortunately I only have the opensim model without code. That means I did all the modifications by using the XML editor.

Thanks for your help,

Roger


User avatar
Anne Schmitz
Posts: 76
Joined: Thu May 31, 2007 7:44 am

RE: Damper

Post by Anne Schmitz » Mon Nov 01, 2010 11:06 am

Here is the xml code for a ligament.

<Ligament name="pmPCL_r">
<isDisabled> false </isDisabled>
<GeometryPath name="">
<PathPointSet name="">
<objects>
<PathPoint name="pmPCL_r-P1">
<location> -0.00900000 -0.04700000 -0.00200000 </location>
<VisibleObject name="">
<!--Set of geometry files and associated attributes, allow .vtp, .stl,
.obj-->
<GeometrySet name="">
<objects/>
<groups/>
</GeometrySet>
<!--Three scale factors for display purposes: scaleX scaleY scaleZ-->
<scale_factors> 1.00000000 1.00000000 1.00000000 </scale_factors>
<!--transform relative to owner specified as 3 rotations (rad) followed by
3 translations rX rY rZ tx ty tz-->
<transform> -0.00000000 0.00000000 -0.00000000 0.00000000 0.00000000 0.00000000 </transform>
<!--Whether to show a coordinate frame-->
<show_axes> false </show_axes>
<!--Display Pref. 0:Hide 1:Wire 3:Flat 4:Shaded Can be overriden for
individual geometries-->
<display_preference> 4 </display_preference>
</VisibleObject>
<body> tibia_r </body>
</PathPoint>
<PathPoint name="pmPCL_r-P2">
<location> -0.00300000 -0.41000000 -0.00900000 </location>
<VisibleObject name="">
<!--Set of geometry files and associated attributes, allow .vtp, .stl,
.obj-->
<GeometrySet name="">
<objects/>
<groups/>
</GeometrySet>
<!--Three scale factors for display purposes: scaleX scaleY scaleZ-->
<scale_factors> 1.00000000 1.00000000 1.00000000 </scale_factors>
<!--transform relative to owner specified as 3 rotations (rad) followed by
3 translations rX rY rZ tx ty tz-->
<transform> -0.00000000 0.00000000 -0.00000000 0.00000000 0.00000000 0.00000000 </transform>
<!--Whether to show a coordinate frame-->
<show_axes> false </show_axes>
<!--Display Pref. 0:Hide 1:Wire 3:Flat 4:Shaded Can be overriden for
individual geometries-->
<display_preference> 4 </display_preference>
</VisibleObject>
<body> femur_r </body>
</PathPoint>
</objects>
<groups/>
</PathPointSet>
<VisibleObject name="">
<!--Set of geometry files and associated attributes, allow .vtp, .stl,
.obj-->
<GeometrySet name="">
<objects/>
<groups/>
</GeometrySet>
<!--Three scale factors for display purposes: scaleX scaleY scaleZ-->
<scale_factors> 1.00000000 1.00000000 1.00000000 </scale_factors>
<!--transform relative to owner specified as 3 rotations (rad) followed by
3 translations rX rY rZ tx ty tz-->
<transform> -0.00000000 0.00000000 -0.00000000 0.00000000 0.00000000 0.00000000 </transform>
<!--Whether to show a coordinate frame-->
<show_axes> false </show_axes>
<!--Display Pref. 0:Hide 1:Wire 3:Flat 4:Shaded Can be overriden for
individual geometries-->
<display_preference> 4 </display_preference>
</VisibleObject>
<PathWrapSet name="">
<objects/>
<groups/>
</PathWrapSet>
</GeometryPath>
<!--resting length of the ligament-->
<resting_length> 0.03000000 </resting_length>
<!--force magnitude that scales the force-length curve-->
<pcsa_force> 1900.00000000 </pcsa_force>
<!--Function representing the force-length behavior of the ligament-->
<force_length_curve>
<NaturalCubicSpline name="">
<x> -5.00000000 0.99800000 0.99900000 1.00000000 1.03000000 1.06000000 1.07000000 1.10000000 2.00000000 </x>
<y> 0.00000000 0.00000000 0.00000000 0.00000000 0.00750000 0.03000000 0.04000000 0.07000000 0.97000000 </y>
</NaturalCubicSpline>
</force_length_curve>
</Ligament>

User avatar
Luca Modenese
Posts: 43
Joined: Wed Jan 21, 2009 9:16 am

RE: Damper

Post by Luca Modenese » Wed Nov 03, 2010 11:05 am

Hi Anne,

I tried your xml code in OpenSim 2.2-b4 and I was wondering if there's any way of visualizing teh ligament in the same way of a muscle.
Do you have any suggestion?
Thanks in advance,

Luca

User avatar
Anne Schmitz
Posts: 76
Joined: Thu May 31, 2007 7:44 am

RE: Damper

Post by Anne Schmitz » Wed Nov 03, 2010 11:16 am

There is no way that I kjnow of now. I submitted it as a feature request.

POST REPLY