prescribed dof in forward dynamics

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

prescribed dof in forward dynamics

Post by Anne Schmitz » Mon Oct 04, 2010 3:32 pm

I have a knee model with contact. I would like to run a forward dynamic simulation by prescribed knee flexion and have the simulation predict the other degrees of freedom. How do I prescribe the motion of 1 dof in a forward dynamics simulation?

Thanks,

Anne Schmitz

User avatar
Ayman Habib
Posts: 2238
Joined: Fri Apr 01, 2005 12:24 pm

RE: prescribed dof in forward dynamics

Post by Ayman Habib » Tue Oct 05, 2010 3:42 pm

Hi Anne,

You can modify the model file (osim) by specifying that a coordinate is Prescribed and provide a function that describes its trajectory.

Good Luck,
-Ayman

User avatar
Shiuan-Lin Huang
Posts: 7
Joined: Mon Mar 03, 2008 7:18 pm

RE: prescribed dof in forward dynamics

Post by Shiuan-Lin Huang » Wed Feb 16, 2011 8:32 pm

Hi Ayman

Would you please show me how to specify the <prescribed_function> in .osim file?

I tried to input something like:
<prescribed_function>q= 15.526*t^2 + 2.8708*t - 0.2104</prescribed_function>

But it didn't work. Besides this, is there any tag that should be added to prescribe the motion of a doF?

Thanks!
Shiuan-Lin

User avatar
Ayman Habib
Posts: 2238
Joined: Fri Apr 01, 2005 12:24 pm

RE: prescribed dof in forward dynamics

Post by Ayman Habib » Fri Feb 18, 2011 11:37 am

Hi Shiuan-Lin,

The functions available are those that can be represented in XML (typically: Constant, Linear, Spline(s)). We plan to offer Symbolic functions in the future but this is not supported yet. These should be functions of time (x is time).

Hope this helps,
-Ayman

User avatar
Shiuan-Lin Huang
Posts: 7
Joined: Mon Mar 03, 2008 7:18 pm

RE: prescribed dof in forward dynamics

Post by Shiuan-Lin Huang » Fri Feb 18, 2011 8:10 pm

Thank you, Ayman. It works.
I copied the cubic spline function used in .osim,
and pasted experimental values as <y> values.
It works!
I really appreciate your help.

User avatar
Sina Porsa
Posts: 99
Joined: Thu Feb 03, 2011 7:21 pm

RE: prescribed dof in forward dynamics

Post by Sina Porsa » Sun May 29, 2011 9:28 pm

Hi Ayman
Can I use a spline to define a custom nonlinear passive torque actuator? e.g. the amount of torque which is applied to the joint is a non-linear function of joints angle.
Ragards,
Sina

User avatar
Ayman Habib
Posts: 2238
Joined: Fri Apr 01, 2005 12:24 pm

RE: prescribed dof in forward dynamics

Post by Ayman Habib » Tue May 31, 2011 10:54 am

Hi Sina,

Which kind of Actuator were you planning to use for this purpose? It's definitely possible to write your own (if that's what you mean by custom).

Please let me know if you need help proceeding in this direction.

Best regards,
-Ayman

User avatar
Sina Porsa
Posts: 99
Joined: Thu Feb 03, 2011 7:21 pm

RE: prescribed dof in forward dynamics

Post by Sina Porsa » Tue May 31, 2011 3:57 pm

Hi Ayman,
I want to use a non-linear function for "<CoordinateLimitForce>" and also "<BushingForce>".
It would be great if you could help me.
Regards,
Sina

POST REPLY