[38ba34]: / Application / Examples / KneeSimulator / UserDefinedSettings.any

Download this file

60 lines (47 with data), 1.7 kB

// Define prefix for output data
#define OutputFileNamePrefix "Setting_1"

// Set SAVE_H5 to 1 in order to save the output of the study to an h5 file in the Output folder, 0:Off
#define SAVE_H5 0

//Define to use FDK (0: off 1: on)
#ifndef USE_FDK
#define USE_FDK 1 
#endif

#ifndef USE_LIGAMENT_CALIBRATION
#define USE_LIGAMENT_CALIBRATION 1
#endif
//Contact pressure adopted from Marra et al 2015 DOI:10.1115/1.4029258 "This value provided a good trade-off between the amount of 
//penetration obtained and the numerical issues involved in solving contact between two surfaces with high stiffness" pg 6.
#ifndef DEF_CONTACT_PRESSURE_TIBIOFEMORAL
#define DEF_CONTACT_PRESSURE_TIBIOFEMORAL 9.3e9*5
#endif

#ifndef DEF_CONTACT_PRESSURE_PATELLOFEMORAL
#define DEF_CONTACT_PRESSURE_PATELLOFEMORAL 9.3e9*5
#endif

//Trial Specific Settings used in AnyOprSetForceDepKin (see manual for more information) 
#ifndef FDK_ForceTol
#define FDK_ForceTol 1e-4
#endif

#ifndef FDK_MaxNewtonStep
#define FDK_MaxNewtonStep 1e-2
#endif

#ifndef FDK_MaxIteration
#define FDK_MaxIteration 100
#endif

//Min&Max knee flexion the simulator is driven
#ifndef DEF_KNEE_FLEXION_MIN
#define DEF_KNEE_FLEXION_MIN 10
#endif

#ifndef DEF_KNEE_FLEXION_MAX
#define DEF_KNEE_FLEXION_MAX 60
#endif

//Min&Max axial hip loads applied to simulator
#ifndef DEF_HIP_AXIAL_LOAD_MIN
#define DEF_HIP_AXIAL_LOAD_MIN 200
#endif

#ifndef DEF_HIP_AXIAL_LOAD_MAX
#define DEF_HIP_AXIAL_LOAD_MAX 200
#endif

//Specimen-Specific Settings
#define FEMUR_MASS_RATIO 0.135
#define TIBIA_MASS_RATIO 0.0465

#include "Input/Ligament_Properties.any"