-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSoluDKStay.mac
68 lines (59 loc) · 1.8 KB
/
SoluDKStay.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
!&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
!SoluDKStay.mac
!B.GUEST
!DESCRIPTION: This Macro Applys Constraints to the
! to the selected keypoints so they don't move in the
! next loadstep
!PRECONDITIONS:
! ARG1 = 1 --> UX of selected nodes is constrained
! = 0 --> UX not constrained
! ARG2 = 1 --> UY of selected nodes is constrained
! = 0 --> UY not constrained
! ARG3 = 1 --> UZ of selected nodes is constrained
! = 0 --> UZ not constrained
! ARG4 = 1 --> ROTX of selected nodes is constrained
! = 0 --> ROTX not constrained
! ARG5 = 1 --> ROTY of selected nodes is constrained
! = 0 --> ROTY not constrained
! ARG6 = 1 --> ROTZ of selected nodes is constrained
! = 0 --> ROTZ not constrained
! Required Macros:
! <Macros Required to Run>.mac
! Required Inputs:
! <Other Required Files>.txt/.dat
! <Anything else required before run>
!POSTCONDITIONS'S
! soluDKnodes = Component of nodes that now have
! constraints on them
! nodeNums = Array of node numbers of nodes that now
! have constraints on them
!NOTES:
! You can remove constraints in solution using
! SoluDKAway.mac
!&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
NSLK
CM,soluDKStayNodes,node
*get,nodeCount,NODE,,COUNT !Get Number of Nodes
nodeNums= $ *VGET,nodeNums,NODE,,NLIST
*DO,i,1,nodeCount
*IF,ARG1,EQ,1,then
D,nodeNums(i),UX,UX(nodeNums(i))
*endif
*IF,ARG2,EQ,1,then
D,nodeNums(i),UY,UY(nodeNums(i))
*ENDIF
*IF,ARG3,EQ,1,then
D,nodeNums(i),UZ,UZ(nodeNums(i))
*ENDIF
*IF,ARG4,EQ,1,then
D,nodeNums(i),ROTX,ROTX(nodeNums(i))
*endif
*IF,ARG5,EQ,1,then
D,nodeNums(i),ROTY,ROTY(nodeNums(i))
*ENDIF
*IF,ARG6,EQ,1,then
D,nodeNums(i),ROTZ,ROTZ(nodeNums(i))
*ENDIF
*ENDDO
!======THE--END========THE--END========THE--END=========
!ITS THE END OF THE MACRO AS WE KNOW IT, AND I FEEL FINE