Subject-specific hip with generic OpenSim model

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Olesya Klets
Posts: 4
Joined: Thu Dec 05, 2019 5:15 am

Subject-specific hip with generic OpenSim model

Post by Olesya Klets » Thu Apr 02, 2020 10:41 pm

Hello,

I would like to study the effect of hip implant on hip joint moments during generic gait from OpenSim. I have subject-specific (based on CT-scans) models of both femurs and pelvis before and after hip replacement surgery. I have height and body weight info about subject.
I would like to ask your advice how I could merge subject-specific femurs and pelvis with generic OpenSim model and how to import these .stl files to OpenSim.

Thank you in advance for help,
Olanthea

Tags:

User avatar
Ayman Habib
Posts: 2235
Joined: Fri Apr 01, 2005 12:24 pm

Re: Subject-specific hip with generic OpenSim model

Post by Ayman Habib » Fri Apr 03, 2020 9:38 am

Hello,

Replacing the bone mesh file in the model with your custom mesh file is quite straightforward:
- find the name of the bone mesh file as follows:
+ In the GUI select the bone,
+ Use Property Editor to see the file name used e.g. whatever.vtp
+ place your file custombone.stl in the same folder as model (or in Geometry folder underneath it)
+ use text editor to replace whatever.vtp in the model's .osim file with custombone.stl
+ reload the model.
Keep in mind, however, that meshes are used for visualization only, so the more fundamental question is how to change segment definitions (joints, muscle attachments etc.) to be subject specific. Do you have a plan for how to do that?

Best regards,
-Ayman

User avatar
Olesya Klets
Posts: 4
Joined: Thu Dec 05, 2019 5:15 am

Re: Subject-specific hip with generic OpenSim model

Post by Olesya Klets » Tue Apr 07, 2020 9:53 pm

Dear Ayman,

Thank you for helping me.

I've edited gait2392_simbody.osim and inserted to the same folder .stl files (pelvis, two femurs). When opening the modified .osim file, the model is not visualized. I was thinking maybe it is because the patient's bones are in much bigger scale then other bones and I set scaling to 0.1 but it still didn't help.
I've also copied these .stl files to Geometry folder and it didn't help.
Trying to find out where I made a mistake. Could you please help?

I will attach here the model so you could take a look at the code,

Thank you a lot in advance,
Olanthea

User avatar
Axel Koussou
Posts: 56
Joined: Mon Aug 10, 2020 12:07 am

Re: Subject-specific hip with generic OpenSim model

Post by Axel Koussou » Wed Oct 28, 2020 8:55 am

Hi Olesya,

I also would like to modify subject-specifically the bones of my OpenSim model. Since no answer was provided, I take the liberty of reviving this forum.
Have you finally succeed to visualize the modified model ?

Thanks in advance,

Regards

POST REPLY