Page 1 of 1

prescribed dof in forward dynamics

Posted: Mon Oct 04, 2010 3:32 pm
by ambaus
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

RE: prescribed dof in forward dynamics

Posted: Tue Oct 05, 2010 3:42 pm
by aymanh
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

RE: prescribed dof in forward dynamics

Posted: Wed Feb 16, 2011 8:32 pm
by hans14
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

RE: prescribed dof in forward dynamics

Posted: Fri Feb 18, 2011 11:37 am
by aymanh
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

RE: prescribed dof in forward dynamics

Posted: Fri Feb 18, 2011 8:10 pm
by hans14
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.

RE: prescribed dof in forward dynamics

Posted: Sun May 29, 2011 9:28 pm
by porsasina
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

RE: prescribed dof in forward dynamics

Posted: Tue May 31, 2011 10:54 am
by aymanh
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

RE: prescribed dof in forward dynamics

Posted: Tue May 31, 2011 3:57 pm
by porsasina
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