-
Notifications
You must be signed in to change notification settings - Fork 1
/
main_TK_VaryDamping.mac
174 lines (138 loc) · 6.79 KB
/
main_TK_VaryDamping.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
!!!!!! Either use read input from or paste the following file in the command
!!!!!! line starting with /INPUT
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!!!!!! ftyp: foundation for the input building can be a footing or plate foundation
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
/CLEAR,NOSTART ! Clear model since no SAVE found
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!-----------------------------Harmonic Analysis-----------------------------!
StarFreq=0
FreqIncr=0.2 ! Frequeny Increment
EndFreq=100.0
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!room_off='Y2_2m'
!y_pick1=7.4
!y_pick2=7.6
x_pick1=8.75
y_pick1=4.8
x_pick2=8.75
y_pick2=4.8
!x_pick2=9
!y_pick2=6
!/INPUT,'fn_post\post_uni_Y_7pt5_TK','mac'
!DRtype = 'vary' !select ths one for looping the damping ratio
!DRtype = 'fix' !select ths one for constant damping ratio
DRtype = 'testing'
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
*IF,DRtype,EQ,'vary',THEN
!Loop over DMPART from 0.1 to 1.0
*do,iDR,1,2,1
!ftyp='PLATE'
ftyp='FOOTING'
*DIM,DR,ARRAY,1000,1
*VREAD,DR(1,1),'ANSYS_DR_TEST2_X_SBAGM_V6_TR_DOE_1000','txt','fn_pre\RANDOM_INPUT\',jik,1,1000,1
(1x,E14.7)
*SET,D_bl, DR(iDR,1)
*DIM,E_all,ARRAY,1000,1
*VREAD,E_all(1,1),'ANSYS_E_TEST2_X_SBAGM_V6_TR_DOE_1000','txt','fn_pre\RANDOM_INPUT\',jik,1,1000,1
(1x,E14.7)
*SET,E_bl, E_all(iDR,1)
/INPUT,'fn_pre\Pre_Para_slab_size_nonuni_TK','mac'
/INPUT,'fn_fndtn_para\fndn_para_cnstvals_FULL','mac'
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
*IF,ftyp,EQ,'PLATE',THEN
/INPUT,'fn_pre\Pre_BldMod_PlateFndtn_slabsize_nonuni_TK','mac'
*ELSEIF,ftyp,EQ,'FOOTING'
/INPUT,'fn_pre\Pre_BldMod_FootingFndtn_slabsize_nonuni_TK','mac'
*ENDIF
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!----------------------------Define Matrix27 -------------------------------!
/INPUT,'fn_pre\Pre_CM_colbase_M27_TK','mac'
/INPUT,'fn_pre\Pre_M27_Full','mac'
!---------------------------Constraints for the LPM-------------------------!
/INPUT,'fn_pre\Pre_Load_BCs','mac'
!/eof
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
/INPUT,'fn_analysis\Analysis_TranFunc_VH','mac'
/INPUT,'fn_post\post_uni_Y_7pt5_TK_VaryD','mac'
/CLEAR
PARRES
*enddo
*ELSEIF,DRtype,EQ,'fix'
D_bl = 0.05
iDR = 2
ftyp='FOOTING'
*DIM,E_all,ARRAY,1000,1
*VREAD,E_all(1,1),'ANSYS_E_TEST2_X_SBAGM_V6_TR_DOE_1000','txt','fn_pre\RANDOM_INPUT\',jik,1,1000,1
(1x,E14.7)
*SET,E_bl, E_all(iDR,1)
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
*IF,ftyp,EQ,'PLATE',THEN
/INPUT,'fn_pre\Pre_BldMod_PlateFndtn_slabsize_nonuni_TK','mac'
*ELSEIF,ftyp,EQ,'FOOTING'
/INPUT,'fn_pre\Pre_BldMod_FootingFndtn_slabsize_nonuni_TK','mac'
*ENDIF
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!----------------------------Define Matrix27 -------------------------------!
/INPUT,'fn_pre\Pre_CM_colbase_M27_TK','mac'
/INPUT,'fn_pre\Pre_M27_Full','mac'
!---------------------------Constraints for the LPM-------------------------!
/INPUT,'fn_pre\Pre_Load_BCs','mac'
!/eof
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
/INPUT,'fn_analysis\Analysis_TranFunc_VH','mac'
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!/INPUT,'fn_post\Settings_Export_Pictures','mac'
!/INPUT,'fn_post\post_F_Indepn_TF','mac'
!---eclectic case for uniform slab of 5mx5m and picking results at y=7.5m---!
!----------------for comparison with the nonuni slab case-------------------!
/INPUT,'fn_post\post_uni_Y_7pt5_TK_VaryD','mac'
*ELSEIF,DRtype,EQ,'testing'
D_bl = 0.05
iDR = 2
!ftyp='PLATE'
ftyp='FOOTING'
*DIM,E_all,ARRAY,1000,1
*VREAD,E_all(1,1),'ANSYS_E_TEST2_X_SBAGM_V6_TR_DOE_1000','txt','fn_pre\RANDOM_INPUT\',jik,1,1000,1
(1x,E14.7)
*SET,E_bl, E_all(iDR,1)
/INPUT,'fn_pre\Pre_Para_slab_size_nonuni_TK','mac'
/INPUT,'fn_fndtn_para\fndn_para_cnstvals_FULL','mac'
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
*IF,ftyp,EQ,'PLATE',THEN
/INPUT,'fn_pre\Pre_BldMod_PlateFndtn_slabsize_nonuni_TK','mac'
*ELSEIF,ftyp,EQ,'FOOTING'
/INPUT,'fn_pre\Pre_BldMod_FootingFndtn_slabsize_nonuni_TK','mac'
*ENDIF
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!----------------------------Define Matrix27 -------------------------------!
!/INPUT,'fn_pre\Pre_CM_colbase_M27_TK','mac'
!/INPUT,'fn_pre\Pre_M27_Full','mac'
!---------------------------Constraints for the LPM-------------------------!
!/INPUT,'fn_pre\Pre_Load_BCs','mac'
!/eof
!---------------------------------------------------------------------------!
!---------------------------------------------------------------------------!
!/INPUT,'fn_analysis\Analysis_Harmonic_SuperP','mac'
/INPUT,'fn_analysis\Analysis_TranFunc_VH','mac'
/INPUT,'fn_post\post_uni_Y_7pt5_TK_VaryD','mac'
*ENDIF