-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRotorTailTransientAnalysis.txt
347 lines (312 loc) · 6.54 KB
/
RotorTailTransientAnalysis.txt
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
/COM,----------------------------------------------
/COM, ROTOR DISK MODAL & TRANSIENT ANALISYS
/COM,----------------------------------------------
/COM, cantilevered disk-spindle system
/COM,----------------------------------------------
FINISH
/CLEAR, START, NEW
/FILNAM, ModalAnalisys
/TITLE, Tail rotor disk
/UNIT,SI
/INQUIRE,StrJobname,JOBNAME
*USE,testperson.mac
! >>>>> MODEL PARAMETERS <<<<<
*SET, Pi, ACOS(-1)
*AFUN, DEG
*SET,shftlen, 0.50
*SET,shftdia, 0.05
*SET,dskoff, shftlen
*SET,brngoff, 0.12
*SET,dskdia, 1.912/2
*SET,d_i, 1.75/2
*SET,dskthk, 0.15
*SET,bstf, 378e+7 ! Brng Stiffness
*SET,nmd, 10 ! Number of modes
*SET,nmspn, 8 ! Number of speeds
*SET,mxspn, 2000 ! Max Omega (rpm)
/PREP7
! >>>>> MATERIAL PROPERTIES <<<<<
! Aluminum 7075
MP,EX,1,71.7e+9
MP,DENS,1,2810
MP,NUXY,1,0.33
/COM, -----------------------------------------------
/COM, MODEL DEFINITION -SHAFT
/COM, -----------------------------------------------
! Build model nodes
N,1
N,8,brngoff
FILL,1,8
N,19,dskoff
FILL,8,19
N,20,nx(19) + 0.02
! Bearing ground nodes
N,101,
N,201,
N,110,NX(8)
N,210,NX(8)
! Use 188 elements
ET,1,BEAM188,,,2
SECTYPE,1,BEAM,CSOLID
SECDATA,shftdia/2
! Make elements
SECNUM,1
TYPE,1
MAT,1
REAL,1
E,1,2
EGEN,18,1,1
/COM, -----------------------------------------------
/COM, MESH - SHAFT
/COM, -----------------------------------------------
CSYS,0
WPOFFS, NX(20), NY(20), NZ(20)
WPROTA,,,90
/VIEW,1,1,1,1
CYL4,0,0,d_i/2,0,dskdia/2,360
ET,2,SHELL181
SECTYPE,2,SHELL
SECD,dskthk
TYPE,2
SECN,2
MAT,1
MSHKEY,0
ESIZE,0.02
AMESH,ALL
!*** clamp between disk and spindle
ET,3,MASS21
R,3,10,10,10,8.59E-2,4.295E-2,4.295E-2
TYPE,3
REAL,3
MAT,1
E,20
CERIG,20,19,ALL
LSEL,S,LINE,,5,8,1
NSLL,S,1
NSEL,A,NODE,,20
CERIG,20,ALL,ALL
ALLSEL,ALL,ALL
/COM, -----------------------------------------------
/COM, BEARINGS
/COM, -----------------------------------------------
ET,4,COMBIN14,,2 !1-D longitudinal spring-damper (UY degree of freedom)
ET,5,COMBIN14,,3 !1-D longitudinal spring-damper (UZ degree of freedom)
R,4,bstf
TYPE,4
REAL,4
E,1,101
E,8,110
TYPE,5
REAL,4
E,1,201
E,8,210
/COM, -----------------------------------------------
/COM, BOUNDARY CONDITION
/COM, -----------------------------------------------
D,1,UX
D,1,ROTX
D,8,UX
D,4,ROTX
! Fix Brng ground nodes
D,101,ALL
D,201,ALL
D,110,ALL
D,210,ALL
SAVE
EPLOT
! Plot the model
/VIEW,1,1,1,1
*USE, generateimages.mac
/VUP,1,z
*USE, generateimages.mac
*USE, calcmass.mac, %StrJobname(1)%
/TITLE, Tail rotor disk - Modal Analysis
/COM,----------------------------------------------
/COM, Modal Analysis
/COM,----------------------------------------------
/COM, Setup modal run
/COM,----------------------------------------------
/SOLU
ANTYPE,MODAL
CORIOLIS,ON,,,ON
MODOPT,QRDAMP,nmd,,,ON
! Loop on speeds
*DO,i,1,nmspn
spn = (i-1)*(mxspn/(nmspn-1))
OMEGA,spn
MXPAND,nmd,,,YES
SOLVE
*ENDDO
FINISH
SAVE
/COM,----------------------------------------------
/COM, Modal Analysis
/COM,----------------------------------------------
/COM, Post Processing
/COM,----------------------------------------------
/POST1
! Plot/List Campbell Diagrams
/GROPTS,VIEW,1
/YRANGE,0,100
/XRANGE,0,spn
/VIEW,1,,,1
/ANG,1
/REP,FAST
/SHOW,PNG
/GFILE,800,
PLCAMP,,1,RPM
PRCAMP,,1,RPM
/SHOW,CLOSE
!store modal frequencies
PLCAMP,,1,RPM
PRCAMP,,1,RPM
!extract critical speed
*DIM,VeloCrit,ARRAY,4,1
*DO,i,1,4,1
*GET, VelCrit, CAMP,i, VCRI
VeloCrit(i,1) = VelCrit
*ENDDO
*SET, i,
!extrac vibration modes
*GET, NumModes, CAMP,,NBMO
*DIM,ModalFreq,ARRAY,NumModes,1
*DO,i,1,NumModes,1
*GET,OmegaCamp,CAMP,i,FREQ,1
ModalFreq(i,1) = OmegaCamp
*ENDDO
! print other order
/SHOW,PNG
/GFILE,800,
PLCAMP,,1,RPM
PRCAMP,,1,RPM
/NOERASE
PLCAMP,,2,RPM,, ! plot campbell diagram with 2nd order excitation
PRCAMP,,2,RPM,,
PLCAMP,,3,RPM,, ! plot campbell diagram with 3rd order excitation
PRCAMP,,3,RPM,,
PLCAMP,,4,RPM,, ! plot campbell diagram with 4th order excitation
PRCAMP,,4,RPM,,
/ERASE
/SHOW,CLOSE
!store data in file
*CFOPEN,'ModalFreq-%StrJobname(1)%','txt'
*VWRITE,'Num','Omega'
(7x,A8,3X,A8)
*VWRITE,sequ,ModalFreq(1,1)
(F12.0,F12.5)
*CFCLOS
*CFOPEN,'VelocCritic-%StrJobname(1)%','txt'
*VWRITE,'Num', 'Critical'
(7x,A8,3X,A8)
*VWRITE,sequ,VeloCrit(1,1)
(F12.0,3x,F12.5)
*CFCLOS
/VIEW,1,1,1,1
/ANG,1
/REP,FAST
! Plot orbit
SET,3,1
PLORB
*USE, generateimages.mac
! Animate whirl
SET,3,1
PLNSOL,U,SUM
*USE, generateimages.mac
/vup,1,z
*USE, generateimages.mac
ANHARM
FINISH
SAVE
/TITLE, Tail rotor disk - Transient Analisys
/FILNAM, TransientAnalisys
/COM,----------------------------------------------
/COM, TRANSIENT ANALISYS
/COM,----------------------------------------------
*SET,spin, mxspn
*SET,tinc, 0.5e-3
*SET,tend, 4
*SET,spindot, spin/tend
*SET,nbp, nint(tend/tinc) + 1
*SET,unb, 1.e-4
*SET,f0, unb*dskdia
*dim,spinTab,table,nbp,,,TIME
*dim,rotTab, table,nbp,,,TIME
*dim,fzTab, table,nbp,,,TIME
*dim,fyTab, table,nbp,,,TIME
*vfill,spinTab(1,0),ramp,0,tinc
*vfill,rotTab(1,0), ramp,0,tinc
*vfill,fzTab(1,0), ramp,0,tinc
*vfill,fyTab(1,0), ramp,0,tinc
tt = 0
*DO,iloop,1,nbp
spinVal = spindot*tt
spinTab(iloop,1) = spinVal
spin2 = spinVal**2
rotVal = spindot*tt**2/2
rotTab(iloop,1) = rotVal
sinr = sin(rotVal)
cosr = cos(rotVal)
fzTab(iloop,1)= f0*(-spin2*sinr + spindot*cosr)
fyTab(iloop,1)= f0*( spin2*cosr + spindot*sinr)
tt = tt + tinc
*ENDDO
FINI
! ** transient analysis
/SOLU
ANTYPE,TRANSIENT
TIME,tend
DELTIM,tinc,tinc/10,tinc*10
KBC,0
CORIOLIS,ON,,,ON
OMEGA,spin
F,248,FY,%fyTab%
F,248,FZ,%fzTab%
OUTRES,ALL,ALL
SOLVE
FINISH
SAVE
/PBC,ALL, ,1
/REP
*USE, generateimages.mac
/COM,----------------------------------------------
/COM, TRANSIENT ANALYSIS
/COM,----------------------------------------------
/COM, Post Processing
/COM,----------------------------------------------
/VIEW,1,,,1
/ANG,1
/REPLOT
!generate response graphs
/POST26
/XRANGE,0,tend
NSOL,2,19,U,Z,UZdisk
PROD,3,2,2
NSOL,4,19,U,Y,UYdisk
PROD,5,4,4
ADD,6,3,5
SQRT,7,6,,,Ampl_At_Disk
/AXLAB,Y,Displacement (m)
PLVAR,7
EXTREME,7
/VIEW,1,,,1
/ANG,1
/REP,FAST
/SHOW,PNG
/GFILE,800,
PLVAR,7
EXTREME,7
/SHOW,CLOSE
ESOL,8,18,19,SMISC,32,Sy_At_Disk
ESOL,9,18,19,SMISC,34,Sz_At_Disk
/AXLAB,Y,Bending Stresses (N/m^2)
/VIEW,1,,,1
/ANG,1
/REP,FAST
PLVAR,8,9
EXTREME,8,9
/SHOW,PNG
/GFILE,800,
PLVAR,8,9
EXTREME,8,9
/SHOW,CLOSE
FINISH