-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommandList-HW5.txt
599 lines (565 loc) · 9.75 KB
/
CommandList-HW5.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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
!*********************
! PROBLEM HOMEWORK 4 *
!*********************
FINISH
/CLEAR,START,NEW
/FILNAME,Homework4
! >>> PARAMETERS MODEL <<<
*SET,leng_v_pipe,500
*SET,dim_v_pipe,100
*SET,thick_v_pipe,2
*SET,leng_h_pipe,1000
*SET,dim_h_pipe,200
*SET,thick_h_pipe,4
*SET,alpha,90
*SET,EPS,1E-3
*SET,n_div_area,3
! >>> PROPERTIES MATERIAL <<<
*SET,E_Young,210000
*SET,ni,0.3
! >>> LOAD <<<
*SET,pressure,1
! >>> PRE PROCESSING <<<
/PREP7
ET,1,SHELL181
KEYOPT,1,8,2
SECTYPE,1,shell
SECDATA,thick_h_pipe
MP,EX,1,E_Young
MP,PRXY,1,ni
ET,2,SHELL181
KEYOPT,2,8,2
SECTYPE,2,shell
SECDATA,thick_v_pipe
MP,EX,2,E_Young
MP,PRXY,2,ni
TYPE,1
SECNUM,1
MAT,1
SAVE
! >>> DEFINE RF CYLINDRICAL <<<
CLOCAL,100,CYLIN,0,dim_h_pipe/2-leng_v_pipe/10,0,,-alpha
CSYS,0
CLOCAL,200,CYLIN,0,0,0,,,alpha
!***VERTICAL PIPE
CSYS,100
K,1,dim_v_pipe/2,0,0
K,2,dim_v_pipe/2,0,leng_v_pipe+leng_v_pipe/10
K,3,0,0,0
K,4,0,0,leng_v_pipe
L,1,2
!***HORIZZONTAL PIPE
CSYS,200
K,5,dim_h_pipe/2,-alpha,0
K,6,dim_h_pipe/2,-alpha,leng_h_pipe/2
K,7,0,0
K,8,0,0,leng_h_pipe/2
L,5,6
!***GEN AREA H PIPE
AROTAT,2,,,,,,8,7,-2*alpha
!***GEN AREA V PIPE
CSYS,100
AROTAT,1,,,,,,3,4,alpha
SAVE
APTN,2,3
ADELE,4,5
LDELE,10
LDELE,15
LDELE,16
SAVE
CSYS,0
WPOFFS,-50,100
WPROTA,,250
ASBW,7
WPOFFS,50,-10
WPROTA,,-250
WPROTA,,,alpha
WPOFFS,,,64.3
ASBW,3
WPROTA,,alpha
WPOFFS,,,-10
ASBW,6
SAVE
! >>> MESHING <<<
LCCAT,16,21
LCCAT,15,21
AESIZE,ALL,n_div_area
!***HORIZZONTAL PIPE
ESYS,200
TYPE,1
SECNUM,1
MSHKEY,1
MSHAPE,0,2D
AMESH,4
AMESH,5
AMESH,2
AMESH,1
SAVE
!***VERTICAL PIPE
ESYS,100
SAVE
TYPE,2
SECNUM,2
SAVE
MSHKEY,1
MSHAPE,0,2D
AMESH,7
AMESH,3
SAVE
! >>> VERIFY THE NORMAL VERSOR <<<
EPLOT
/PSYMB,ESYS,1
! >>> SOLUTION <<<
SAVE
SFE,ALL,,PRES,,pressure
/PBC,ALL,,1
NSEL,S,LOC,x,-EPS,+EPS
DSYM,SYMM,x
NSEL,S,LOC,z,-EPS,+EPS
DSYM,SYMM,z
KSEL,S,KP,,6
NSLK,S
DSYM,SYMM,y
ALLSEL,ALL
/SOLU
SOLVE
FINISH
! >>> POSTPROCESSING <<<
/POST1
/ESHAPE,1
PLDISP,1
SHELL,MID
RSYS,SOLU
PLNSOL,S,x
PLNSOL,S,y
PRNSOL,S,comp
!*********************
! PROBLEM HOMEWORK 5 *
!*********************
FINISH
/CLEAR, START, NEW
/TITLE, HOMEWORK 5
/FILNAME,HOMEWORK5,1
! >>> PARAMETERS MODEL <<<
*DO,k,0,150,25
*SET,leng_v_pipe,490
*SET,dim_v_pipe,100
*SET,thick_v_pipe, 2
*SET,leng_h_pipe,1000
*SET,dim_h_pipe,200
*SET,thick_h_pipe,4
*SET,fillet,10
*SET,alpha,90
*SET,EPS,1E-3
*SET,e_lenght,1
!***PARAMETERS CUT BOUNDARES
*SET,vCutBun,(65+(k/25*5))/2
*SET,rCutBun,65+(k/25*5)
*SET,hCutBun,(dim_h_pipe/2)*1.1
! >>> PROPERTIES MATERIAL <<<
*SET,E_Young, 210000
*SET,ni,0.3
! >>> LOAD <<<
*SET,pressure, 1
! >>> PRE PROCESSING <<<
/PREP7
ET,1,SOLID186
MP,EX,1,E_Young
MP,PRXY,1,ni
TYPE,1
SECNUM,1
MAT,1
SAVE
! >>> DEFINE RF CYLINDRICAL <<<
CLOCAL,100,CYLIN,0,dim_h_pipe/2-thick_h_pipe/2,0,,-alpha
CSYS,0
CLOCAL,200,CYLIN,0,0,0,,,alpha
!***VERTICAL PIPE
CSYS,100
WPCSYS,,100
WPOFFS,0,0,-50
CYL4,0,0,(dim_v_pipe/2)-thick_v_pipe,0,dim_v_pipe/2,alpha,leng_v_pipe*(1+(109/490))
!***HORIZZONTAL PIPE
CSYS,200
WPCSYS,,200
CYL4,0,0,(dim_h_pipe/2)-thick_h_pipe,-alpha,dim_h_pipe/2,alpha,leng_h_pipe/2
VPTN,1,2
VDELE,3,4,,1
AFILLT,33,23,fillet
AL,2,14,33
AL,1,34,16
VA,5,3,6,12,7
SAVE
!***CUT VERTICAL PIPE
WPCSYS,,100
WPOFFS,0,0,vCutBun
VSBW,5,SEPO,DELETE
!***CUT HORIZZONTAL PIPE
CSYS,100
K,100,rCutBun,-(hCutBun-dim_h_pipe/2),-hCutBun
K,101,rCutBun,hCutBun,-hCutBun
L,100,101
K,102,0,0,-dim_h_pipe/2
K,103,0,0,dim_h_pipe/2
L,102,103
ADRAG,5,,,,,,6
VSBA,7,2
!***JOIN SUBMODEL
VADD,3,1,6,4
VSEL,U,VOLU,,7
VDELE,ALL,,,1
ALLSEL,ALL
!***JOINS AREAS
AADD,26,5,31,34
AADD,41,6,32,36
SAVE
! >>> MESHING <<<
CSYS,0
MSHAPE,1,3D
MSHKEY,0
ESIZE,e_lenght
VMESH,ALL
SAVE
/VIEW,1,,,-1
/ANG,1
/REP,FAST
! >>> SHELL TO SOLID SUBMODELS <<<
ASEL,S,AREA,,23,25,2
NSLA,S
NWRITE,subHW5,node,,0
ALLSEL,ALL
SAVE
RESUME,'homework4','db'
/POST1
FILE,HOMEWORK4,rst
SET,first
cbdof,subHW5,node,,DHW5,cbdo,,,,1
RESUME,HOMEWORK5,db
/PREP7
/INPUT,DHW5,cbdo
/INPUT,DHW5,cbdo,,:cb1
! >>> SOLUTION <<<
SAVE
NSEL,S,LOC,x,-eps,+eps
DSYM,SYMM,x
NSEL,S,LOC,z,-eps,+eps
DSYM,SYMM,z
ASEL,S,AREA,,20,24,2
ASEL,A,AREA,,1
NSLA,S
SF,ALL,PRES,pressure
ALLSEL,ALL
/SOLU
SOLVE
FINISH
/VIEW,1,,,-1
/ANG,1
/REP,FAST
! >>> POSTPROCESSING <<<
/POST1
PLDISP,1
PLNSOL,S,Y
PLNSOL,S,X
PRNSOL,S,COMP
PLNSOL,S,X
*GET,stressmax,PLNSOL,,max
*CFOPEN,'Stress','txt',,append
*VWRITE,k/25,vCutBun,rCutBun,stressmax
(F20.10,F20.10,F20.10,F20.10)
*cfclos
PLNSOL,S,eqv
*GET,stressEQV,PLNSOL,,max
*CFOPEN,'stressEQV','txt',,append
*VWRITE,k/25,vCutBun,rCutBun,stressEQV
(F20.10,F20.10,F20.10,F20.10)
*CFCLOS
LSEL,S,LINE,,8
LSEL,A,LINE,,2
LSEL,A,LINE,,28
NSLL,S,1
FLST,2,275,1
FITEM,2,1
FITEM,2,68224
FITEM,2,68225
FITEM,2,68226
FITEM,2,68227
FITEM,2,68228
FITEM,2,68229
FITEM,2,68230
FITEM,2,68231
FITEM,2,68232
FITEM,2,68233
FITEM,2,68234
FITEM,2,68235
FITEM,2,68236
FITEM,2,68237
FITEM,2,68238
FITEM,2,68239
FITEM,2,68240
FITEM,2,68241
FITEM,2,68242
FITEM,2,68243
FITEM,2,68244
FITEM,2,68245
FITEM,2,68246
FITEM,2,68247
FITEM,2,68248
FITEM,2,68249
FITEM,2,68250
FITEM,2,68251
FITEM,2,68252
FITEM,2,68253
FITEM,2,68254
FITEM,2,68255
FITEM,2,68256
FITEM,2,68257
FITEM,2,68258
FITEM,2,68259
FITEM,2,68260
FITEM,2,68261
FITEM,2,68262
FITEM,2,68263
FITEM,2,68264
FITEM,2,68265
FITEM,2,68266
FITEM,2,68267
FITEM,2,68268
FITEM,2,68269
FITEM,2,68270
FITEM,2,68271
FITEM,2,68272
FITEM,2,68273
FITEM,2,68274
FITEM,2,68275
FITEM,2,68276
FITEM,2,68277
FITEM,2,68278
FITEM,2,68279
FITEM,2,68280
FITEM,2,68281
FITEM,2,68282
FITEM,2,68283
FITEM,2,68284
FITEM,2,68285
FITEM,2,68286
FITEM,2,68287
FITEM,2,68288
FITEM,2,68289
FITEM,2,68290
FITEM,2,68291
FITEM,2,68292
FITEM,2,68293
FITEM,2,68294
FITEM,2,68295
FITEM,2,68296
FITEM,2,68297
FITEM,2,68298
FITEM,2,68299
FITEM,2,68300
FITEM,2,68301
FITEM,2,68302
FITEM,2,68303
FITEM,2,68304
FITEM,2,68305
FITEM,2,68306
FITEM,2,68307
FITEM,2,68308
FITEM,2,68309
FITEM,2,68310
FITEM,2,68311
FITEM,2,68312
FITEM,2,68313
FITEM,2,68314
FITEM,2,68315
FITEM,2,68316
FITEM,2,68317
FITEM,2,68318
FITEM,2,68319
FITEM,2,68320
FITEM,2,68321
FITEM,2,68322
FITEM,2,68323
FITEM,2,68324
FITEM,2,68325
FITEM,2,68326
FITEM,2,68327
FITEM,2,68328
FITEM,2,68329
FITEM,2,68330
FITEM,2,68331
FITEM,2,68332
FITEM,2,68333
FITEM,2,68334
FITEM,2,68335
FITEM,2,68336
FITEM,2,68337
FITEM,2,68338
FITEM,2,68339
FITEM,2,68340
FITEM,2,68341
FITEM,2,68342
FITEM,2,68343
FITEM,2,68344
FITEM,2,68345
FITEM,2,68346
FITEM,2,68347
FITEM,2,68348
FITEM,2,68349
FITEM,2,68350
FITEM,2,68351
FITEM,2,68352
FITEM,2,68353
FITEM,2,68354
FITEM,2,68355
FITEM,2,68356
FITEM,2,68357
FITEM,2,68358
FITEM,2,63336
FITEM,2,63367
FITEM,2,63366
FITEM,2,63365
FITEM,2,63364
FITEM,2,63362
FITEM,2,63362
FITEM,2,63362
FITEM,2,63362
FITEM,2,63363
FITEM,2,63362
FITEM,2,63361
FITEM,2,63360
FITEM,2,63358
FITEM,2,63359
FITEM,2,63359
FITEM,2,63358
FITEM,2,63359
FITEM,2,63358
FITEM,2,63356
FITEM,2,63356
FITEM,2,63357
FITEM,2,63356
FITEM,2,63354
FITEM,2,63354
FITEM,2,63355
FITEM,2,63354
FITEM,2,63353
FITEM,2,63352
FITEM,2,63351
FITEM,2,63350
FITEM,2,63349
FITEM,2,63348
FITEM,2,63347
FITEM,2,63346
FITEM,2,63345
FITEM,2,63344
FITEM,2,63343
FITEM,2,63342
FITEM,2,63341
FITEM,2,63340
FITEM,2,63339
FITEM,2,63338
FITEM,2,63337
FITEM,2,36943
FITEM,2,37195
FITEM,2,37194
FITEM,2,37193
FITEM,2,37192
FITEM,2,37191
FITEM,2,37190
FITEM,2,37189
FITEM,2,37187
FITEM,2,37187
FITEM,2,37188
FITEM,2,37187
FITEM,2,37186
FITEM,2,37185
FITEM,2,37183
FITEM,2,37183
FITEM,2,37184
FITEM,2,37183
FITEM,2,37182
FITEM,2,37181
FITEM,2,37179
FITEM,2,37178
FITEM,2,37178
FITEM,2,37179
FITEM,2,37180
FITEM,2,37179
FITEM,2,37178
FITEM,2,37177
FITEM,2,37176
FITEM,2,37175
FITEM,2,37174
FITEM,2,37173
FITEM,2,37172
FITEM,2,37171
FITEM,2,37170
FITEM,2,37169
FITEM,2,37169
FITEM,2,37169
FITEM,2,37168
FITEM,2,37167
FITEM,2,37167
FITEM,2,37167
FITEM,2,37166
FITEM,2,37165
FITEM,2,37164
FITEM,2,37163
FITEM,2,37162
FITEM,2,37161
FITEM,2,37160
FITEM,2,37159
FITEM,2,37158
FITEM,2,37157
FITEM,2,37157
FITEM,2,37156
FITEM,2,37156
FITEM,2,37157
FITEM,2,37156
FITEM,2,37155
FITEM,2,37154
FITEM,2,37153
FITEM,2,37152
FITEM,2,37151
FITEM,2,37150
FITEM,2,37149
FITEM,2,37148
FITEM,2,37147
FITEM,2,37146
FITEM,2,37145
FITEM,2,37144
FITEM,2,37143
FITEM,2,37141
FITEM,2,37141
FITEM,2,37142
FITEM,2,37142
FITEM,2,37142
FITEM,2,37141
FITEM,2,37139
FITEM,2,37139
FITEM,2,37140
FITEM,2,37139
FITEM,2,37138
FITEM,2,37137
FITEM,2,37136
FITEM,2,37135
FITEM,2,37134
FITEM,2,37133
FITEM,2,37132
FITEM,2,37131
FITEM,2,37130
FITEM,2,37129
FITEM,2,37128
FITEM,2,1174
FITEM,2,1174
FITEM,2,37127
FITEM,2,1174
PATH,temp,275,30,20,
PPATH,P51X,1
PATH,STAT
AVPRIN,0, ,
PDEF,vonmises,S,EQV,AVG
/PBC,PATH, ,1
PLPATH,vonmises
FINISH
/CLEAR,START
*ENDDO