KULeuvenNeuromechanics / PredSim

Generate predictive simulations of human locomotion
MIT License
26 stars 46 forks source link

Add example 2D model #143

Closed Lars-DHondt-KUL closed 1 month ago

Lars-DHondt-KUL commented 1 month ago

Description

Added an example 2D model.

Motivation and Context

This model is useful for a quick test of new code, and for workshops/demos.

How Has This Been Tested?

I have used this model for over a year to test code or give demos.

Suggested tests for reviewers

In main.m, set [S] = initializeSettings('gait1018'); and S.subject.name = 'gait1018';, and check that the simulation starts.

VDB-Bram commented 1 month ago

Model tested as proposed. No issues with convergence. Only issue with automatically plotting the results; see attached figures. image image

Lars-DHondt-KUL commented 1 month ago

Adapting the plotting functions to manage 'all_coords' or 'muscles_r' when plotting models with different coords/muscles together needs a lot of implementation changes.

Since this does not break the actual simulations, I created issue #146 so we can update the plotting functions later.