Differences between revisions 4 and 5
Revision 4 as of 2020-06-18 14:37:51
Size: 3133
Editor: snehalkc
Comment:
Revision 5 as of 2020-06-18 14:39:31
Size: 3138
Editor: snehalkc
Comment:
Deletions are marked like this. Additions are marked like this.
Line 62: Line 62:
=== Checklist for updating model component === === Building model with updated model component ===

This page provides tips to:

  1. run scripts based on the OS.
  2. troubleshoot issues in model development and model convergence.
  3. troubleshoot issues due to software packages.


Running python scripts for mesh generation and template model generation

Usage instructions:

Linux

Windows

  • • Need Salome 8.3 (to run MedToFebio.py, older versions do not work) • However, if Salome 8.3 is used to correct ties and contacts in MED files then the exported version is MED 3.3.1 which will not be compatible with Salome 7.8 (required for Linux). • In that case either use Salome 7.8 or Salome 9.2 (or above) to correct MED files and save in MED version 3.2. • To run StlToMed.py and MedToFebio.py from Salome 8.3,

    1. Open command prompt
    2. navigate to Salome directory,
    3. type: >run_salome.bat -t --pinter path\StlToMed.py OR path\MedToFebio.py args:path\ Connectivity.xml

Both

  • • In connectivity.xml file all .stl locations have to be pointed to the directory they are located in.

Script specific

MedToFebio.py

  • • MED files have to be in version 3.2. • Does not work well on Windows

Note: Febio 2.7 works if pre-strain is not used, otherwise use Febio 2.8(or above).

  • Preferably, use Febio version 2.9 as it handles contacts better

OS preference:

  • • Segmentation/geometry generation (Slicer, Meshlab): Windows/Linux

    StltoMed.py (Salome): Linux • Fix contacts and ties(Salome): Linux, Windows (have to export MED files in v3.2) MedtoFebio.py (Salome): Linux, Windows • Pick Landmarks (Meshlab): Windows/ Linux • Customization: Windows/Linux • Febio: Windows/Linux (edit geometry file location in Febio_custom.feb)


Installing python packages in Salome

Windows

  1. If certain python libraries are not installed in Salome’s Python installation– go to the folder where python is installed in the Salome directory – open power shell – type – .\python -m pip install <library>

  2. Linking external packages does not usually work well in windows.

Linux

https://simtk.org/plugins/moinmoin/multis/Infrastructure/AuxiliarySoftware/Python_with_SALOME


Building model with updated model component

  1. Update component (update MED files)
  2. Transfer MED groups (using python script)
  3. convert MED files to version 3.2 (Salome 9.2 and above)
  4. Update connectivity.xml (if needed)
  5. MED2FEbio.py
  6. Customize
  7. run in febio 2.9


Model convergence troubleshooting

  1. reduce mesh size
  2. adjust mcl-msn_m ties spring stiffness
  3. adjust prestrain values
  4. mci-mns_m contact may need to be added in some cases
  5. check surface and volume mesh quality before template model generation
  6. individually turn off contacts

for further details go to, https://simtk.org/plugins/moinmoin/openknee/Specifications/ModelTroubleshooting

Specifications/TipsAndTricks (last edited 2020-06-18 14:39:31 by snehalkc)