Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Updated cervical rhythm implmentation #25

Merged
merged 4 commits into from
Oct 3, 2024

Conversation

melund
Copy link
Member

@melund melund commented Sep 30, 2024

This pull request introduces updates to the thoracic model configuration, rhythm drivers. The most important changes include the addition of a flexible thorax model, adjustments to rhythm driver coefficients, and updates to documentation and default settings.

@Hamedshayestehpour I have fixed the problem you found with the Thoracic example not working with the rigid thorax.

This PR refactors the cervical rhythm link. When the link is enabled it now links the cervical rhythm to the entire spine (pelvis-T1 measure). This means that the link works both for the detailed and the rigid thorax. To accomplish this I needed to move the implementation to the "JointsCervical.any" file.

The coefficients for the rhythm links have also been changed to they are now given directly by the values from the 'excel' sheet where the rhythm was created. I still need to add more documentation on the rhythm to the AMMR. But that may come in future PR.

Thoracic Model Configuration:

  • Added a flexible thorax model with a full set of ligaments along the spine in Thoracic.main.any.

Rhythm Driver Adjustments:

  • Adjusted rhythm driver coefficients for lumbar-thoracic and cervical-thoracic links in JointsThorax.any. [1] [2] [3]
  • Introduced new rhythm drivers for cervical-thoracic links in JointsCervical.any.

…oracic model.

The cervical link driver now connects the cervical rhythm to the entire spine motion. This way it will also work even though the rigid thorax is used.

This commit also modfies the links rhythm coefficients so they are no longer recalculated as as ratios, but instead uses the values of the coefficient from excel sheet directly. This makes it easier for us to see where the values come from
@melund melund changed the title Updated cervical rhythm implmentation fix: Updated cervical rhythm implmentation Sep 30, 2024
@github-actions github-actions bot added the fix label Sep 30, 2024
@melund melund removed the request for review from divyaksh-chander September 30, 2024 16:55
@melund melund merged commit 2a1c023 into ammr4-beta Oct 3, 2024
26 of 27 checks passed
@melund melund deleted the update-thoracic-example branch October 3, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant