Switch to unified view

a b/Tests/ModelUtilities/test_SupportReactions.any
1
//fatal_warnings = True;
2
3
4
#include "../libdef.any"
5
6
7
8
Main = {
9
  
10
  AnyOperation& RunTest = study.InverseDynamics;
11
  
12
13
  AnyFolder Model = 
14
  {
15
    
16
    AnyFixedRefFrame GlobalRef = {
17
    };
18
    
19
    AnyStdJoint KinematicSupport = {
20
      AnyRefFrame& ref0 = .GlobalRef;
21
      AnyRefFrame& ref1 = .seg;
22
      Constraints.Reaction.Type = {Off,Off,Off,Off,Off,Off};
23
    };
24
    
25
    AnyFolder BugWorkAround = {
26
      // For small systems it is necessary to have a least one reaction in the system. 
27
      // Otherwise the recuitment solver fails. Hence the code below ensure this works
28
        AnyStdJoint dummySupport = {
29
          AnyRefFrame& ref0 = ..GlobalRef;   
30
          AnyRefFrame& ref1 = .dummy;
31
        };
32
        AnySeg dummy = {
33
          Mass = 1;
34
          Jii = 0.1*{1,1,0.1};
35
        };
36
    };
37
    
38
    AnySeg seg = {
39
      sCoM = {0,0.05,0};
40
      r0 = {0.1,0,0.1};
41
      Mass = 10;
42
      Jii = 1*{1,1,0.1};
43
      viewInertia.Visible=On;
44
    };
45
    
46
    #include "<ANYBODY_PATH_MODELUTILS>/Reactions/Support.any"  
47
  
48
  };
49
  
50
51
  AnyBodyStudy study = {
52
    nStep = 1;
53
    Gravity = {0, -9.81, 0.1};
54
    
55
    AnyFolder& Model = .Model;
56
 
57
  };
58
59
60
61
62
};