Temporal aspect of AnyForce

Hi Ali,

I think the problem in the model comes with the way you are modelling the force in the wire. In this way, you are not accounting for the hysteresis in the wire. Shifting the temporal aspect might not be a good idea since it will change for different trials based on the speed.

Instead, I would suggest that you make two interpolation functions, one for the shortening of the wire and the other for the lengthening of the wire. You can also do it, like you have done, by making two polynomial functions. However, an interpolation function would approximate the curve better than a polynomial function. Please read about AnyFunInterpol in the reference manual. AnyFunInterpol needs a parameter value that is monotonically increasing and a unique dependent variable for each parameter value. So, you would need to make two curves. One limitation with interpolation is that you would need some extra data points when you reach the limiting length. You want to be sure that the length of the wire during your trial is within the range of the data you have provided for interpolation.

There is also a previous post that is similar to the problem you want to model. The idea is to use the velocity of AnyKinPLine measure to understand if the wire is shortening or lengthening, and then use the appropriate interpolation function through iffun.

Hopefully, this helps.

Best regards,
Dave