/batch,list
/verify,demonstration_problem1_18
JPGPRF,500,100,1
/title,Bend pipe model meshed with PIPE18 elements

/COM, PIPE18 


/filnam,18


/prep7

et,1,pipe18						! Element 1 - PIPE18 (Pipe Bend Element)


/com, Real Constants
/com,****************

fact=1.5

r,1,7.288*fact,0.1205,36.30,0.0,0.0,0.0	! Outer Diameter,Wall Thickness,Radius of Curvature


/com, Material properties
/com, ********************


mp,ex,1,24e6					
mp,nuxy,1,0.3	
mp,dens,1,0.000125


/com, Nodes
/com,*******


  n,    14,    0.0000,      108.90,      0.0000    
  n,    26,    36.300,      145.20,      0.0000    
  n,    76,    10.632,      134.57,      0.0000    
  n,    77,   0.77718E-01,  111.27,      0.0000    
  n,    78,   0.31055,      113.64,      0.0000    
  n,    79,   0.69749,      115.98,      0.0000    
  n,    80,    1.2369,      118.30,      0.0000    
  n,    81,    1.9264,      120.57,      0.0000    
  n,    82,    2.7632,      122.79,      0.0000    
  n,    83,    3.7435,      124.96,      0.0000    
  n,    84,    4.8633,      127.05,      0.0000    
  n,    85,    6.1176,      129.07,      0.0000    
  n,    86,    7.5013,      131.00,      0.0000    
  n,    87,    9.0082,      132.83,      0.0000    
  n,    88,    12.366,      136.19,      0.0000    
  n,    89,    14.202,      137.70,      0.0000    
  n,    90,    16.133,      139.08,      0.0000    
  n,    91,    18.150,      140.34,      0.0000    
  n,    92,    20.245,      141.46,      0.0000 
  n,    93,    22.245,      142.44,      0.0000   
  n,    94,    24.632,      143.27,      0.0000    
  n,    95,    26.905,      143.96,      0.0000    
  n,    96,    29.218,      144.50,      0.0000    
  n,    97,    31.562,      144.89,      0.0000    
  n,    98,    33.926,      145.12,      0.0000    

n,100,0,90.750,0
n,101,42.250,145.20,0



/com, Elements
/com, *********************

type,1						
mat,1							
real,1

e,     14,    78,    100  
e,     78,    80,    14  
e,     80,    82,    78  
e,     82,    84,    80  
e,     84,    86,    82  
e,     86,    76,    84  
e,     76,    89,    86  
e,     89,    91,    93  
e,     91,    93,    95  
e,     93,    95,    97  
e,     95,    97,    26  
e,     97,    26,    101  
  
 
					
/com, Constraints
/com,*************

d,14,all,0
allsel,all
finish

/com,
/com,=============
/com,	Modal Solve
/com,=============
/com,

/solution
antype,modal
outres,all,all					
modopt,lanb,15					! LANB mode extraction method				
mxpand,15,,,yes					! Extract all 15 modes				
solve							
finish

/post1
set,list						! Frequencies obtained from Modal Solve
/show,jpeg
/eshape,1,1
/efacet,2
/view,1,1,1,1
/graphics,power
eplot
/replot
set,1,1
plnsol,u,sum
set,1,2
plnsol,u,sum
set,1,3
plnsol,u,sum
set,1,4
plnsol,u,sum
set,1,5
plnsol,u,sum
set,1,6
plnsol,u,sum
set,1,7
plnsol,u,sum
set,1,8
plnsol,u,sum
set,1,9
plnsol,u,sum
set,1,10
plnsol,u,sum
set,1,11
plnsol,u,sum
set,1,12
plnsol,u,sum
set,1,13
plnsol,u,sum
set,1,14
plnsol,u,sum
set,1,15
plnsol,u,sum
finish
							


/com,----------------------------------------------------------------------------

/com,
/com,================
/com,	Spectrum Solve
/com,================
/com,

/solution
antype,spectr					! Perform Spectrum Analysis
spopt,sprs						! Single Point Excitation Response Spectrum
dmprat,0.02						! Constant Damping Ratio
grp,0.00						! Group Modes based on significance level
svtyp,2						! Seismic Acceleration Response Loading

sed,1							! Excitation in X direction
freq
freq,3.1,4,5,5.81,7.1,8.77,10.99,14.08,17.24
freq,25,28.5,30,34.97,55,80,140,162,588.93
sv,0.02,400,871,871,700,1188,1188,440,775,775
sv,0.02,533.2,467.2,443.6,380,289,239.4,192.6,184.1,145
solve
sed,0,0,0

sed,,1						! Excitation in Y direction
freq
freq,3.1,4,5,5.81,7.1,8.77,10.99,14.08,17.24
freq,25,28.5,30,34.97,55,80,140,162,588.93
sv,0.02,266.7,580.7,580.7,466.7,792,792,293.3,516.7,516.7
sv,0.02,355.5,311.5,295.7,253.3,192.7,159.6,128.4,122.7,96.7
solve
sed,0,0,0

sed,,,1						! Excitation in Z direction
freq
freq,3.1,4,5,5.81,7.1,8.77,10.99,14.08,17.24
freq,25,28.5,30,34.97,55,80,140,162,588.93
sv,0.02,400,871,871,700,1188,1188,440,775,775
sv,0.02,533.2,467.2,443.6,380,289,239.4,192.6,184.1,145
solve
fini

/com,----------------------------------------------------------------------------

/post1
/input,18,mcom

/com, *========================================================
/com, * Displacement Sum and Equivalent Stress
/com, *==========================================================			

plnsol,u,sum
*get,umax,plnsol,0,max
*get,umin,plnsol,0,min
plnsol,s,eqv
*get,smax,plnsol,0,max
*get,smin,plnsol,0,min
/show,close
*stat,umax
*stat,umin
*stat,smax
*stat,smin
finish
/exit,nosave