15.11.2012 Views

Mechanical APDL Basic Analysis Guide - Ansys

Mechanical APDL Basic Analysis Guide - Ansys

Mechanical APDL Basic Analysis Guide - Ansys

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

This problem consists of a thermal-stress analysis with a pressure that varies as a function of (x,y,z,time,temp).<br />

The table and table values are first defined. The table is applied as a pressure boundary condition to the<br />

faces of a rectangular beam. Time and temperature are prescribed for two load steps and solved.<br />

/batch,list<br />

/title, Illustrate use of 5D table for SF command (pressure) loading<br />

!!!!<br />

!!!!<br />

!!!! create 5D table for applied pressure<br />

X1=2 !!!! X dimensionality<br />

Y1=2 !!!! Y dimensionality<br />

Z1=10 !!!! Z dimensionality<br />

D4=5 !!!! time dimensionality<br />

D5=5 !!!! temperature dimensionality<br />

len=10 !!!! cantilever beam length<br />

wid=1 !!!! cantilever beam width<br />

hth=2 !!!! cantilever beam height<br />

*dim,xval,array,X1 !!!! create 1D arrays to load 5D table<br />

xval(1)=0,20 !!!! variations per dimension same<br />

*dim,yval,array,Y1 !!!! but will give different values on each<br />

yval(1)=0,20 !!!! book and shelf<br />

*dim,zval,array,10<br />

zval(1)=10,20,30,40,50,60,70,80,90,100<br />

*dim,tval,array,5<br />

tval(1)=1,.90,.80,.70,.60<br />

*dim,tevl,array,5<br />

tevl(1)=1,1.20,1.30,1.60,1.80<br />

*dim,ccc,tab5,X1,Y1,Z1,D4,D5,X,Y,Z,TIME,TEMP<br />

*taxis,ccc(1,1,1,1,1),1,0,wid !!! X-Dim<br />

*taxis,ccc(1,1,1,1,1),2,0,hth !!! Y-Dim<br />

*taxis,ccc(1,1,1,1,1),3,1,2,3,4,5,6,7,8,9,10 !!! Z-Dim<br />

*taxis,ccc(1,1,1,1,1),4,0,10,20,30,40 !!! Time<br />

*taxis,ccc(1,1,1,1,1),5,0,50,100,150,200 !!! Temp<br />

*do,ii,1,2<br />

*do,jj,1,2<br />

*do,kk,1,10<br />

*do,ll,1,5<br />

*do,mm,1,5<br />

ccc(ii,jj,kk,ll,mm)=(xval(ii)+yval(jj)+zval(kk))*tval(ll)*tevl(mm)<br />

*enddo<br />

*enddo<br />

*enddo<br />

*enddo<br />

*enddo<br />

/prep7<br />

block,,wid,,hth,,len !!!! create beam volume<br />

et,1,5 !!!! use SOLID5<br />

esize,0.5 !!!! element size<br />

mshkey,1 !!!! mapped mesh<br />

vmesh,all<br />

mp,ex,1,1e7 !!!! material properties<br />

mp,nuxy,1,.3<br />

mp,kxx,1,1<br />

nsel,s,loc,z,0 !!!! fix end of beam<br />

d,all,all<br />

fini<br />

save !!!! save problem for future restart<br />

/solu<br />

antyp,trans<br />

timint,off<br />

asel,u,loc,z,0<br />

sfa,all,1,pres,%ccc% !!!! apply pressure to all selected areas<br />

alls<br />

2.5.14. Applying Loads Using TABLE Type Array Parameters<br />

Release 13.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information<br />

of ANSYS, Inc. and its subsidiaries and affiliates.<br />

53

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!