Search found 20 matches
- Thu Jun 06, 2019 10:37 am
- Forum: OpenSim
- Topic: change mot file while adding external force
- Replies: 4
- Views: 103665
Re: change mot file while adding external force
If you want to make your own data, you will have to use something like Matlab or Excel to define the motion and force curves. Once you have the curves, you could edit the .mot file in Excel-- copying and pasting the data into the correct columns-- or in Matlab to generate a OpenSim TimesSeriesTable...
- Wed Jun 05, 2019 3:07 am
- Forum: OpenSim
- Topic: change mot file while adding external force
- Replies: 4
- Views: 103665
Re: change mot file while adding external force
Hi- You can edit the .mot file in a text editor and in Matlab. What editing are you trying to perform? It isn't clear from your description of what you are trying to do and with what files. -J Thanks for your response I know that i can edit .mot file in a text editor and in matlab but my main quest...
- Sun Jun 02, 2019 2:40 am
- Forum: OpenSim
- Topic: change mot file while adding external force
- Replies: 4
- Views: 103665
change mot file while adding external force
Hello
Is it possible to change .MOT file of default model while adding external force? ( I want to change .mot file of gait2392 while adding external force by Matlab and see the results of changing muscle forces)
also, I don't have any experimental data to create new .MOT file
Is it possible to change .MOT file of default model while adding external force? ( I want to change .mot file of gait2392 while adding external force by Matlab and see the results of changing muscle forces)
also, I don't have any experimental data to create new .MOT file
- Tue May 28, 2019 12:58 am
- Forum: OpenSim
- Topic: plot after apply external force to model
- Replies: 3
- Views: 475
Re: plot after apply external force to model
I added an external force on tibia_r body to gait2354 model of opensim. then applied a motion (subject01_walk1_states_degree.mot) to that model. after I plotted a diagram of knee_angle_r to time for model before and after of added external force but i didnt see any change in diagram. I want to know...
- Mon May 27, 2019 9:29 pm
- Forum: OpenSim
- Topic: plot after apply external force to model
- Replies: 3
- Views: 475
plot after apply external force to model
hello I added an external force on tibia_r body to gait2354 model of opensim. then applied a motion (subject01_walk1_states_degree.mot) to that model. after I plotted a diagram of knee_angle_r to time for model before and after of added external force but i didnt see any change in diagram. I want to...
- Wed May 22, 2019 6:55 pm
- Forum: OpenSim
- Topic: change angular joint displacement
- Replies: 2
- Views: 259
Re: change angular joint displacement
In what manner (GUI, programmatically, forward dynamics) do you want to change the angular displacement? Do you mean the generalized speed or angular displacement of a body? I want to change programmatically or changing in .xml or .trc or .mot files. I mean angular displacement of a body (for examp...
- Wed May 22, 2019 2:19 am
- Forum: OpenSim
- Topic: change angular joint displacement
- Replies: 2
- Views: 259
change angular joint displacement
hello everyone
I want to change angular displacement of default model of opensim (gait2354). can I do that? if yes how can I change?
I want to change angular displacement of default model of opensim (gait2354). can I do that? if yes how can I change?
- Mon Apr 22, 2019 2:50 pm
- Forum: OpenSim
- Topic: add external force in matlab
- Replies: 7
- Views: 1263
Re: add external force in matlab
would you please answer my question that how can I add another external forces simultaneously on tibia_r on different force points You can simply duplicate the code (with appropriate modifications) and specify the point of application using the setPointFunctions() method. See the following: - Docum...
- Fri Apr 19, 2019 2:33 pm
- Forum: OpenSim
- Topic: add external force in matlab
- Replies: 7
- Views: 1263
Re: add external force in matlab
The below code seems to work for me; import org.opensim.modeling.* model = Model('gait2354_simbody.osim'); body = model.getBodySet().get('tibia_r'); force = PrescribedForce('saeed',body); force.setForceFunctions(Constant(30), Constant(0), Constant(0)); model.addForce(force); model.finalizeConnectio...
- Wed Apr 17, 2019 9:45 am
- Forum: OpenSim
- Topic: add external force in matlab
- Replies: 7
- Views: 1263
Re: add external force in matlab
The below code seems to work for me; import org.opensim.modeling.* model = Model('gait2354_simbody.osim'); body = model.getBodySet().get('tibia_r'); force = PrescribedForce('saeed',body); force.setForceFunctions(Constant(30), Constant(0), Constant(0)); model.addForce(force); model.finalizeConnectio...