[770c98]: / Tests / Applications / test_KneeSimulator.any

Download this file

49 lines (39 with data), 1.2 kB

//import pytest
//define = (
//   [
//    {'USE_FDK':'0'},
//    {'USE_FDK':'1'},
//  ])
//pytest_markers=["slow"]
//# Ignore a specific a specific quirk in the model, where sigle time step was not converging
//# to the specified tolerance (AB#2486)
//ignore_errors = ['causes looping of Newton method (final force error = 0.']
//save_study=[
//  "Main.KneeSimulatorStudy",
//]

#include "../libdef.any"


#include "../../Application/Examples/KneeSimulator/Main.any"

#ifndef TEST_NAME

#endif



Main = 
{
#ifndef CREATE_IMAGE
AnyOperation& RunTest = Main.RunApplication;
#else

  #include "../Cameras.any"
  // Use a a special time for the initial position picture.   
  AnyOperationSequence CameraInitPos = 
  {
     AnyOperationSetValue setTime = 
     {
       AnyFloat t_custom  = 0.4;
       Source = {&t_custom};
       Target = {&Main.KneeSimulatorStudy.tStart};
     };
     AnyOperation& CameraInitPos = Main.KneeSimulatorStudy.InitialConditions;
  };
  LoadTimeCam.CameraLookAtPoint = {-0.2,0.40,0};
  LoadTimeCam.CameraFieldOfView = DesignVar(0.25);
  LoadTimeCam.CameraDirection  = {-0.7,0,1};
#endif
};