Search found 6 matches

by shayan moradkhani
Fri Aug 04, 2017 12:46 am
Forum: OpenSim
Topic: getForceAtTime
Replies: 14
Views: 2224

Re: getForceAtTime

hello, i am still struggling to get the force :cry: using body.PrescribedForce.getForceAtTime(1.0) says that returns zero if the three functions are not defined. according to the below code the functions are defined. (i didnt put all the lines to avoid complexity) body = foot1.getBodySet().get('foot...
by shayan moradkhani
Thu Aug 03, 2017 1:43 pm
Forum: OpenSim
Topic: coordinates
Replies: 1
Views: 516

coordinates

hello, i have a simple matlab code which loads the model and makes a free falling. clear all; import org.opensim.modeling.* foot1 = Model('C:\Users\shayan\Desktop\model-20170712T165116Z-001/foot1.osim'); s = foot1.initSystem(); manager = Manager(foot1); x0 = foot1.updCoordinateSet().get('y'); x0.set...
by shayan moradkhani
Mon Jul 24, 2017 11:53 am
Forum: OpenSim
Topic: Obtain CM position and velocity during a simulation
Replies: 9
Views: 1978

Re: Obtain CM position and velocity during a simulation

Last month, I asked about obtaining whole-body center of mass kinematics. This is in the context of running a forward simulation to evaluate the objective function for an optimization problem. I have one case where I only need to know the CM kinematics at the initial time and the final time. Ajay’s...
by shayan moradkhani
Thu Jul 13, 2017 1:14 am
Forum: OpenSim
Topic: simulation
Replies: 11
Views: 1319

Re: simulation

hi, i really appreciate your response. here is my code. it builds fine but when i open the .exe file it says program stopped working. #include <OpenSim/OpenSim.h> #include <cmath> using namespace OpenSim; using namespace SimTK; using namespace std; //=================================================...
by shayan moradkhani
Wed Jul 12, 2017 10:50 am
Forum: OpenSim
Topic: prescribedforce
Replies: 2
Views: 368

prescribedforce

hi, i am trying to create an externally applied force as: for 0-0.3 time of simulation the force is constant, from 0.3-1 the force follows a sine function and from 1-2 the force is a linear function. i wonder how can i use prescribed force to combine these three different force functions? or do i ha...
by shayan moradkhani
Sat May 06, 2017 1:55 am
Forum: OpenSim
Topic: Interface with other software
Replies: 1
Views: 204

Interface with other software

Hello
I have a model in Adams which is simulated based on torque motion, I would like to switch to opensim and simulate it based on muscle excitation
How can I do that?
Thanks