Contents
Target Outcome
Partial FEBio xml input file that includes the geometrically related aspects of the model assembly.
Prerequisites
Infrastructure
Python. Python is a programming language (GPL compatible license, http://www.python.org/). Python is the default scripting environment for Open Knee(s); for more details, please refer to Infrastructure/ScriptingEnvironment.
SciPy. SciPy is a Python based open-source software for mathematics, science, and engineering (BSD license, see http://www.scipy.org/).
Spyder. Spyder is an interactive development environment for Python with advanced editing, interactive testing, debugging and introspection features (MIT license, see http://code.google.com/p/spyderlib/).
npTDMS. npTDMS is Cross-platform, NumPy based module for reading TDMS files produced by LabVIEW. TDMS files are the binary files used for the robotic testing raw data. (LGPL license, see https://pypi.python.org/pypi/npTDMS/).
Previous Protocols
For more details, see Specifications/MeshAssembly.
Protocols
Input
- Finite element meshes of each part of the knee and relevant tissues to be modeled in MED file format as generated in the previous protocol
- Mesh connectivity file used in previous protocol
Procedures
Once again using the python interface of SALOME, select File > Load Script. Browse to the file and open GeneralFeBioXML.py.
This script will read the MED files and connectivity and produce the Material, Geometry, and Contact sections completely. The Boundary section will be written but all rigid body will have all degrees of freedom removed. However it should be simple enough for someone versed in FEBio to modify these as needed.
Output
Partial FEBio xml input file that includes the geometrically related aspects of the model assembly.
These part can easily be added into a template FEBio input file as:
<Material from="Output.feb"/> <Geometry from="Output.feb"/> <Boundary from="Output.feb"/> <Contact from= "Output.feb"/>