#format wiki
#language en

<<TableOfContents>>

= Target Outcome =

Partial FEBio xml input file that includes the geometrically related aspects of the model assembly.

= Prerequisites =

<<Include(Infrastructure/AuxiliarySoftware, "Infrastructure", 2, from="= Scripting & Numerical Analysis =", to="= Finite Element Analysis =")>>

== 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 [[https://simtk.org/scm/viewvc.php/utl/ModelAssembly/GeneralFeBioXML.py?root=openknee&view=log|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"/>
}}}