Search found 46 matches

by Adrian Lai
Sun Jun 03, 2018 8:54 pm
Forum: OpenSim
Topic: Obtaining reaction forces
Replies: 13
Views: 2673

Re: Obtaining reaction forces

How do you run simbody functions using the MATLAB API if I can't find it in the documentation?
by Adrian Lai
Fri Jun 01, 2018 6:06 am
Forum: OpenSim
Topic: Obtaining reaction forces
Replies: 13
Views: 2673

Re: Obtaining reaction forces

Could you clarify what you mean by "only the state values alone" and "through muscle force/activation alone"? I'm not sure I understand the distinction you're making. I'm currently running my own direct collocation code and harnessing the OpenSim API to do all my dynamics by giving it the states an...
by Adrian Lai
Tue May 22, 2018 3:47 pm
Forum: OpenSim
Topic: Obtaining reaction forces
Replies: 13
Views: 2673

Obtaining reaction forces

Hi all, I would like to get the reaction forces between two bodies at a weld joint using only the state values alone. The goal is to match the reaction forces with an external force through muscle force/activation alone. I know I need to use the function calcEquivalentSpatialForce(states,mobility fo...
by Adrian Lai
Thu Apr 12, 2018 10:08 am
Forum: OpenSim
Topic: Access Simbody functions like Optimizer through MATLAB API
Replies: 4
Views: 398

Re: Access Simbody functions like Optimizer through MATLAB API

Hi Chris, Thanks for the reply. I thought it may it the cause of my error when running CMC exclusively in MATLAB. See the code below. When I run my first instance "Tool2Use.run()", the CMC simulation fails, but if I print the setup file and then reopen it, and then run it, the simulation succeeds. T...
by Adrian Lai
Tue Apr 10, 2018 1:21 pm
Forum: OpenSim
Topic: Muscle Mass and Energetics in Simulations
Replies: 4
Views: 303

Re: Muscle Mass and Energetics in Simulations

Another paper of interest would be Ross and Wakeling (2016) Muscle shortening velocity depends on tissue inertia and level of activation during submaximal contractions.

http://rsbl.royalsocietypublishing.org/ ... 6/20151041
by Adrian Lai
Tue Apr 10, 2018 1:02 pm
Forum: OpenSim
Topic: Access Simbody functions like Optimizer through MATLAB API
Replies: 4
Views: 398

Access Simbody functions like Optimizer through MATLAB API

Hi all, I was wondering if it's possible to access Simbody functions like the Optimizer using the MATLAB API? I'm trying to run my CMC entirely through MATLAB but I can't seem to find the option where I can alter the optimizer options such as algorithm, max iteration, etc. Yet, these options appear ...
by Adrian Lai
Tue Jan 16, 2018 9:19 pm
Forum: OpenSim
Topic: Constraints violated when computing state derivatives
Replies: 17
Views: 3415

Re: Constraints violated when computing state derivatives

Just an update. My problem hasn't converged yet but I've fixed my constraints. I forgot to reformulate and recalculate my approximations in my Jacobian for the new constraints. It hasn't converged yet but I don't get errors when I perform the derivative check via IPOPT. I have another somewhat relat...
by Adrian Lai
Fri Jan 12, 2018 1:27 pm
Forum: OpenSim
Topic: Constraints violated when computing state derivatives
Replies: 17
Views: 3415

Re: Constraints violated when computing state derivatives

Hi Chris and Ross, I was able to call getQErr and get the model constraint errors for the location and orientations specified in the constraint set I set in the model file. I've added them as path constraints but it does add a considerable amount of extra path constraints to the optimisation (no. of...
by Adrian Lai
Thu Jan 11, 2018 2:44 pm
Forum: OpenSim
Topic: Constraints violated when computing state derivatives
Replies: 17
Views: 3415

Re: Constraints violated when computing state derivatives

Perfect! Thanks for the great explanation Chris.

I'll try it now and let you know if it works.

Adrian