Search found 99 matches

by Sina Porsa
Wed Sep 12, 2012 5:20 pm
Forum: OpenSim
Topic: Running Opensim parallel
Replies: 17
Views: 1473

Re: Running Opensim parallel

To remove the controller :
OsimModel_00.removeController(muscleController);
by Sina Porsa
Wed Sep 12, 2012 12:32 am
Forum: OpenSim
Topic: Running Opensim parallel
Replies: 17
Views: 1473

Re: Running Opensim parallel

Hi Tom I had the same problem with destructors. In my research, I am trying to add a new controller to the model at each iteration to generate a movement. I am using 8 cpus and i solved the problem as below: Model OsimModel_00 ("2D9M.osim"); Model OsimModel_01 ("2D9M.osim"); Model OsimModel_02 ("2D9...
by Sina Porsa
Sun Aug 05, 2012 9:10 pm
Forum: OpenSim
Topic: Running Opensim parallel
Replies: 17
Views: 1473

Re: Running Opensim parallel

Hi Sherm, I have implemented your suggestion but I do still have the same problem of memory leak. As you can see in my previous post, at each iteration I make so many new objects such as PiecewiseLinearFunction, PrescribedController, system, integrator, manager , etc. I was wondering maybe these cla...
by Sina Porsa
Tue Jul 31, 2012 6:35 pm
Forum: OpenSim
Topic: Running Opensim parallel
Replies: 17
Views: 1473

Re: Running Opensim parallel

Hi Sherm, I have another problem with this parallel executor. Memory leakage! Here is what I do in the execute function: void execute(int index) { Model myModel = loadedModel; // loaded model is a global variable. I want to load the model from an *.OSIM file just once. //creat a controller Prescribe...
by Sina Porsa
Wed Jul 25, 2012 4:40 pm
Forum: OpenSim
Topic: Running Opensim parallel
Replies: 17
Views: 1473

Re: Running Opensim parallel

Thanks.
:)
by Sina Porsa
Mon Jul 23, 2012 9:01 pm
Forum: OpenSim
Topic: Running Opensim parallel
Replies: 17
Views: 1473

Re: Running Opensim parallel

Hi Sherm and thanks for your reply; It seems that this ParallelExecuter can help me. But I do have some problems, maybe because I am not an expert of C++ and API. It is not clear for me how can I define a new Task class. To be more clear, if I let's consider this: i know I should have sth like this:...
by Sina Porsa
Sun Jul 22, 2012 6:42 pm
Forum: OpenSim
Topic: Running Opensim parallel
Replies: 17
Views: 1473

Re: Running Opensim parallel

Hi Ayman, I have the same question. I was wondering if I can use OpenMP to perform independent forward dynamics in parallel. I want to find the optimum excitation pattern in muscles which minimizes/maximizes my cost function. here is a brief description of my algorithm: // load osim model // while (...
by Sina Porsa
Tue Jul 03, 2012 5:54 pm
Forum: OpenSim
Topic: A problem with forward Dynamics (API)
Replies: 0
Views: 312

A problem with forward Dynamics (API)

Hi all; I have modified the TugOfWar example in this code and I have a problem with that. This code (attached to the end of this post) accepts a 2D array as an input and extracts muscle excitation patterns from this array to perform a forward dynamic (FD) analysis. The problem is that it only can pe...
by Sina Porsa
Tue Jun 12, 2012 7:12 pm
Forum: OpenSim
Topic: Is there any way to add a new state to a system?
Replies: 0
Views: 105

Is there any way to add a new state to a system?

Hi everyone; I was wondering if I can add a new state into a model so that I can integrate it's ODE using Forward Dynamics? Lets say my system has 5 states (x1 to x5). SIMTK generates the ODE s and we can integrate them using FD (forward dynamics) I want to add a new state (x6) to this system and I ...
by Sina Porsa
Tue Jun 05, 2012 6:17 pm
Forum: OpenSim
Topic: Define the initial muscle states for FD (API)
Replies: 5
Views: 530

Re: Define the initial muscle states for FD (API)

Hi Ayman and thanks for your help. I just found out the problem, I was initializing the muscle states after initializing the system. Thanks for your helps. Your last post popped a new question into my mind. What is the difference between these two: void Model::equilibrateMuscles void Model::computeE...