Skip to main content

getMaxIsometricForce.m


% This function is part of the NMSM Pipeline, see file for full license.
%
%
% (struct, array of number) -> (array of number)
% returns the maximum isometric force for MuscleTendonLengthInitialization


function maxIsometricForce = getMaxIsometricForce(experimentalData, values)

scaledOptimalFiberLength = experimentalData.optimalFiberLength .* ...
values.optimalFiberLengthScaleFactors;

if experimentalData.optimizeIsometricMaxForce
scaledMaximumMuscleStress = experimentalData.maximumMuscleStress .* ...
values.maximumMuscleStressScaleFactor;
maxIsometricForce = calcMaxIsometricForce( ...
experimentalData.muscleVolume, scaledOptimalFiberLength, ...
scaledMaximumMuscleStress);
else
maxIsometricForce = experimentalData.maxIsometricForce;
end
end