Page 1 of 1

No metaolic output from probe while running CMC

Posted: Sun Mar 29, 2015 1:14 pm
by julieedillon
Hi,

I was attempting to run CMC in the OpenSim 3.2 software on a model with an attached probe. The input files and output files all seem to be correct, but when i try to plot the metabolics with respect to time, a flat line appears.

I also tried to use the Analyze tool using a ProbeReporter in the Analysis Set.

I've attached the setup file that i've loaded for the analysis and the text for the CMC setup.

The CMC tool and Analyze tools are running, but there is no metabolic data coming from the probe.

Please let me know if you can help. Thanks!

-Julie Dillon

Re: No metaolic output from probe while running CMC

Posted: Sat Apr 25, 2015 9:18 am
by resodad
Julie,
There is a script that adds a metabolic probe to every muscle.

Also See the “Simulation-Based Design to Reduce Metabolic Cost” tutorial at:
http://simtk-confluence.stanford.edu:95 ... therModels

Download the metabolic example files from that location.
Extract the files and save the folder in the OpenSim installations folder\Models, e.g.
C:\OpenSim 3.2\Models\MetabolicsExample

Open the OpenSim GUI and open the model you want to add the metabolic probe to.
Select the scripts menu, run…,
navigate to the MetabolicsExample\gait10dof18musc_32\Scripts folder,
Run the addMetabolicProbe.py script.
The script requests a twitch ratio file, for 92-muscle full body models, select metabolicsSlowTwitchRatios_Gait2392.txt

The script saves a copy of the model with a _probed suffix.

If you open the .osim file in Notepad++ and search for probe, you can see that the script adds a probe for every muscle. You can adjust the probe properties in the OpenSim GUI if neded.

Add an analysis to your CMC setup file; copy-paste the code below:
<AnalysisSet name="Analyses">
<objects>
<ProbeReporter name="MetabolicsReporter">
<!--All properties of this object have their default values.-->
</ProbeReporter>
</objects>
<groups />
</AnalysisSet>
Run CMC
Plot the result

Cheers,
John