Mass-spring model
- Francesca Gondoni
- Posts: 1
- Joined: Wed Sep 25, 2019 1:07 am
Mass-spring model
I'm trying to create a mass-spring model on OpenSim 4.0, how could I implement this model?
Tags:
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: Mass-spring model
You can create a body that is permitted to move in the y direction by constraining it with a slider joint:
https://simtk.org/api_docs/opensim/api_ ... Joint.html
and then attach a path spring between the ground and the body:
https://simtk.org/api_docs/opensim/api_ ... ml#details
https://simtk.org/api_docs/opensim/api_ ... pring.html
Examples:
https://github.com/opensim-org/opensim-core
https://github.com/opensim-org/opensim- ... m/Examples
https://github.com/simbody/simbody/tree/master/examples
https://simtk-confluence.stanford.edu/d ... +Tutorials
https://simtk.org/api_docs/opensim/api_ ... Joint.html
and then attach a path spring between the ground and the body:
https://simtk.org/api_docs/opensim/api_ ... ml#details
https://simtk.org/api_docs/opensim/api_ ... pring.html
Examples:
https://github.com/opensim-org/opensim-core
https://github.com/opensim-org/opensim- ... m/Examples
https://github.com/simbody/simbody/tree/master/examples
https://simtk-confluence.stanford.edu/d ... +Tutorials