[bfdf16]: / Body / AAUHuman / LegTLEM2.1 / MusMdl3E_2.any

Download this file

3887 lines (3477 with data), 296.7 kB

/**^This folder implements the muscle models for the TLEM 1 model.

Anatomical muscles from the TLEM data set are in many cases split into
several branches (elements). Strength parameters are split between the branches,
typically by uniform split.
*/


AnyFolder DefaultMusPar = {
  AnyVar Jt ??= DesignVar(3.0); ///< Shape parameter for the tendon stiffness
  AnyVar Jpe ??= DesignVar(3.0); ///< Shape parameter for the parallel stiffness
  AnyVar PEFactor ??= DesignVar(5); ///< Parameter for influence of parallel stiffness 
  AnyVar SpecificStrength = 90; ///< Specific strength of the muscle (N/cm^2)
  //Klein Horsman used a PCSAfactor of 27 N/cm^2 this is now changed to 90 N/cm^2 to be consistent with the whole body
  AnyVar PCSAfactor = SpecificStrength * ......HumanModel.StrengthParameters.StrengthIndexLeg; // = PCSAfactor in N/cm^2 , the PCSA itself is given in cm^2 so F0 is in Newton`s.
};

AnyVar StrengthScaleShank = .StrengthScaling.Shank.StrengthScale;
AnyVar StrengthScaleThigh = .StrengthScaling.Thigh.StrengthScale;
AnyVar StrengthScalePelvis = .Scaling.StrengthScaling.Pelvis.StrengthScale;
AnyVar FiberLengthScaleShank = .FiberLengthScaling.Shank.FiberLengthScale;
AnyVar FiberLengthScaleThigh = .FiberLengthScaling.Thigh.FiberLengthScale;
AnyVar FiberLengthScalePelvis = .Scaling.FiberLengthScaling.Pelvis.FiberLengthScale;




/////////////////////////////////////////////////
//     AdductorBrevisProximal (2 elements)     //
/////////////////////////////////////////////////
AnyMuscleModel3E AdductorBrevisProximal1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorBrevisProximal;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.AdductorBrevisProximal1Par.Lf0 +.AdductorBrevisProximal2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorBrevisProximal2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorBrevisProximal;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.AdductorBrevisProximal1Par.Lf0 +.AdductorBrevisProximal2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////////
//     AdductorBrevisMid (2 elements)     //
////////////////////////////////////////////
AnyMuscleModel3E AdductorBrevisMid1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorBrevisMid;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.AdductorBrevisMid1Par.Lf0 +.AdductorBrevisMid2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorBrevisMid2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorBrevisMid;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.AdductorBrevisMid1Par.Lf0 +.AdductorBrevisMid2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




///////////////////////////////////////////////
//     AdductorBrevisDistal (2 elements)     //
///////////////////////////////////////////////
AnyMuscleModel3E AdductorBrevisDistal1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorBrevisDistal;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.AdductorBrevisDistal1Par.Lf0 +.AdductorBrevisDistal2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorBrevisDistal2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorBrevisDistal;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.AdductorBrevisDistal1Par.Lf0 +.AdductorBrevisDistal2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////
//     AdductorLongus (6 elements)     //
/////////////////////////////////////////
AnyMuscleModel3E AdductorLongus1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorLongus;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorLongus1Par.Lf0 +.AdductorLongus2Par.Lf0 +.AdductorLongus3Par.Lf0 +.AdductorLongus4Par.Lf0 +.AdductorLongus5Par.Lf0 +.AdductorLongus6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorLongus2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorLongus;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorLongus1Par.Lf0 +.AdductorLongus2Par.Lf0 +.AdductorLongus3Par.Lf0 +.AdductorLongus4Par.Lf0 +.AdductorLongus5Par.Lf0 +.AdductorLongus6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorLongus3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorLongus;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorLongus1Par.Lf0 +.AdductorLongus2Par.Lf0 +.AdductorLongus3Par.Lf0 +.AdductorLongus4Par.Lf0 +.AdductorLongus5Par.Lf0 +.AdductorLongus6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorLongus4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorLongus;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorLongus1Par.Lf0 +.AdductorLongus2Par.Lf0 +.AdductorLongus3Par.Lf0 +.AdductorLongus4Par.Lf0 +.AdductorLongus5Par.Lf0 +.AdductorLongus6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorLongus5Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorLongus;
  AnyIntVar MuscleElemNo = 5; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorLongus1Par.Lf0 +.AdductorLongus2Par.Lf0 +.AdductorLongus3Par.Lf0 +.AdductorLongus4Par.Lf0 +.AdductorLongus5Par.Lf0 +.AdductorLongus6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorLongus6Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorLongus;
  AnyIntVar MuscleElemNo = 6; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorLongus1Par.Lf0 +.AdductorLongus2Par.Lf0 +.AdductorLongus3Par.Lf0 +.AdductorLongus4Par.Lf0 +.AdductorLongus5Par.Lf0 +.AdductorLongus6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




///////////////////////////////////////////////
//     AdductorMagnusDistal (3 elements)     //
///////////////////////////////////////////////
AnyMuscleModel3E AdductorMagnusDistal1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusDistal;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusDistal1Par.Lf0 +.AdductorMagnusDistal2Par.Lf0 +.AdductorMagnusDistal3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorMagnusDistal2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusDistal;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusDistal1Par.Lf0 +.AdductorMagnusDistal2Par.Lf0 +.AdductorMagnusDistal3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorMagnusDistal3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusDistal;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusDistal1Par.Lf0 +.AdductorMagnusDistal2Par.Lf0 +.AdductorMagnusDistal3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////////
//     AdductorMagnusMid (6 elements)     //
////////////////////////////////////////////
AnyMuscleModel3E AdductorMagnusMid1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusMid;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusMid1Par.Lf0 +.AdductorMagnusMid2Par.Lf0 +.AdductorMagnusMid3Par.Lf0 +.AdductorMagnusMid4Par.Lf0 +.AdductorMagnusMid5Par.Lf0 +.AdductorMagnusMid6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorMagnusMid2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusMid;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusMid1Par.Lf0 +.AdductorMagnusMid2Par.Lf0 +.AdductorMagnusMid3Par.Lf0 +.AdductorMagnusMid4Par.Lf0 +.AdductorMagnusMid5Par.Lf0 +.AdductorMagnusMid6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorMagnusMid3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusMid;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusMid1Par.Lf0 +.AdductorMagnusMid2Par.Lf0 +.AdductorMagnusMid3Par.Lf0 +.AdductorMagnusMid4Par.Lf0 +.AdductorMagnusMid5Par.Lf0 +.AdductorMagnusMid6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorMagnusMid4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusMid;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusMid1Par.Lf0 +.AdductorMagnusMid2Par.Lf0 +.AdductorMagnusMid3Par.Lf0 +.AdductorMagnusMid4Par.Lf0 +.AdductorMagnusMid5Par.Lf0 +.AdductorMagnusMid6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorMagnusMid5Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusMid;
  AnyIntVar MuscleElemNo = 5; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusMid1Par.Lf0 +.AdductorMagnusMid2Par.Lf0 +.AdductorMagnusMid3Par.Lf0 +.AdductorMagnusMid4Par.Lf0 +.AdductorMagnusMid5Par.Lf0 +.AdductorMagnusMid6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorMagnusMid6Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusMid;
  AnyIntVar MuscleElemNo = 6; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusMid1Par.Lf0 +.AdductorMagnusMid2Par.Lf0 +.AdductorMagnusMid3Par.Lf0 +.AdductorMagnusMid4Par.Lf0 +.AdductorMagnusMid5Par.Lf0 +.AdductorMagnusMid6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////////////
//     AdductorMagnusProximal (4 elements)     //
/////////////////////////////////////////////////
AnyMuscleModel3E AdductorMagnusProximal1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusProximal;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusProximal1Par.Lf0 +.AdductorMagnusProximal2Par.Lf0 +.AdductorMagnusProximal3Par.Lf0 +.AdductorMagnusProximal4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorMagnusProximal2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusProximal;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusProximal1Par.Lf0 +.AdductorMagnusProximal2Par.Lf0 +.AdductorMagnusProximal3Par.Lf0 +.AdductorMagnusProximal4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorMagnusProximal3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusProximal;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusProximal1Par.Lf0 +.AdductorMagnusProximal2Par.Lf0 +.AdductorMagnusProximal3Par.Lf0 +.AdductorMagnusProximal4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E AdductorMagnusProximal4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.AdductorMagnusProximal;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.AdductorMagnusProximal1Par.Lf0 +.AdductorMagnusProximal2Par.Lf0 +.AdductorMagnusProximal3Par.Lf0 +.AdductorMagnusProximal4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




///////////////////////////////////////////////////
//     BicepsFemorisCaputLongum (1 element )     //
///////////////////////////////////////////////////
AnyMuscleModel3E BicepsFemorisCaputLongum1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.BicepsFemorisCaputLongum;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




//////////////////////////////////////////////////
//     BicepsFemorisCaputBreve (3 elements)     //
//////////////////////////////////////////////////
AnyMuscleModel3E BicepsFemorisCaputBreve1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.BicepsFemorisCaputBreve;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.BicepsFemorisCaputBreve1Par.Lf0 +.BicepsFemorisCaputBreve2Par.Lf0 +.BicepsFemorisCaputBreve3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E BicepsFemorisCaputBreve2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.BicepsFemorisCaputBreve;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.BicepsFemorisCaputBreve1Par.Lf0 +.BicepsFemorisCaputBreve2Par.Lf0 +.BicepsFemorisCaputBreve3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E BicepsFemorisCaputBreve3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.BicepsFemorisCaputBreve;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.BicepsFemorisCaputBreve1Par.Lf0 +.BicepsFemorisCaputBreve2Par.Lf0 +.BicepsFemorisCaputBreve3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




//////////////////////////////////////////////////
//     ExtensorDigitorumLongus (4 elements)     //
//////////////////////////////////////////////////
AnyMuscleModel3E ExtensorDigitorumLongus1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ExtensorDigitorumLongus;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.ExtensorDigitorumLongus1Par.Lf0 +.ExtensorDigitorumLongus2Par.Lf0 +.ExtensorDigitorumLongus3Par.Lf0 +.ExtensorDigitorumLongus4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ExtensorDigitorumLongus2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ExtensorDigitorumLongus;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.ExtensorDigitorumLongus1Par.Lf0 +.ExtensorDigitorumLongus2Par.Lf0 +.ExtensorDigitorumLongus3Par.Lf0 +.ExtensorDigitorumLongus4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ExtensorDigitorumLongus3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ExtensorDigitorumLongus;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.ExtensorDigitorumLongus1Par.Lf0 +.ExtensorDigitorumLongus2Par.Lf0 +.ExtensorDigitorumLongus3Par.Lf0 +.ExtensorDigitorumLongus4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ExtensorDigitorumLongus4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ExtensorDigitorumLongus;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.ExtensorDigitorumLongus1Par.Lf0 +.ExtensorDigitorumLongus2Par.Lf0 +.ExtensorDigitorumLongus3Par.Lf0 +.ExtensorDigitorumLongus4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////////////
//     ExtensorHallucisLongus (3 elements)     //
/////////////////////////////////////////////////
AnyMuscleModel3E ExtensorHallucisLongus1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ExtensorHallucisLongus;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.ExtensorHallucisLongus1Par.Lf0 +.ExtensorHallucisLongus2Par.Lf0 +.ExtensorHallucisLongus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ExtensorHallucisLongus2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ExtensorHallucisLongus;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.ExtensorHallucisLongus1Par.Lf0 +.ExtensorHallucisLongus2Par.Lf0 +.ExtensorHallucisLongus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ExtensorHallucisLongus3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ExtensorHallucisLongus;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.ExtensorHallucisLongus1Par.Lf0 +.ExtensorHallucisLongus2Par.Lf0 +.ExtensorHallucisLongus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////////////
//     FlexorDigitorumLongus (4 elements)     //
////////////////////////////////////////////////
AnyMuscleModel3E FlexorDigitorumLongus1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.FlexorDigitorumLongus;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.FlexorDigitorumLongus1Par.Lf0 +.FlexorDigitorumLongus2Par.Lf0 +.FlexorDigitorumLongus3Par.Lf0 +.FlexorDigitorumLongus4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E FlexorDigitorumLongus2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.FlexorDigitorumLongus;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.FlexorDigitorumLongus1Par.Lf0 +.FlexorDigitorumLongus2Par.Lf0 +.FlexorDigitorumLongus3Par.Lf0 +.FlexorDigitorumLongus4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E FlexorDigitorumLongus3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.FlexorDigitorumLongus;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.FlexorDigitorumLongus1Par.Lf0 +.FlexorDigitorumLongus2Par.Lf0 +.FlexorDigitorumLongus3Par.Lf0 +.FlexorDigitorumLongus4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E FlexorDigitorumLongus4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.FlexorDigitorumLongus;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.FlexorDigitorumLongus1Par.Lf0 +.FlexorDigitorumLongus2Par.Lf0 +.FlexorDigitorumLongus3Par.Lf0 +.FlexorDigitorumLongus4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




///////////////////////////////////////////////
//     FlexorHallucisLongus (3 elements)     //
///////////////////////////////////////////////
AnyMuscleModel3E FlexorHallucisLongus1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.FlexorHallucisLongus;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.FlexorHallucisLongus1Par.Lf0 +.FlexorHallucisLongus2Par.Lf0 +.FlexorHallucisLongus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E FlexorHallucisLongus2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.FlexorHallucisLongus;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.FlexorHallucisLongus1Par.Lf0 +.FlexorHallucisLongus2Par.Lf0 +.FlexorHallucisLongus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E FlexorHallucisLongus3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.FlexorHallucisLongus;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.FlexorHallucisLongus1Par.Lf0 +.FlexorHallucisLongus2Par.Lf0 +.FlexorHallucisLongus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////////////
//     GastrocnemiusLateralis (1 element )     //
/////////////////////////////////////////////////
AnyMuscleModel3E GastrocnemiusLateralis1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GastrocnemiusLateralis;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////////////
//     GastrocnemiusMedialis (1 element )     //
////////////////////////////////////////////////
AnyMuscleModel3E GastrocnemiusMedialis1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GastrocnemiusMedialis;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




///////////////////////////////////////////
//     GemellusInferior (1 element )     //
///////////////////////////////////////////
AnyMuscleModel3E GemellusInferior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GemellusInferior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




///////////////////////////////////////////
//     GemellusSuperior (1 element )     //
///////////////////////////////////////////
AnyMuscleModel3E GemellusSuperior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GemellusSuperior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////////////
//     GluteusMaximusSuperior (6 elements)     //
/////////////////////////////////////////////////
AnyMuscleModel3E GluteusMaximusSuperior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMaximusSuperior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMaximusSuperior1Par.Lf0 +.GluteusMaximusSuperior2Par.Lf0 +.GluteusMaximusSuperior3Par.Lf0 +.GluteusMaximusSuperior4Par.Lf0 +.GluteusMaximusSuperior5Par.Lf0 +.GluteusMaximusSuperior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMaximusSuperior2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMaximusSuperior;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMaximusSuperior1Par.Lf0 +.GluteusMaximusSuperior2Par.Lf0 +.GluteusMaximusSuperior3Par.Lf0 +.GluteusMaximusSuperior4Par.Lf0 +.GluteusMaximusSuperior5Par.Lf0 +.GluteusMaximusSuperior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMaximusSuperior3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMaximusSuperior;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMaximusSuperior1Par.Lf0 +.GluteusMaximusSuperior2Par.Lf0 +.GluteusMaximusSuperior3Par.Lf0 +.GluteusMaximusSuperior4Par.Lf0 +.GluteusMaximusSuperior5Par.Lf0 +.GluteusMaximusSuperior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMaximusSuperior4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMaximusSuperior;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMaximusSuperior1Par.Lf0 +.GluteusMaximusSuperior2Par.Lf0 +.GluteusMaximusSuperior3Par.Lf0 +.GluteusMaximusSuperior4Par.Lf0 +.GluteusMaximusSuperior5Par.Lf0 +.GluteusMaximusSuperior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMaximusSuperior5Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMaximusSuperior;
  AnyIntVar MuscleElemNo = 5; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMaximusSuperior1Par.Lf0 +.GluteusMaximusSuperior2Par.Lf0 +.GluteusMaximusSuperior3Par.Lf0 +.GluteusMaximusSuperior4Par.Lf0 +.GluteusMaximusSuperior5Par.Lf0 +.GluteusMaximusSuperior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMaximusSuperior6Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMaximusSuperior;
  AnyIntVar MuscleElemNo = 6; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMaximusSuperior1Par.Lf0 +.GluteusMaximusSuperior2Par.Lf0 +.GluteusMaximusSuperior3Par.Lf0 +.GluteusMaximusSuperior4Par.Lf0 +.GluteusMaximusSuperior5Par.Lf0 +.GluteusMaximusSuperior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////////////
//     GluteusMaximusInferior (6 elements)     //
/////////////////////////////////////////////////
AnyMuscleModel3E GluteusMaximusInferior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMaximusInferior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMaximusInferior1Par.Lf0 +.GluteusMaximusInferior2Par.Lf0 +.GluteusMaximusInferior3Par.Lf0 +.GluteusMaximusInferior4Par.Lf0 +.GluteusMaximusInferior5Par.Lf0 +.GluteusMaximusInferior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMaximusInferior2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMaximusInferior;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMaximusInferior1Par.Lf0 +.GluteusMaximusInferior2Par.Lf0 +.GluteusMaximusInferior3Par.Lf0 +.GluteusMaximusInferior4Par.Lf0 +.GluteusMaximusInferior5Par.Lf0 +.GluteusMaximusInferior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMaximusInferior3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMaximusInferior;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMaximusInferior1Par.Lf0 +.GluteusMaximusInferior2Par.Lf0 +.GluteusMaximusInferior3Par.Lf0 +.GluteusMaximusInferior4Par.Lf0 +.GluteusMaximusInferior5Par.Lf0 +.GluteusMaximusInferior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMaximusInferior4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMaximusInferior;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMaximusInferior1Par.Lf0 +.GluteusMaximusInferior2Par.Lf0 +.GluteusMaximusInferior3Par.Lf0 +.GluteusMaximusInferior4Par.Lf0 +.GluteusMaximusInferior5Par.Lf0 +.GluteusMaximusInferior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMaximusInferior5Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMaximusInferior;
  AnyIntVar MuscleElemNo = 5; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMaximusInferior1Par.Lf0 +.GluteusMaximusInferior2Par.Lf0 +.GluteusMaximusInferior3Par.Lf0 +.GluteusMaximusInferior4Par.Lf0 +.GluteusMaximusInferior5Par.Lf0 +.GluteusMaximusInferior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMaximusInferior6Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMaximusInferior;
  AnyIntVar MuscleElemNo = 6; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMaximusInferior1Par.Lf0 +.GluteusMaximusInferior2Par.Lf0 +.GluteusMaximusInferior3Par.Lf0 +.GluteusMaximusInferior4Par.Lf0 +.GluteusMaximusInferior5Par.Lf0 +.GluteusMaximusInferior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////////////
//     GluteusMediusAnterior (6 elements)     //
////////////////////////////////////////////////
AnyMuscleModel3E GluteusMediusAnterior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMediusAnterior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMediusAnterior1Par.Lf0 +.GluteusMediusAnterior2Par.Lf0 +.GluteusMediusAnterior3Par.Lf0 +.GluteusMediusAnterior4Par.Lf0 +.GluteusMediusAnterior5Par.Lf0 +.GluteusMediusAnterior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMediusAnterior2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMediusAnterior;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMediusAnterior1Par.Lf0 +.GluteusMediusAnterior2Par.Lf0 +.GluteusMediusAnterior3Par.Lf0 +.GluteusMediusAnterior4Par.Lf0 +.GluteusMediusAnterior5Par.Lf0 +.GluteusMediusAnterior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMediusAnterior3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMediusAnterior;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMediusAnterior1Par.Lf0 +.GluteusMediusAnterior2Par.Lf0 +.GluteusMediusAnterior3Par.Lf0 +.GluteusMediusAnterior4Par.Lf0 +.GluteusMediusAnterior5Par.Lf0 +.GluteusMediusAnterior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMediusAnterior4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMediusAnterior;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMediusAnterior1Par.Lf0 +.GluteusMediusAnterior2Par.Lf0 +.GluteusMediusAnterior3Par.Lf0 +.GluteusMediusAnterior4Par.Lf0 +.GluteusMediusAnterior5Par.Lf0 +.GluteusMediusAnterior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMediusAnterior5Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMediusAnterior;
  AnyIntVar MuscleElemNo = 5; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMediusAnterior1Par.Lf0 +.GluteusMediusAnterior2Par.Lf0 +.GluteusMediusAnterior3Par.Lf0 +.GluteusMediusAnterior4Par.Lf0 +.GluteusMediusAnterior5Par.Lf0 +.GluteusMediusAnterior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMediusAnterior6Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMediusAnterior;
  AnyIntVar MuscleElemNo = 6; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMediusAnterior1Par.Lf0 +.GluteusMediusAnterior2Par.Lf0 +.GluteusMediusAnterior3Par.Lf0 +.GluteusMediusAnterior4Par.Lf0 +.GluteusMediusAnterior5Par.Lf0 +.GluteusMediusAnterior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////////////
//     GluteusMediusPosterior (6 elements)     //
/////////////////////////////////////////////////
AnyMuscleModel3E GluteusMediusPosterior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMediusPosterior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMediusPosterior1Par.Lf0 +.GluteusMediusPosterior2Par.Lf0 +.GluteusMediusPosterior3Par.Lf0 +.GluteusMediusPosterior4Par.Lf0 +.GluteusMediusPosterior5Par.Lf0 +.GluteusMediusPosterior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMediusPosterior2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMediusPosterior;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMediusPosterior1Par.Lf0 +.GluteusMediusPosterior2Par.Lf0 +.GluteusMediusPosterior3Par.Lf0 +.GluteusMediusPosterior4Par.Lf0 +.GluteusMediusPosterior5Par.Lf0 +.GluteusMediusPosterior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMediusPosterior3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMediusPosterior;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMediusPosterior1Par.Lf0 +.GluteusMediusPosterior2Par.Lf0 +.GluteusMediusPosterior3Par.Lf0 +.GluteusMediusPosterior4Par.Lf0 +.GluteusMediusPosterior5Par.Lf0 +.GluteusMediusPosterior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMediusPosterior4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMediusPosterior;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMediusPosterior1Par.Lf0 +.GluteusMediusPosterior2Par.Lf0 +.GluteusMediusPosterior3Par.Lf0 +.GluteusMediusPosterior4Par.Lf0 +.GluteusMediusPosterior5Par.Lf0 +.GluteusMediusPosterior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMediusPosterior5Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMediusPosterior;
  AnyIntVar MuscleElemNo = 5; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMediusPosterior1Par.Lf0 +.GluteusMediusPosterior2Par.Lf0 +.GluteusMediusPosterior3Par.Lf0 +.GluteusMediusPosterior4Par.Lf0 +.GluteusMediusPosterior5Par.Lf0 +.GluteusMediusPosterior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E GluteusMediusPosterior6Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMediusPosterior;
  AnyIntVar MuscleElemNo = 6; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.GluteusMediusPosterior1Par.Lf0 +.GluteusMediusPosterior2Par.Lf0 +.GluteusMediusPosterior3Par.Lf0 +.GluteusMediusPosterior4Par.Lf0 +.GluteusMediusPosterior5Par.Lf0 +.GluteusMediusPosterior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////////////
//     GluteusMinimusAnterior (1 element )     //
/////////////////////////////////////////////////
AnyMuscleModel3E GluteusMinimusAnterior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMinimusAnterior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////////
//     GluteusMinimusMid (1 element )     //
////////////////////////////////////////////
AnyMuscleModel3E GluteusMinimusMid1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMinimusMid;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




//////////////////////////////////////////////////
//     GluteusMinimusPosterior (1 element )     //
//////////////////////////////////////////////////
AnyMuscleModel3E GluteusMinimusPosterior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.GluteusMinimusPosterior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




///////////////////////////////////
//     Gracilis (2 elements)     //
///////////////////////////////////
AnyMuscleModel3E Gracilis1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Gracilis;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.Gracilis1Par.Lf0 +.Gracilis2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E Gracilis2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Gracilis;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.Gracilis1Par.Lf0 +.Gracilis2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




///////////////////////////////////////////
//     IliacusLateralis (2 elements)     //
///////////////////////////////////////////
AnyMuscleModel3E IliacusLateralis1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.IliacusLateralis;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.IliacusLateralis1Par.Lf0 +.IliacusLateralis2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E IliacusLateralis2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.IliacusLateralis;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.IliacusLateralis1Par.Lf0 +.IliacusLateralis2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////
//     IliacusMid (2 elements)     //
/////////////////////////////////////
AnyMuscleModel3E IliacusMid1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.IliacusMid;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.IliacusMid1Par.Lf0 +.IliacusMid2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E IliacusMid2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.IliacusMid;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.IliacusMid1Par.Lf0 +.IliacusMid2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




//////////////////////////////////////////
//     IliacusMedialis (2 elements)     //
//////////////////////////////////////////
AnyMuscleModel3E IliacusMedialis1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.IliacusMedialis;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.IliacusMedialis1Par.Lf0 +.IliacusMedialis2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E IliacusMedialis2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.IliacusMedialis;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.IliacusMedialis1Par.Lf0 +.IliacusMedialis2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////////////////
//     ObturatorExternusInferior (2 elements)     //
////////////////////////////////////////////////////
AnyMuscleModel3E ObturatorExternusInferior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ObturatorExternusInferior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.ObturatorExternusInferior1Par.Lf0 +.ObturatorExternusInferior2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ObturatorExternusInferior2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ObturatorExternusInferior;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.ObturatorExternusInferior1Par.Lf0 +.ObturatorExternusInferior2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////////////////
//     ObturatorExternusSuperior (3 elements)     //
////////////////////////////////////////////////////
AnyMuscleModel3E ObturatorExternusSuperior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ObturatorExternusSuperior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.ObturatorExternusSuperior1Par.Lf0 +.ObturatorExternusSuperior2Par.Lf0 +.ObturatorExternusSuperior3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ObturatorExternusSuperior2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ObturatorExternusSuperior;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.ObturatorExternusSuperior1Par.Lf0 +.ObturatorExternusSuperior2Par.Lf0 +.ObturatorExternusSuperior3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ObturatorExternusSuperior3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ObturatorExternusSuperior;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.ObturatorExternusSuperior1Par.Lf0 +.ObturatorExternusSuperior2Par.Lf0 +.ObturatorExternusSuperior3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////////
//     ObturatorInternus (6 elements)     //
////////////////////////////////////////////
AnyMuscleModel3E ObturatorInternus1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ObturatorInternus;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.ObturatorInternus1Par.Lf0 +.ObturatorInternus2Par.Lf0 +.ObturatorInternus3Par.Lf0 +.ObturatorInternus4Par.Lf0 +.ObturatorInternus5Par.Lf0 +.ObturatorInternus6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ObturatorInternus2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ObturatorInternus;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.ObturatorInternus1Par.Lf0 +.ObturatorInternus2Par.Lf0 +.ObturatorInternus3Par.Lf0 +.ObturatorInternus4Par.Lf0 +.ObturatorInternus5Par.Lf0 +.ObturatorInternus6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ObturatorInternus3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ObturatorInternus;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.ObturatorInternus1Par.Lf0 +.ObturatorInternus2Par.Lf0 +.ObturatorInternus3Par.Lf0 +.ObturatorInternus4Par.Lf0 +.ObturatorInternus5Par.Lf0 +.ObturatorInternus6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ObturatorInternus4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ObturatorInternus;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.ObturatorInternus1Par.Lf0 +.ObturatorInternus2Par.Lf0 +.ObturatorInternus3Par.Lf0 +.ObturatorInternus4Par.Lf0 +.ObturatorInternus5Par.Lf0 +.ObturatorInternus6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ObturatorInternus5Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ObturatorInternus;
  AnyIntVar MuscleElemNo = 5; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.ObturatorInternus1Par.Lf0 +.ObturatorInternus2Par.Lf0 +.ObturatorInternus3Par.Lf0 +.ObturatorInternus4Par.Lf0 +.ObturatorInternus5Par.Lf0 +.ObturatorInternus6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E ObturatorInternus6Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.ObturatorInternus;
  AnyIntVar MuscleElemNo = 6; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.ObturatorInternus1Par.Lf0 +.ObturatorInternus2Par.Lf0 +.ObturatorInternus3Par.Lf0 +.ObturatorInternus4Par.Lf0 +.ObturatorInternus5Par.Lf0 +.ObturatorInternus6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////
//     Pectineus (4 elements)     //
////////////////////////////////////
AnyMuscleModel3E Pectineus1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Pectineus;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.Pectineus1Par.Lf0 +.Pectineus2Par.Lf0 +.Pectineus3Par.Lf0 +.Pectineus4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E Pectineus2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Pectineus;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.Pectineus1Par.Lf0 +.Pectineus2Par.Lf0 +.Pectineus3Par.Lf0 +.Pectineus4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E Pectineus3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Pectineus;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.Pectineus1Par.Lf0 +.Pectineus2Par.Lf0 +.Pectineus3Par.Lf0 +.Pectineus4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E Pectineus4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Pectineus;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.Pectineus1Par.Lf0 +.Pectineus2Par.Lf0 +.Pectineus3Par.Lf0 +.Pectineus4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////
//     PeroneusBrevis (3 elements)     //
/////////////////////////////////////////
AnyMuscleModel3E PeroneusBrevis1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PeroneusBrevis;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.PeroneusBrevis1Par.Lf0 +.PeroneusBrevis2Par.Lf0 +.PeroneusBrevis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PeroneusBrevis2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PeroneusBrevis;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.PeroneusBrevis1Par.Lf0 +.PeroneusBrevis2Par.Lf0 +.PeroneusBrevis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PeroneusBrevis3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PeroneusBrevis;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.PeroneusBrevis1Par.Lf0 +.PeroneusBrevis2Par.Lf0 +.PeroneusBrevis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////
//     PeroneusLongus (3 elements)     //
/////////////////////////////////////////
AnyMuscleModel3E PeroneusLongus1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PeroneusLongus;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.PeroneusLongus1Par.Lf0 +.PeroneusLongus2Par.Lf0 +.PeroneusLongus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PeroneusLongus2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PeroneusLongus;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.PeroneusLongus1Par.Lf0 +.PeroneusLongus2Par.Lf0 +.PeroneusLongus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PeroneusLongus3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PeroneusLongus;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.PeroneusLongus1Par.Lf0 +.PeroneusLongus2Par.Lf0 +.PeroneusLongus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




//////////////////////////////////////////
//     PeroneusTertius (3 elements)     //
//////////////////////////////////////////
AnyMuscleModel3E PeroneusTertius1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PeroneusTertius;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.PeroneusTertius1Par.Lf0 +.PeroneusTertius2Par.Lf0 +.PeroneusTertius3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PeroneusTertius2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PeroneusTertius;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.PeroneusTertius1Par.Lf0 +.PeroneusTertius2Par.Lf0 +.PeroneusTertius3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PeroneusTertius3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PeroneusTertius;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.PeroneusTertius1Par.Lf0 +.PeroneusTertius2Par.Lf0 +.PeroneusTertius3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////
//     Piriformis (1 element )     //
/////////////////////////////////////
AnyMuscleModel3E Piriformis1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Piriformis;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////
//     Plantaris (1 element )     //
////////////////////////////////////
AnyMuscleModel3E Plantaris1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Plantaris;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////
//     Popliteus (3 elements)     //
////////////////////////////////////
AnyMuscleModel3E Popliteus1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Popliteus;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.Popliteus1Par.Lf0 +.Popliteus2Par.Lf0 +.Popliteus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E Popliteus2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Popliteus;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.Popliteus1Par.Lf0 +.Popliteus2Par.Lf0 +.Popliteus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E Popliteus3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Popliteus;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.Popliteus1Par.Lf0 +.Popliteus2Par.Lf0 +.Popliteus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////
//     PsoasMinor (1 element )     //
/////////////////////////////////////
AnyMuscleModel3E PsoasMinor1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PsoasMinor;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////
//     PsoasMajor (11 elements)     //
/////////////////////////////////////
AnyMuscleModel3E PsoasMajor1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PsoasMajor;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.PsoasMajor1Par.Lf0 +.PsoasMajor2Par.Lf0 +.PsoasMajor3Par.Lf0 +.PsoasMajor4Par.Lf0 +.PsoasMajor5Par.Lf0 +.PsoasMajor6Par.Lf0 +.PsoasMajor7Par.Lf0 +.PsoasMajor8Par.Lf0 +.PsoasMajor9Par.Lf0 +.PsoasMajor10Par.Lf0 +.PsoasMajor11Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PsoasMajor2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PsoasMajor;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.PsoasMajor1Par.Lf0 +.PsoasMajor2Par.Lf0 +.PsoasMajor3Par.Lf0 +.PsoasMajor4Par.Lf0 +.PsoasMajor5Par.Lf0 +.PsoasMajor6Par.Lf0 +.PsoasMajor7Par.Lf0 +.PsoasMajor8Par.Lf0 +.PsoasMajor9Par.Lf0 +.PsoasMajor10Par.Lf0 +.PsoasMajor11Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PsoasMajor3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PsoasMajor;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.PsoasMajor1Par.Lf0 +.PsoasMajor2Par.Lf0 +.PsoasMajor3Par.Lf0 +.PsoasMajor4Par.Lf0 +.PsoasMajor5Par.Lf0 +.PsoasMajor6Par.Lf0 +.PsoasMajor7Par.Lf0 +.PsoasMajor8Par.Lf0 +.PsoasMajor9Par.Lf0 +.PsoasMajor10Par.Lf0 +.PsoasMajor11Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PsoasMajor4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PsoasMajor;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.PsoasMajor1Par.Lf0 +.PsoasMajor2Par.Lf0 +.PsoasMajor3Par.Lf0 +.PsoasMajor4Par.Lf0 +.PsoasMajor5Par.Lf0 +.PsoasMajor6Par.Lf0 +.PsoasMajor7Par.Lf0 +.PsoasMajor8Par.Lf0 +.PsoasMajor9Par.Lf0 +.PsoasMajor10Par.Lf0 +.PsoasMajor11Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PsoasMajor5Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PsoasMajor;
  AnyIntVar MuscleElemNo = 5; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.PsoasMajor1Par.Lf0 +.PsoasMajor2Par.Lf0 +.PsoasMajor3Par.Lf0 +.PsoasMajor4Par.Lf0 +.PsoasMajor5Par.Lf0 +.PsoasMajor6Par.Lf0 +.PsoasMajor7Par.Lf0 +.PsoasMajor8Par.Lf0 +.PsoasMajor9Par.Lf0 +.PsoasMajor10Par.Lf0 +.PsoasMajor11Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PsoasMajor6Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PsoasMajor;
  AnyIntVar MuscleElemNo = 6; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.PsoasMajor1Par.Lf0 +.PsoasMajor2Par.Lf0 +.PsoasMajor3Par.Lf0 +.PsoasMajor4Par.Lf0 +.PsoasMajor5Par.Lf0 +.PsoasMajor6Par.Lf0 +.PsoasMajor7Par.Lf0 +.PsoasMajor8Par.Lf0 +.PsoasMajor9Par.Lf0 +.PsoasMajor10Par.Lf0 +.PsoasMajor11Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PsoasMajor7Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PsoasMajor;
  AnyIntVar MuscleElemNo = 7; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.PsoasMajor1Par.Lf0 +.PsoasMajor2Par.Lf0 +.PsoasMajor3Par.Lf0 +.PsoasMajor4Par.Lf0 +.PsoasMajor5Par.Lf0 +.PsoasMajor6Par.Lf0 +.PsoasMajor7Par.Lf0 +.PsoasMajor8Par.Lf0 +.PsoasMajor9Par.Lf0 +.PsoasMajor10Par.Lf0 +.PsoasMajor11Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PsoasMajor8Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PsoasMajor;
  AnyIntVar MuscleElemNo = 8; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.PsoasMajor1Par.Lf0 +.PsoasMajor2Par.Lf0 +.PsoasMajor3Par.Lf0 +.PsoasMajor4Par.Lf0 +.PsoasMajor5Par.Lf0 +.PsoasMajor6Par.Lf0 +.PsoasMajor7Par.Lf0 +.PsoasMajor8Par.Lf0 +.PsoasMajor9Par.Lf0 +.PsoasMajor10Par.Lf0 +.PsoasMajor11Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PsoasMajor9Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PsoasMajor;
  AnyIntVar MuscleElemNo = 9; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.PsoasMajor1Par.Lf0 +.PsoasMajor2Par.Lf0 +.PsoasMajor3Par.Lf0 +.PsoasMajor4Par.Lf0 +.PsoasMajor5Par.Lf0 +.PsoasMajor6Par.Lf0 +.PsoasMajor7Par.Lf0 +.PsoasMajor8Par.Lf0 +.PsoasMajor9Par.Lf0 +.PsoasMajor10Par.Lf0 +.PsoasMajor11Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PsoasMajor10Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PsoasMajor;
  AnyIntVar MuscleElemNo = 10; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.PsoasMajor1Par.Lf0 +.PsoasMajor2Par.Lf0 +.PsoasMajor3Par.Lf0 +.PsoasMajor4Par.Lf0 +.PsoasMajor5Par.Lf0 +.PsoasMajor6Par.Lf0 +.PsoasMajor7Par.Lf0 +.PsoasMajor8Par.Lf0 +.PsoasMajor9Par.Lf0 +.PsoasMajor10Par.Lf0 +.PsoasMajor11Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E PsoasMajor11Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.PsoasMajor;
  AnyIntVar MuscleElemNo = 11; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.PsoasMajor1Par.Lf0 +.PsoasMajor2Par.Lf0 +.PsoasMajor3Par.Lf0 +.PsoasMajor4Par.Lf0 +.PsoasMajor5Par.Lf0 +.PsoasMajor6Par.Lf0 +.PsoasMajor7Par.Lf0 +.PsoasMajor8Par.Lf0 +.PsoasMajor9Par.Lf0 +.PsoasMajor10Par.Lf0 +.PsoasMajor11Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




///////////////////////////////////////////
//     QuadratusFemoris (4 elements)     //
///////////////////////////////////////////
AnyMuscleModel3E QuadratusFemoris1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.QuadratusFemoris;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.QuadratusFemoris1Par.Lf0 +.QuadratusFemoris2Par.Lf0 +.QuadratusFemoris3Par.Lf0 +.QuadratusFemoris4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E QuadratusFemoris2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.QuadratusFemoris;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.QuadratusFemoris1Par.Lf0 +.QuadratusFemoris2Par.Lf0 +.QuadratusFemoris3Par.Lf0 +.QuadratusFemoris4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E QuadratusFemoris3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.QuadratusFemoris;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.QuadratusFemoris1Par.Lf0 +.QuadratusFemoris2Par.Lf0 +.QuadratusFemoris3Par.Lf0 +.QuadratusFemoris4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E QuadratusFemoris4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.QuadratusFemoris;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScalePelvis*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScalePelvis*MuscleParameters.MuscleVolumeSIScaled/(.QuadratusFemoris1Par.Lf0 +.QuadratusFemoris2Par.Lf0 +.QuadratusFemoris3Par.Lf0 +.QuadratusFemoris4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////
//     RectusFemoris (2 elements)     //
////////////////////////////////////////
AnyMuscleModel3E RectusFemoris1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.RectusFemoris;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.RectusFemoris1Par.Lf0 +.RectusFemoris2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E RectusFemoris2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.RectusFemoris;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.RectusFemoris1Par.Lf0 +.RectusFemoris2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////
//     Sartorius (1 element )     //
////////////////////////////////////
AnyMuscleModel3E Sartorius1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Sartorius;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




//////////////////////////////////////////
//     Semimembranosus (3 elements)     //
//////////////////////////////////////////
AnyMuscleModel3E Semimembranosus1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Semimembranosus;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.Semimembranosus1Par.Lf0 +.Semimembranosus2Par.Lf0 +.Semimembranosus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E Semimembranosus2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Semimembranosus;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.Semimembranosus1Par.Lf0 +.Semimembranosus2Par.Lf0 +.Semimembranosus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E Semimembranosus3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Semimembranosus;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.Semimembranosus1Par.Lf0 +.Semimembranosus2Par.Lf0 +.Semimembranosus3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////
//     Semitendinosus (1 element )     //
/////////////////////////////////////////
AnyMuscleModel3E Semitendinosus1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.Semitendinosus;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(Lf0);///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////
//     SoleusMedialis (3 elements)     //
/////////////////////////////////////////
AnyMuscleModel3E SoleusMedialis1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.SoleusMedialis;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.SoleusMedialis1Par.Lf0 +.SoleusMedialis2Par.Lf0 +.SoleusMedialis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E SoleusMedialis2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.SoleusMedialis;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.SoleusMedialis1Par.Lf0 +.SoleusMedialis2Par.Lf0 +.SoleusMedialis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E SoleusMedialis3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.SoleusMedialis;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.SoleusMedialis1Par.Lf0 +.SoleusMedialis2Par.Lf0 +.SoleusMedialis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




//////////////////////////////////////////
//     SoleusLateralis (3 elements)     //
//////////////////////////////////////////
AnyMuscleModel3E SoleusLateralis1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.SoleusLateralis;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.SoleusLateralis1Par.Lf0 +.SoleusLateralis2Par.Lf0 +.SoleusLateralis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E SoleusLateralis2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.SoleusLateralis;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.SoleusLateralis1Par.Lf0 +.SoleusLateralis2Par.Lf0 +.SoleusLateralis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E SoleusLateralis3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.SoleusLateralis;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.SoleusLateralis1Par.Lf0 +.SoleusLateralis2Par.Lf0 +.SoleusLateralis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////////
//     TensorFasciaeLatae (2 elements)     //
/////////////////////////////////////////////
AnyMuscleModel3E TensorFasciaeLatae1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.TensorFasciaeLatae;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.TensorFasciaeLatae1Par.Lf0 +.TensorFasciaeLatae2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E TensorFasciaeLatae2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.TensorFasciaeLatae;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.TensorFasciaeLatae1Par.Lf0 +.TensorFasciaeLatae2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




///////////////////////////////////////////
//     TibialisAnterior (3 elements)     //
///////////////////////////////////////////
AnyMuscleModel3E TibialisAnterior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.TibialisAnterior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.TibialisAnterior1Par.Lf0 +.TibialisAnterior2Par.Lf0 +.TibialisAnterior3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E TibialisAnterior2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.TibialisAnterior;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.TibialisAnterior1Par.Lf0 +.TibialisAnterior2Par.Lf0 +.TibialisAnterior3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E TibialisAnterior3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.TibialisAnterior;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.TibialisAnterior1Par.Lf0 +.TibialisAnterior2Par.Lf0 +.TibialisAnterior3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////////////////
//     TibialisPosteriorMedialis (3 elements)     //
////////////////////////////////////////////////////
AnyMuscleModel3E TibialisPosteriorMedialis1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.TibialisPosteriorMedialis;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.TibialisPosteriorMedialis1Par.Lf0 +.TibialisPosteriorMedialis2Par.Lf0 +.TibialisPosteriorMedialis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E TibialisPosteriorMedialis2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.TibialisPosteriorMedialis;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.TibialisPosteriorMedialis1Par.Lf0 +.TibialisPosteriorMedialis2Par.Lf0 +.TibialisPosteriorMedialis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E TibialisPosteriorMedialis3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.TibialisPosteriorMedialis;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.TibialisPosteriorMedialis1Par.Lf0 +.TibialisPosteriorMedialis2Par.Lf0 +.TibialisPosteriorMedialis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////////////////
//     TibialisPosteriorLateralis (3 elements)     //
/////////////////////////////////////////////////////
AnyMuscleModel3E TibialisPosteriorLateralis1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.TibialisPosteriorLateralis;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.TibialisPosteriorLateralis1Par.Lf0 +.TibialisPosteriorLateralis2Par.Lf0 +.TibialisPosteriorLateralis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E TibialisPosteriorLateralis2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.TibialisPosteriorLateralis;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.TibialisPosteriorLateralis1Par.Lf0 +.TibialisPosteriorLateralis2Par.Lf0 +.TibialisPosteriorLateralis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E TibialisPosteriorLateralis3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.TibialisPosteriorLateralis;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleShank*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleShank*MuscleParameters.MuscleVolumeSIScaled/(.TibialisPosteriorLateralis1Par.Lf0 +.TibialisPosteriorLateralis2Par.Lf0 +.TibialisPosteriorLateralis3Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////////
//     VastusIntermedius (6 elements)     //
////////////////////////////////////////////
AnyMuscleModel3E VastusIntermedius1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusIntermedius;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusIntermedius1Par.Lf0 +.VastusIntermedius2Par.Lf0 +.VastusIntermedius3Par.Lf0 +.VastusIntermedius4Par.Lf0 +.VastusIntermedius5Par.Lf0 +.VastusIntermedius6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusIntermedius2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusIntermedius;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusIntermedius1Par.Lf0 +.VastusIntermedius2Par.Lf0 +.VastusIntermedius3Par.Lf0 +.VastusIntermedius4Par.Lf0 +.VastusIntermedius5Par.Lf0 +.VastusIntermedius6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusIntermedius3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusIntermedius;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusIntermedius1Par.Lf0 +.VastusIntermedius2Par.Lf0 +.VastusIntermedius3Par.Lf0 +.VastusIntermedius4Par.Lf0 +.VastusIntermedius5Par.Lf0 +.VastusIntermedius6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusIntermedius4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusIntermedius;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusIntermedius1Par.Lf0 +.VastusIntermedius2Par.Lf0 +.VastusIntermedius3Par.Lf0 +.VastusIntermedius4Par.Lf0 +.VastusIntermedius5Par.Lf0 +.VastusIntermedius6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusIntermedius5Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusIntermedius;
  AnyIntVar MuscleElemNo = 5; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusIntermedius1Par.Lf0 +.VastusIntermedius2Par.Lf0 +.VastusIntermedius3Par.Lf0 +.VastusIntermedius4Par.Lf0 +.VastusIntermedius5Par.Lf0 +.VastusIntermedius6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusIntermedius6Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusIntermedius;
  AnyIntVar MuscleElemNo = 6; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusIntermedius1Par.Lf0 +.VastusIntermedius2Par.Lf0 +.VastusIntermedius3Par.Lf0 +.VastusIntermedius4Par.Lf0 +.VastusIntermedius5Par.Lf0 +.VastusIntermedius6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




//////////////////////////////////////////////////
//     VastusLateralisInferior (6 elements)     //
//////////////////////////////////////////////////
AnyMuscleModel3E VastusLateralisInferior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusLateralisInferior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusLateralisInferior1Par.Lf0 +.VastusLateralisInferior2Par.Lf0 +.VastusLateralisInferior3Par.Lf0 +.VastusLateralisInferior4Par.Lf0 +.VastusLateralisInferior5Par.Lf0 +.VastusLateralisInferior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusLateralisInferior2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusLateralisInferior;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusLateralisInferior1Par.Lf0 +.VastusLateralisInferior2Par.Lf0 +.VastusLateralisInferior3Par.Lf0 +.VastusLateralisInferior4Par.Lf0 +.VastusLateralisInferior5Par.Lf0 +.VastusLateralisInferior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusLateralisInferior3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusLateralisInferior;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusLateralisInferior1Par.Lf0 +.VastusLateralisInferior2Par.Lf0 +.VastusLateralisInferior3Par.Lf0 +.VastusLateralisInferior4Par.Lf0 +.VastusLateralisInferior5Par.Lf0 +.VastusLateralisInferior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusLateralisInferior4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusLateralisInferior;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusLateralisInferior1Par.Lf0 +.VastusLateralisInferior2Par.Lf0 +.VastusLateralisInferior3Par.Lf0 +.VastusLateralisInferior4Par.Lf0 +.VastusLateralisInferior5Par.Lf0 +.VastusLateralisInferior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusLateralisInferior5Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusLateralisInferior;
  AnyIntVar MuscleElemNo = 5; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusLateralisInferior1Par.Lf0 +.VastusLateralisInferior2Par.Lf0 +.VastusLateralisInferior3Par.Lf0 +.VastusLateralisInferior4Par.Lf0 +.VastusLateralisInferior5Par.Lf0 +.VastusLateralisInferior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusLateralisInferior6Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusLateralisInferior;
  AnyIntVar MuscleElemNo = 6; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusLateralisInferior1Par.Lf0 +.VastusLateralisInferior2Par.Lf0 +.VastusLateralisInferior3Par.Lf0 +.VastusLateralisInferior4Par.Lf0 +.VastusLateralisInferior5Par.Lf0 +.VastusLateralisInferior6Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




//////////////////////////////////////////////////
//     VastusLateralisSuperior (2 elements)     //
//////////////////////////////////////////////////
AnyMuscleModel3E VastusLateralisSuperior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusLateralisSuperior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusLateralisSuperior1Par.Lf0 +.VastusLateralisSuperior2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusLateralisSuperior2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusLateralisSuperior;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusLateralisSuperior1Par.Lf0 +.VastusLateralisSuperior2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////////////
//     VastusMedialisInferior (2 elements)     //
/////////////////////////////////////////////////
AnyMuscleModel3E VastusMedialisInferior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusMedialisInferior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusMedialisInferior1Par.Lf0 +.VastusMedialisInferior2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusMedialisInferior2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusMedialisInferior;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusMedialisInferior1Par.Lf0 +.VastusMedialisInferior2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




////////////////////////////////////////////
//     VastusMedialisMid (2 elements)     //
////////////////////////////////////////////
AnyMuscleModel3E VastusMedialisMid1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusMedialisMid;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusMedialisMid1Par.Lf0 +.VastusMedialisMid2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusMedialisMid2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusMedialisMid;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusMedialisMid1Par.Lf0 +.VastusMedialisMid2Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 




/////////////////////////////////////////////////
//     VastusMedialisSuperior (4 elements)     //
/////////////////////////////////////////////////
AnyMuscleModel3E VastusMedialisSuperior1Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusMedialisSuperior;
  AnyIntVar MuscleElemNo = 1; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusMedialisSuperior1Par.Lf0 +.VastusMedialisSuperior2Par.Lf0 +.VastusMedialisSuperior3Par.Lf0 +.VastusMedialisSuperior4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusMedialisSuperior2Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusMedialisSuperior;
  AnyIntVar MuscleElemNo = 2; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusMedialisSuperior1Par.Lf0 +.VastusMedialisSuperior2Par.Lf0 +.VastusMedialisSuperior3Par.Lf0 +.VastusMedialisSuperior4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusMedialisSuperior3Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusMedialisSuperior;
  AnyIntVar MuscleElemNo = 3; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusMedialisSuperior1Par.Lf0 +.VastusMedialisSuperior2Par.Lf0 +.VastusMedialisSuperior3Par.Lf0 +.VastusMedialisSuperior4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};
 
AnyMuscleModel3E VastusMedialisSuperior4Par =
{
  AnyFolder& MuscleParameters = ..ModelParameters.Muscles.VastusMedialisSuperior;
  AnyIntVar MuscleElemNo = 4; ///< The number of this element of the muscle
  AnyIntVar MuscleElemAmount = MuscleParameters.MuscleElemAmount; ///< The total amount of elements for this muscle
  F0 = .DefaultMusPar.PCSAfactor*PCSA; ///< Maximum force output at optimum fiber length
  Lf0 = .FiberLengthScaleThigh*MuscleParameters.OptimalFiberlength; ///< Optimum fiber length
  AnyVar PCSA = 1e4*.StrengthScaleThigh*MuscleParameters.MuscleVolumeSIScaled/(.VastusMedialisSuperior1Par.Lf0 +.VastusMedialisSuperior2Par.Lf0 +.VastusMedialisSuperior3Par.Lf0 +.VastusMedialisSuperior4Par.Lf0 );///< PCSA (cm2) of the individual element is total volumen divided by the sum of muscle element fiber lengths.
  Vol0 = 1e-4*PCSA * Lf0; ///< Muscle element volume (m3)
  Lt0 = max({MuscleParameters.TotalTendonLength, 0.001}); ///< Tendon slack length (Cannot be zero)
  Gamma0 = MuscleParameters.Pennationangle*(pi/180); ///< Pennation angle in radian
  Epsilon0 = MuscleParameters.Epsilon0; ///< Tendon strain at F0
  K1 = MuscleParameters.K1; ///< Factor for determining shortening speed at optimum length
  K2 = MuscleParameters.K2; ///< Factor for determining shortening speed at optimum length
  Fcfast = MuscleParameters.Fcfast; ///< Factor for determining shortening speed at optimum length
  Jt = .DefaultMusPar.Jt; ///< Shape parameter for the tendon stiffness
  Jpe = .DefaultMusPar.Jpe; ///< Shape parameter for the parallel stiffness
  PEFactor = .DefaultMusPar.PEFactor; ///< Parameter for influence of parallel stiffness
};