#acl +All:read Default #format wiki #language en <<TableOfContents>> = Target Outcome = Finite element mesh of the full knee OR compartments of interest, e.g. cruciate complex, patellofemoral joint, ready for model development: * node definitions * element definitions * node set definitions * element set definitions * surface set definitions = Prerequisites = <<Include(Infrastructure/AuxiliarySoftware, "Infrastructure", 2, from="= Scripting & Numerical Analysis =", to="= Finite Element Analysis =")>> == Previous Protocols == For more details, see [[Specifications/MeshGeneration]]. = Protocols = == Input == Finite element mesh of ALL tissues of interest (within the compartment or in the whole knee); in human readable format, e.g., Abaqus input (INP) file, XML file, or as open format binary files, e.g., MED file, including * node definitions (numbering and coordinates) * element definitions (numbering, element-specific node numbers and connectivity) * node set definitions (set name(s) and relevant node numbers) * element set definitions (set name(s) and relevant element numbers) * face definitions (numbering, face-specific node numbers and connectivity) * surface set definitions (set name(s) and relevant face numbers) == Overview == Run the script MedToFebio.py, which will convert mesh contents from .med files including groups (e.g. element, node, face sets) to FEBio model file. The script requires a Connectivity File as input (see [[Specifications/MeshGeneration]] for details on creating this file) == Scripted Procedure for Mesh Assembly == [[https://simtk.org/svn/openknee/utl/ModelAssembly/MedToFebio.py|This]] python script will read the xml file with the connectivity of several med files in the same coordinate system including groups of nodes, elements, faces, etc. It will then create an FEBio model file (.feb, version 2.5) containing all the groups, and the ties/contacts as specified in the Connectivity File. The directions for running the script from Salome are identical to those for running the script StlToMed.py, as described in [[Specifications/MeshGeneration]]. The script uses the same connectivity file as well. == Output == * Assembled finite element mesh of the compartment OR the complete knee with all relevant tissues; in FEBio model file (.feb, version 2.5) including: * node definitions (numbering and coordinates) * element definitions (numbering, element-specific node numbers and connectivity) * node set definitions (set name(s) and relevant node numbers) * element set definitions (set name(s) and relevant element numbers) * face definitions (numbering, face-specific node numbers and connectivity) * surface set definitions (set name(s) and relevant face numbers)