updating Forces

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Ben Sonnabend
Posts: 5
Joined: Wed Apr 24, 2024 12:27 pm

updating Forces

Post by Ben Sonnabend » Wed Apr 24, 2024 12:33 pm

Hey
I'm new to OpenSim and this might be a dumb question but I want to simulate a system with changing forces over time depending on location and velocity and therefor need to constantly change the values of the forces. I am currently using a constant function and define the forces new after each simulation step. Is there any way to create a function that automatically changes over time?
Thank you for your help

Tags:

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: updating Forces

Post by Thomas Uchida » Wed Apr 24, 2024 9:02 pm

I want to simulate a system with changing forces over time depending on location and velocity
If the forces are functions of time where the functions are known before the simulation begins, you could try using some other type of Function (expand the "Inheritance diagram for OpenSim::Function" at the top of this page to see a list: https://simtk.org/api_docs/opensim/api_ ... ction.html). Depending on the details of what you are trying to do, you may also want to investigate the ExpressionBasedPointToPointForce (https://simtk.org/api_docs/opensim/api_ ... Force.html).

POST REPLY