Table Of ContentAppendix C: ANSYS Batch Files
!/CWD,/u3/jtblac2/Ansys/ME501
!/CWD,'V:\jtblac1\ME501'
!/CWD,'C:\jtblac0'
!/CWD,C:\Documents and Settings\Net Meeting\My Documents\Black Ansys
/filnam, Diss-SinglePan-HexStiff-2C.txt
/title, Single Panel Hexagonal Stiffeners 2
/prep7
! Test how many hexagonal panels are necessary to model all boundary conditions
! present in an array of hexagonal panels, three or seven.
! 1 - Two separate complete cups mirrored about xy-plane = two base areas
! 2 - Top and bottom cup share single base area
!B - Incorporate geometry changes from HexStiff-3V.txt - thickness differences in base and top of cups
!C - Fix geometry error - panel is 3/4" thick, not 1/2"
et, 1, shell63 ! Element type 1 = Shell 63 element
!et, 1, shell181 ! Element type 2 = Shell 181 element
!keyopt,eleno,optno,value !keyopt command
! Material properties for Kapton
mp, ex, 1, 2.5e9 ! Young's Modulus = 2.5 GPa
mp, prxy, 1, 0.34 ! Poisson's Ratio = 0.34
mp, dens, 1, 1420. ! Density of Kapton = 1420 kg/m^3
! Real constants
!r,1,25.4e-6,,,,,,,,12.7e-6,12.7e-6, ! Thickness = 25 microns,,,,,,,,CTOP,CBOT - Dist from midsurface to top
and bottom
!r,2,25.4e-6 ! Thickness = 25 microns
!r,1,50.8e-6 ! Real constant set 1 = same element and mat props, thickness = 50 microns
r,1,0.254e-3 ! Thickness of cup (double that of original membrane = 5 mil * 2)
r,2,0.12e-3,0.12e-3,0.079e-3,0.079e-3 ! Thicker at top nodes than bottom 5 mil start
r,3,0.079e-3 ! Assume constant chamfer thickness
zoff=0.00001 ! Zoffset = 10 microns
thk2=(3/4)*0.0254 ! Panel thickness = 1/2 inch NO = 3/4 inch
thk=thk2/2
k, 1, 0., 0., thk ! Key Points
k, 2, 0., 0.0145036, thk
k, 3, 0.0125605, 0.0217554, thk
k, 4, 0.025121, 0.0145036, thk
k, 5, 0.025121, 0., thk
k, 6, 0.0125605, -0.0072518, thk
pi=3.141592654
chm=(1/16)*0.0254 ! 1/16 inch chamfer
xchm=chm*sin(60*pi/180)
ychm=chm*sin(30*pi/180)
C1
k, 7, 0., 0., chm
k, 8, 0., 0.0145036, chm
k, 9, 0.0125605, 0.0217554, chm
k, 10, 0.025121, 0.0145036, chm
k, 11, 0.025121, 0., chm
k, 12, 0.0125605, -0.0072518, chm
k, 13, xchm, ychm, 0.
k, 14, xchm, (0.0145036-ychm), 0.
k, 15, 0.0125605, (0.0217554-chm), 0.
k, 16, (0.025121-xchm), (0.0145036-ychm), 0.
k, 17, (0.025121-xchm), ychm, 0.
k, 18, 0.0125605, (-0.0072518+chm), 0.
k, 19, xchm, ychm, chm ! Center of arc radii
k, 20, xchm, (0.0145036-ychm), chm
k, 21, 0.0125605, (0.0217554-chm), chm
k, 22, (0.025121-xchm), (0.0145036-ychm), chm
k, 23, (0.025121-xchm), ychm, chm
k, 24, 0.0125605, (-0.0072518+chm), chm
l, 1, 2 ! Line from kp 1 to 2
l, 2, 3
l, 3, 4
l, 4, 5
l, 5, 6
l, 6, 1
l, 7, 8
l, 8, 9
l, 9, 10
l, 10, 11
l, 11, 12
l, 12, 7
l, 13, 14
l, 14, 15
l, 15, 16
l, 16, 17
l, 17, 18
l, 18, 13
l, 1, 7
l, 2, 8
l, 3, 9
l, 4, 10
l, 5, 11
l, 6, 12
larc, 7, 13, 19, 0.0015875 ! Arc command, connect kp 7,13, center at kp 14, radius of 0.0015875
*repeat,6,1,1,1,0
! Mirror
k, 25, 0., 0., -thk
k, 26, 0., 0.0145036, -thk
k, 27, 0.0125605, 0.0217554, -thk
C2
k, 28, 0.025121, 0.0145036, -thk
k, 29, 0.025121, 0., -thk
k, 30, 0.0125605, -0.0072518, -thk
k, 31, 0., 0., -chm
k, 32, 0., 0.0145036, -chm
k, 33, 0.0125605, 0.0217554, -chm
k, 34, 0.025121, 0.0145036, -chm
k, 35, 0.025121, 0., -chm
k, 36, 0.0125605, -0.0072518, -chm
k, 37, xchm, ychm, -chm ! Center of arc radii
k, 38, xchm, (0.0145036-ychm), -chm
k, 39, 0.0125605, (0.0217554-chm), -chm
k, 40, (0.025121-xchm), (0.0145036-ychm), -chm
k, 41, (0.025121-xchm), ychm, -chm
k, 42, 0.0125605, (-0.0072518+chm), -chm
l, 25, 26 ! Line from kp 1 to 2
*repeat,5,1,1
l, 30, 25
l, 31, 32
*repeat,5,1,1
l, 36, 31
l, 25, 31
*repeat,6,1,1
larc, 31, 13, 37, 0.0015875 ! Arc command, connect kp 7,13, center at kp 14, radius of 0.0015875
*repeat,6,1,1,1,0
a,1,2,8,7 ! Area connecting key points 1, 2, 8, 7
*repeat,5,1,1,1,1
a,6,1,7,12
a,7,8,14,13
a,8,9,15,14
a,9,10,16,15
a,10,11,17,16
a,11,12,18,17
a,12,7,13,18
a,13,14,15,16,17,18
a,25,26,32,31
*repeat,5,1,1,1,1
a,30,25,31,36
a,31,32,14,13
a,32,33,15,14
a,33,34,16,15
a,34,35,17,16
a,35,36,18,17
a,36,31,13,18
C3
! Create Elements
asel,s,,,7,12
asel,a,,,20,25
esize,0.001 ! A finer mesh would be prefered, but was creating too many elements - was
reaching max number of nodes for the model
amesh,all
asel,all
mshape,1,2-D ! Enforce triangular elements to minimize the numer of elements on the bottom
surface
aesize,13,0.006
!esize,0.01
amesh,13
mshape ! Return to free-meshing
lsel,s,,,19,24
lsel,a,,,43,48
lesize,all,,,1
!lsel,s,,,1,6
!lsel,a,,,31,36
!lesize,all,,,2
lsel,all
asel,s,,,1,6
asel,a,,,14,19
!aesize,all,0.005
!mshape,1,2-D ! Enforce triangular elements
!mshkey,1 ! Turn on mapped meshing = ensure all elements rectangles
amesh,all
asel,all
!lsel,s,,,13,18,
!lesize,all,,,3 ! Mesh -> Size Controls -> lines in lsel, NDIV = 15
!asel,all
!arsym,z,all,,,0,0,0 ! area symmetry reflection about z-plane, creates new keypoints and lines
! Copy stiffeners
sep=(1/8)*0.0254 ! 1/8 inch separation between stiffeners
xsep=sep*sin(30*pi/180)
ysep=sep*sin(60*pi/180)
agen,2,1,25,1,(0.025121+sep),0.,0.,0,0,0
agen,2,1,25,1,2*(0.025121+sep),0.,0.,0,0,0
agen,2,1,25,1,3*(0.025121+sep),0.,0.,0,0,0
agen,2,1,25,1,4*(0.025121+sep),0.,0.,0,0,0
agen,2,1,(25*5),1,(-0.0125605-xsep),((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*5),1,2*(-0.0125605-xsep),2*((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*5),1,3*(-0.0125605-xsep),3*((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*5),1,4*(-0.0125605-xsep),4*((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*5),1,3*(-0.0125605-xsep),5*((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*5),1,2*(-0.0125605-xsep),6*((0.0072518+0.0145036)+ysep),0.,0,0,0
C4
agen,2,1,(25*5),1,1*(-0.0125605-xsep),7*((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*5),1,0*(-0.0125605-xsep),8*((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*1),1,5*(0.025121+sep)+(-0.0125605-xsep),7*((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*2),1,4*(0.025121+sep),6*((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*3),1,4*(0.025121+sep)+(-0.0125605-xsep),5*((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*4),1,3*(0.025121+sep),4*((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*3),1,4*(0.025121+sep)+(-0.0125605-xsep),3*((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*2),1,4*(0.025121+sep),2*((0.0072518+0.0145036)+ysep),0.,0,0,0
agen,2,1,(25*1),1,5*(0.025121+sep)+(-0.0125605-xsep),1*((0.0072518+0.0145036)+ysep),0.,0,0,0
! Connect stiffeners
a,5,4,3,193,203,201,47,44,43
a,51,49,47,223,233,231,77,74,73
!a,81,79,77,253,263,261,107,104,103
*repeat,3,30,30,30,30,30,30,30,30,30
a,3,171,169,167,343,353,351,197,194,193
a,47,201,199,197,373,383,381,227,224,223
*repeat,3,30,30,30,30,30,30,30,30,30,30
a,167,321,319,317,493,503,501,347,344,343
*repeat,2,150,150,150,150,150,150,150,150,150,150
a,47+150,201+150,199+150,197+150,373+150,383+150,381+150,227+150,224+150,223+150
*repeat,3,30,30,30,30,30,30,30,30,30,30
a,47+2*150,201+2*150,199+2*150,197+2*150,373+2*150,383+2*150,381+2*150,227+2*150,224+2*150,223+2*
150
*repeat,3,30,30,30,30,30,30,30,30,30,30
a,2,3,171,173
a,164,167,321,323
*repeat,3,150,150,150,150
a,467,621,619,617,763,773,771,647,644,643
a,647,621+150,619+150,617+150,763+150,773+150,771+150,647+150,644+150,643+150
*repeat,3,150,150,150,150,150,150,150,150,150,150
a,497,651,649,647,793,803,801,677,674,673
*repeat,3,30,30,30,30,30,30,30,30,30,30
a,677,651+150,649+150,647+150,793+150,803+150,801+150,677+150,674+150,673+150
*repeat,3,30,30,30,30,30,30,30,30,30,30
a,677+1*150,651+2*150,649+2*150,647+2*150,793+2*150,803+2*150,801+2*150,677+2*150,674+2*150,673+2
*150
*repeat,3,30,30,30,30,30,30,30,30,30,30
a,677+2*150,651+3*150,649+3*150,647+3*150,793+3*150,803+3*150,801+3*150,677+3*150,674+3*150,673+3
*150
*repeat,3,30,30,30,30,30,30,30,30,30,30
a,1097,1221,1219,1244,1243
*repeat,4,30,30,30,30,30
C5
a,1397,1191,1189,1187,1333,1343,1341,1367,1364,1363
a,1457,1041,1039,1037,1183,1193,1191,1397,1394,1393
a,1487,1401,1399,1397,1363,1373,1371,1427,1424,1423
a,1547,891,889,887,1033,1043,1041,1457,1454,1453
a,1577,1461,1459,1457,1393,1403,1401,1487,1484,1483
*repeat,2,30,30,30,30,30,30,30,30,30,30
a,587,741,739,737,883,893,891,1547,1544,1543
a,1667,1551,1549,1547,1453,1463,1461,1577,1574,1573
*repeat,3,30,30,30,30,30,30,30,30,30,30
a,437,591,589,587,1543,1553,1551,1667,1664,1663
a,1757,1671,1669,1667,1573,1583,1581,1697,1694,1693
*repeat,2,30,30,30,30,30,30,30,30,30,30
a,287,441,439,437,1663,1673,1671,1757,1754,1753
a,1817,1761,1759,1757,1693,1703,1701,1787,1784,1783
a,137,291,289,287,1753,1763,1761,1817,1814,1813
a,139,137,1813,1823
a,1819,1817,1783,1793
a,1789,1787,1723,1733
a,1729,1727,1633,1643
! Added total of 60 areas (1526-1585)
! Mesh connections
asel,s,,,1526,1585
aesize,all,0.01 ! Minimize elements in connections
amesh,all
arsym,z,all,,,0,0
allsel,all ! Select everything
! Connect reflected areas (stiffener connections) to bottom stiffeners
nummrg,node,1.0e-7,,,, ! Merges coincident nodes
nummrg,kp,1.0e-7,,,, ! Merges coincident keypoints, lines, areas
/sol ! Change to Solution
antype,2 ! Modal analysis
modopt,lanb,10 ! Extract the first ten modes using block lanczos
solve
/post1
set,list
!-----------------------------------------------------------------------------------------------------
!cpintf
!agen,2,all,,,0.,(-2*0.460375),0,0,0
!asel,s,,,201,220
!aclear,all ! Clear elements from selected areas
!adel,all ! Delete overlaping hexagon
allsel,all ! Select all entities
C6
/rep,fast ! Replot
/auto,1 ! Zoom fit
/prep7
!asel,s,,,2,25,23 ! Area select
!nsla,s, ! select nodes in selected area
!lsla,s ! Select lines in selected area
!nsll,s ! Select nodes in selected lines
! Interior nodes top flange hex1 and bottom flange hex2 = 80 - 93 and 1903 - 1916
!cpcyc,all,15e-6,
cp,next,all,80,1916 ! Couple dof's to join flanges together
*repeat,14,,,1,-1
! Exterior nodes top flange hex1 and bottom flange hex2 = 50 - 79 and 1873 - 1902
cp,next,all,50,1902
*repeat,14,,,1,-1
cp,next,all,79,1873
*repeat,14,,,-1,1
! Interior nodes upright flange hex1 and lowleft flange hex3 = 125 - 138 and 3633 - 3646
cp,next,all,125,3646
*repeat,14,,,1,-1
! Exterior nodes upright flange hex1 and lowleft flange hex3 = 95 - 124 and 3605 - 3652
cp,next,all,95,3632
*repeat,14,,,1,-1
cp,next,all,111,3618
*repeat,14,,,1,-1
! Corner nodes upright flange hex1 and lowleft flange hex3
cp,next,all,65,3410
cp,next,all,110,3576
! Interior nodes lowright flange hex2 and upleft flange hex3 = 1858 - 1871 and 3411-3424
cp,next,all,1858,3424
*repeat,14,,,1,-1
! Exterior nodes lowright flange hex2 and upleft flange hex3 = 1828 - 1857 and 3380 - 3410
cp,next,all,1828,3409
*repeat,14,,,1,-1
cp,next,all,1844,3392
*repeat,14,,,1,-1
! Corner nodes lowright flange hex2 and upleft flange hex3
cp,next,all,1798,3394
! cp,next,all,1843,3410 ! Can't couple because already coupled above
! Interior nodes top flange hex3 and bottom flange hex4 = 3456 - 3469 and 5279 - 5292
cp,next,all,3456,5292
*repeat,14,,,1,-1
! Exterior nodes top flange hex3 and bottom flange hex4 = 3426 - 3454 and 5249 - 5278
cp,next,all,3426,5278
*repeat,14,,,1,-1
cp,next,all,3442,5262
*repeat,14,,,1,-1
! Corner nodes upright flange hex3 and bottom flange hex4
cp,next,all,3441,5219
C7
! Interior nodes upright flange hex3 and lowleft flange hex5 = 3501 - 3514 and 7009 - 7022
cp,next,all,3501,7022
*repeat,14,,,1,-1
! Exterior nodes upright flange hex3 and lowleft flange hex5 = 3471 - 3500 and 6952 - 7008
cp,next,all,3471,7008
*repeat,14,,,1,-1
cp,next,all,3487,6994
*repeat,14,,,1,-1
! Corner nodes upright flange hex3 and bottom flange hex5
cp,next,all,3486,6952
! Interior nodes right flange hex3 and left flange hex6 = 3546 - 3559 and 8475 - 8488
cp,next,all,3546,8488
*repeat,14,,,1,-1
! Exterior nodes right flange hex3 and left flange hex6 = 3516 - 3545 and 8443 - 8474
cp,next,all,3532,8456
*repeat,14,,,1,-1
cp,next,all,3516,8473
*repeat,14,,,1,-1
! Corner nodes right flange hex3 and left flange hex6
cp,next,all,3531,8474
! Interior nodes bottom flange hex3 and top flange hex7 = 3591 - 3604 and 10208 - 10221
cp,next,all,3591,10221
*repeat,14,,,1,-1
! Exterior nodes bottom flange hex3 and top flange hex7 = 3561 - 3590 and 10178 - 10207
cp,next,all,3577,10191
*repeat,14,,,1,-1
cp,next,all,3561,10207
*repeat,14,,,1,-1
! Corner nodes bottom flange hex3 and top flange hex7
!cp,next,all,3576,10146
! Interior nodes upright flange hex2 and lowleft flange hex4 = 1813 - 1826 and 5321 - 5334
cp,next,all,1813,5334
*repeat,14,,,1,-1
! Exterior nodes upright flange hex2 and lowleft flange hex4 = 1783 - 1812 and 5293 - 5320
cp,next,all,1783,5320
*repeat,14,,,1,-1
cp,next,all,1799,5306
*repeat,14,,,1,-1
! Corner nodes upright flange hex2 and lowleft flange hex4
cp,next,all,1753,5098
! Interior nodes lowright flange hex4 and upleft flange hex5 = 5234 - 5247 and 6787 - 6800
cp,next,all,5234,6800
*repeat,14,,,1,-1
! Exterior nodes lowright flange hex4 and upleft flange hex5 = 5204 - 5233 and 6755 - 6786
cp,next,all,5220,6768
*repeat,14,,,1,-1
cp,next,all,5204,6785
*repeat,14,,,1,-1
! Corner nodes lowright flange hex4 and upleft flange hex5
cp,next,all,6770,5174
C8
! Interior nodes bottom flange hex5 and top flange hex6 = 6967 - 6980 and 8520 - 8533
cp,next,all,6967,8533
*repeat,14,,,1,-1
! Exterior nodes bottom flange hex5 and top flange hex6 = 6937 - 6966 and 8490 - 8519
cp,next,all,6937,8519
*repeat,14,,,1,-1
cp,next,all,6953,8503
*repeat,14,,,1,-1
! Corner nodes bottom flange hex5 and top flange hex6
cp,next,all,6907,8505
! Areas 106, 123 = lowleft flange hex6 and upright flange hex7
! Interior nodes = 8697 - 8710 and 10253 - 10266
cp,next,all,8697,10266
*repeat,14,,,1,-1
! Exterior nodes = 8669 - 8696 and 10223 - 10252
cp,next,all,8669,10252
*repeat,14,,,1,-1
cp,next,all,8683,10236
*repeat,14,,,1,-1
! Corner nodes
cp,next,all,8640,10238
! Areas 4, 121 = lowright flange hex1 and upleft flange hex7
! Interior nodes = 170 - 183 and 10163 - 10176
cp,next,all,170,10176
*repeat,14,,,1,-1
! Exterior nodes = 140 - 169 and 10131 - 10162
cp,next,all,156,10144
*repeat,14,,,1,-1
cp,next,all,140,10161
*repeat,14,,,1,-1
! Corner nodes
cp,next,all,155,10162
A = 11816 ! total nodes in 7 panel configuration
cp,next,all,80+A,1916+A
*repeat,14,,,1,-1
cp,next,all,50+A,1902+A
*repeat,14,,,1,-1
cp,next,all,79+A,1873+A
*repeat,14,,,-1,1
!!!!!!!!!!!!!!!
! Areas 26, 283
! Interior nodes
cp,next,all,1945,25458
*repeat,14,,,1,-1
! Exterior nodes
cp,next,all,1917,25444
*repeat,14,,,1,-1
cp,next,all,1931,25428
*repeat,14,,,1,-1
C9
! Corner nodes
cp,next,all,1722,25385
! Areas 1, 284
! Interior nodes
cp,next,all,35,25503
*repeat,14,,,1,-1
! Exterior nodes
cp,next,all,3,25489
*repeat,14,,,1,-1
cp,next,all,20,25473
*repeat,14,,,1,-1
! Corner nodes
cp,next,all,34,25475
! Areas 285, 202
! Interior nodes
cp,next,all,23712,25548
*repeat,14,,,1,-1
! Exterior nodes
cp,next,all,23682,25534
*repeat,14,,,1,-1
cp,next,all,23698,25518
*repeat,14,,,1,-1
! Corner nodes
cp,next,all,23650,25520
! Areas 6, 203
! Interior nodes
cp,next,all,257,23770
*repeat,14,,,1,-1
! Exterior nodes
cp,next,all,229,23756
*repeat,14,,,1,-1
cp,next,all,243,23740
*repeat,14,,,1,-1
! Corner nodes
cp,next,all,200,23742
! Areas 204, 161
! Interior nodes
cp,next,all,13539,23815
*repeat,14,,,1,-1
! Exterior nodes
cp,next,all,13507,23801
*repeat,14,,,1,-1
cp,next,all,13524,23785
*repeat,14,,,1,-1
! Corner nodes
cp,next,all,13538,23787
! Areas 302, 205
! Interior nodes
cp,next,all,23847,27101
*repeat,14,,,1,-1
! Exterior nodes
C10
Description:CWD,'C:\jtblac0' !/CWD,C:\Documents and Settings\Net Meeting\My Documents\Black Ansys. /filnam Thickness of cup (double that of original membrane = 5 mil * 2) r,2,0.12e-3,0.12e-3 cp,next,all,18571,10297. *repeat,14,,,1,-1.