Erratic hybrid muscle wrapping around ellipsoid

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Emiko Hourston
Posts: 3
Joined: Wed Jan 10, 2024 2:58 pm

Erratic hybrid muscle wrapping around ellipsoid

Post by Emiko Hourston » Fri Feb 09, 2024 5:04 pm

Cross-posted on github https://github.com/opensim-org/opensim-gui/issues/1484

Hello, I'm having issues with the hybrid muscle wrapping around ellipsoids. I've tried midpoint & axial wrapping methods as advised by the docs, and I understand that muscle wrapping (particularly around ellipsoids) is an ongoing issue. Any suggestions on how to fix erratic muscle behaviour with hybrid wrapping? Or if this particular problem hasn't yet been resolved, is there a workaround that can help with the discontinuities?

Photos are in the linked github post.

Thanks for the help

Tags:

User avatar
John Davis
Posts: 59
Joined: Mon Aug 26, 2019 7:42 am

Re: Erratic hybrid muscle wrapping around ellipsoid

Post by John Davis » Sun Feb 11, 2024 12:13 pm

In the images, I noticed that the troublesome muscle appears to pass through a torus wrapping surface too. I've found that those torus wrapping surfaces can cause exactly this kind of "jumping" or "falling off" behavior on other wrapping surfaces. Try replacing the torus with a via point (located at the center of the torus) instead--does the muscle still jump around on the ellipse?

User avatar
Emiko Hourston
Posts: 3
Joined: Wed Jan 10, 2024 2:58 pm

Re: Erratic hybrid muscle wrapping around ellipsoid

Post by Emiko Hourston » Tue Feb 13, 2024 12:24 pm

Hi, thanks for the suggestion. When (a) removing the torus wrapping or (b) removing the torus wrapping and adding a via point at or near the torus centroid, the motion is smooth but the muscle seems to duplicate itself (ie. there are two lines of action from the insertion points). Please see attached images. Any ideas why this may be? Thanks.
Attachments
via_pt.png
case (b)
via_pt.png (440.89 KiB) Viewed 316 times
no_via_pt.png
case (a)
no_via_pt.png (478.8 KiB) Viewed 316 times

User avatar
Emiko Hourston
Posts: 3
Joined: Wed Jan 10, 2024 2:58 pm

Re: Erratic hybrid muscle wrapping around ellipsoid

Post by Emiko Hourston » Wed Feb 14, 2024 9:50 am

Hi, nevermind my last response. Reran the sims and wrapping issue was sort of solved two ways: (1) as you suggested, switching to a via point, and (2) moving the torus. Although the via point solved the muscle jumping, I noticed the muscle moment arms were zero for several of the instances where it should have been non-zero. Moving the torus produced moment arms closer to the expected values.

I guess the question remains, is there another workaround aside from the via point and guess/check torus placement that could mitigate jumpy muscle behaviour?

Thanks for the help.

User avatar
John Davis
Posts: 59
Joined: Mon Aug 26, 2019 7:42 am

Re: Erratic hybrid muscle wrapping around ellipsoid

Post by John Davis » Wed Feb 14, 2024 12:57 pm

Two things come to mind:

First, I've found that I shouldn't always trust the visualizer--I've seen those 'double muscle' bugs sometimes and they don't always reflect actual errors in the wrapping. Checking the moment arm in the plot tool will sometimes show the wrapping is working just fine (though if yours is showing zero values, that is definitely not fine!).

Second, when a muscle jumps around or falls off a wrapping surface, one cause can be a via point (or the origin point or a departure point from where the muscle wraps on a previous surface) falling inside the wrapping surface geometry. This github bug shows how this can happen after scaling, but it might also happen when a via point is on another segment and that segment moves relative to the wrapping surface.

POST REPLY