I received the following error during tendon calibration.
[SIZE=1]ERROR(OBJ.DES1)[/SIZE] : [SIZE=1]/Body/A…n/L…D/LegCal1.any[/SIZE] : [SIZE=1]LegCalibrationStudy1.Internal_dependency[/SIZE] : Wrong initialization of [SIZE=1]AnyVarRef[/SIZE] linking to value [SIZE=1]Lfbar[/SIZE] in study [SIZE=1]LegCalibrationStudy1[/SIZE] :
Dependency (Right-hand side or internal dependency) may be evaluated later than this AnyVarRef object. This is not allowed, because it could override the AnyVarRef value transfer.
Location of [SIZE=1]Lfbar[/SIZE] :[SIZE=1]\Body\AAUHuman\LegTD\MusPar.any(827)[/SIZE]
I was wondering if you could give me any advice regarding how to fix it.
I think this is related to that lfbar for some reason is considered to be a designvar, and the calibration study also want to change it…
So two instances in the system both tries to make changes to this var the calibration study and something else and it is only allowed to have one instance doing this.
Please explain more about your model that will let us understand this.
I also have another error for a different trial. The error is as follows:
[SIZE=1]ERROR(OBJ1)[/SIZE] : [SIZE=1]C:/U…s/u…a/D…s/N…o/A…n/S…y/A…d/A…n/O…n/S…l/ModelSetup.any[/SIZE] : [SIZE=1]C3DFileData.Points.Markers.RTHI.PosInterpol[/SIZE] : Parameter has an invalid value for this interpolation; extrapolations are not allowed.
[SIZE=2]Is this related with the location of RTHI marker?[/SIZE]
[SIZE=2][/SIZE]
[SIZE=2]Thanks!
[/SIZE]
If you go the TrialSpecific.any file please try to delete the DesignVar() around the number listed for ThighLength line 17… this has been changed in AMMR 1.5. and may cause this behaviour.
Please try to descrease tEnd a bit and increase tStart in your study this will narrow the time interval of you analysis. The error message means that you are trying to make use of interpolated Rhti values outside the interpolated range.
I think you have bumped into a rare case where the muscle calibration algorithm wants to reduce the fiber length. This may happen in rare cases if the tendons becomes too short.
In this particular case the quick fix is the following:
[ol]
[li]In message window detect the last muscle it says is calibrated ok.[/li][li]In the model tree find the muscle folder and find the muscle name listed after the last succesfully calibrated muscle.[/li][li]In the MusPar.any file find this muscle[/li][li]Change the line looking like this AnyVar LfbarTemp = .FiberLengthScaleShank*(XXX/100);[/li][li]To this AnyVar LfbarTemp = (XXX/100);[/li][li][SIZE=2]This will remove fiberscaling of the particular muscle and allow the muscle calibration to change it. [/SIZE][/li][/ol]This solution is not particular elegant, there are other more elegant solutions that will work in general and do not require a change in the MusPar.any file. These solutions are however more cumbersome to implement for this model.
Please replace the LegTD/LegCal1.any with the attached file.
The file is a modified version of LegCal1.any, it has been simplified so that redundant calibration is no longer preformed, and it might solve the problem without doing the modifications mentioned in the previous post.
The modifications in this post should not change the model results for a normal model, but make it less pronoe to get the error you have seen.
Thank you very much for your help. I quickly tested the two solutions. Both methods worked so far.
However, I still have one error left. At the end of a parameter optimization, I still receive the same error such as
[SIZE=1][SIZE=2]ERROR(OBJ1)[/SIZE][/SIZE] : C:/U…s/u…a/D…s/N…o/A…n/S…y/A…d/A…n/O…n/S…5/ModelSetup.any : C3DFileData.Points.Markers.RTHI.PosInterpol : Parameter has an invalid value for this interpolation; extrapolations are not allowed.