ansys简支梁命令流

合集下载

西南交通大学峨眉校区桥梁设计ansys

西南交通大学峨眉校区桥梁设计ansys

(2015~2016学年第一学期)课程名称:桥梁工程设计名称:ANSYS软件应用(简支梁桥设计) 专业班级:学号:姓名:指导教师:贾宏宇成绩:指导教师(签字):西南交通大学峨眉校区2015 年12 月22日绪论桥梁的种类繁多,如梁桥、拱桥、钢构桥、悬索桥、斜拉桥等等,不同类型的桥梁可以采用不同的建模方法。

桥梁的分析内容又包括静力分析、施工过程模拟、动荷载响应分析等。

可以看出桥梁的整体分析过程比较复杂。

ANSYS通用有限元软件在土木工程应用分析中可发挥巨大的作用。

我们用它来分析桥梁工程结构,可以很好的模拟各种类型桥梁的受力、施工工况、动荷载的耦合等。

ANSYS程序有丰富的单元库和材料库,几乎可以仿真模拟出任何形式的桥梁。

静力分析中,可以较精确的反应出结构的变形、应力分布、内力情况等;动力分析中,也可精确的表达结构的自振频率、振型、荷载耦合、时程响应等特性。

利用有限元软件对桥梁结构进行全桥模拟分析,可以得出较准确的分析结果。

作为一种重要的工程结构,桥梁的精确分析具有较大的工程价值。

总体上来说,主要的模拟分析过程如下:(1)根据计算数据,选择合适的单元和材料,建立准确的桥梁有限元模型。

(2)施加静力或者动力荷载,选择适当的边界条件。

(3)根据分析问题的不同,选择合适的求解器进行求解。

(4)在后处理器中观察计算结果。

(5)如有需要,调整模型或者荷载条件,重新分析计算。

目录1、桥梁介绍 (2)2、有限元模型 (3)2、1桥梁单元介绍 (3)2、2桥梁简支模型模拟 (5)2、3桥梁桥面模拟 (8)2、4桥梁桥墩模拟 (12)2、5桥梁上加集中荷载 (14)3、结论.................................................................. 错误!未定义书签。

1、桥梁介绍鉴于本人水平有限,仅能模拟设计跨径为30米左右的中桥,此是人生的第一座桥,将它取名为:Lu Er bridge。

ANSYS工程结构数值分析---命令流实例

ANSYS工程结构数值分析---命令流实例

!------------------------------------------------------!EX8.26 钢筋混凝土简支梁数值分析!分离式模型,关闭压碎,keyopt(1)=0,keyopt(7)=1 !力加载,位移收敛准则,误差1.5%,1/4模型分析!--------------------------------------------finish/clear/config,nres,2000/prep7!1.定义单元与材料性质--------------------et,1,solid65,,,,,,,1 !K1=0,k7=1et,2,link8mp,ex,1,13585mp,prxy,1,0.2fc=14.3ft=1.43tb,concr,1tbdata,,0.5,0.95,ft,-1tb,miso,1,,11tbpt,,0.0002,fc*0.19tbpt,,0.0004,fc*0.36tbpt,,0.0006,fc*0.51tbpt,,0.0008,fc*0.64tbpt,,0.001,fc*0.75tbpt,,0.0012,fc*0.84tbpt,,0.0014,fc*0.91tbpt,,0.0016,fc*0.96tbpt,,0.0018,fc*0.99tbpt,,0.002,fctbpt,,0.0033,fc*0.85mp,ex,2,2.0e5mp,prxy,2,0.3tb,biso,2tbdata,,300,0pi=acos(-1)r,1,0.25*pi*22*22r,2,0.25*pi*22*22/2r,3,0.25*pi*10*10r,4,0.25*pi*10*10/2!2.创建几何模型blc4,,,150/2,300,2000/2*do,i,1,9wpoff,,,100vsbw,all*enddo wpcsys,-1 wpoff,,,50 vsbw,all wpcsys,-1 wprota,,-90 wpoff,,,30 vsbw,all wpoff,,,240 vsbw,all wpcsys,-1 wpoff,30 wprota,,,90 vsbw,all wpcsys,-1!3.划分钢筋网格elemsiz=50 lsel,s,loc,x,30 lsel,r,loc,y,30 cm,zj,linelatt,2,1,2 lesize,all,elemsiz lsel,s,loc,x,75 lsel,r,loc,y,30 cm,zjb,line latt,2,2,2 lesize,all,elemsiz lsel,s,loc,x,30 lsel,r,loc,y,270 cm,jlj,linelatt,2,3,2 lesize,all,elemsiz lsel,s,tan1,z lsel,r,loc,y,30,270 lsel,r,loc,x,30,70 lsel,u,loc,z,50 cm,gj,linelatt,2,3,2 lesize,all,elemsiz lsel,s,loc,z,0 lsel,r,loc,y,30,270 lsel,r,loc,x,30,70 cm,gjb,line latt,2,4,2lesize,all,elemsizlsel,allcmsel,s,zjcmsel,a,zjbcmsel,a,jljcmsel,a,gjcmsel,a,gjbcm,gj,linelmesh,alllsel,all!4.划分混凝土网格vatt,1,,1mshkey,1esize,elemsizvmesh,allallsel,all!5.施加荷载和约束lsel,s,loc,y,0lsel,r,loc,z,900dl,all,,uyasel,s,loc,z,0da,all,symmasel,s,loc,x,75da,all,symm!-----------------p0=180000q0=p0/150/100asel,s,loc,z,0,50asel,r,loc,y,300sfa,all,1,pres,q0allsel,all!6.求解控制设置/soluantype,0nsubst,80outres,all,allautos,onneqit,50cnvtol,u,,0.015solve!7.进入POST1查看结果/post1set,lastesel,s,type,,2etable,saxl,ls,1plls,saxl,saxlesel,s,type,,1/device,vector,onplcrackeall!8.进入时程后处理/post26nsol,2,205,u,yprod,3,1,,,,,,p0/1000prod,4,2,,,,,,-1xvar,4plvar,3!EX2.6D 60kg/m钢轨实体建模FINISH/CLEAR/PREP7!1.定义参数H1=30.5H2=48.5H3=48.5B1=45.75B2=29.25B3=16.5B4=36.5B5=10XD1=1/3XD2=1/9XD3=1/3XD4=1/20R0=400R1=2R2=4R3=40R4=20R5=25R7=13R8=80R9=300R10=2FAI=43H=H1+2*H2+H3!2.创建轨底主要组成部分的线K,1K,2,B1+B2K,3,B1+B2,H1-B1*XD1-B2*XD2K,4,B1,H1-B1*XD1K,5,0,H1*DO,I,1,4L,I,I+1*ENDDO!3.计算确定轨头下三个圆弧的位置CTA=A TAN(XD3)BTA=(90-FAI)*ACOS(-1)/180-CTAA=1/TAN(CTA)C1=B3/2+R0-R6*SIN(CTA)-(R5-R6)*COS(BTA)C2=R5*SIN(BTA)+R6*COS(CTA)-R6*SIN(BTA)-H2C=(C1-C2/TAN(CTA))/(R0-R5)C3=A*C-SQRT(A*A-C*C+1)C3=C3/(A*A+1)REFA=ASIN(C3)C1=R6*SIN(CTA)+(R5-R6)*COS(BTA)+(R0-R5)*COS(REFA) !4.创建轨腰和轨头结构线ROUX=B3/2+R0-C1ROUY=ROUX*TAN(CTA)ANGI=ASIN((H1+H2)/R0)K,6,B3/2+R0-R0*COS(ANGI)K,7,B3/2+R0-R0*COS(REFA),H1+H2+R0*SIN(REFA) LARC,6,7,2,R0DX1=R6*(COS(BTA)-SIN(CTA))DY1=R6*(COS(CTA)-SIN(BTA))K,8,ROUX-DX1,H1+2*H2+ROUY-DY1K,9,ROUX,H1+2*H2+ROUYLARC,7,8,2,R5LARC,8,9,2,R6K,10,B4,H1+2*H2+B4*XD3K,11,B4-(H3-B4*XD3)*XD4,HL,9,10L,10,11ANGI=ASIN(B5/R9)K,12,0,HK,13,B5,H-(R9-R9*COS(ANGI)) LARC,12,13,1,R9DX1=B4-B5+R8*SIN(ANGI)ANGI1=ASIN(DX1/R8)Y1=R8*COS(ANGI)-R8*COS(ANGI1) K,14,B4,KY(13)-Y1LARC,13,14,1,R8!5.倒角或弧线连接LFILLT,1,2,R1LFILLT,2,3,R2LFILLT,3,4,R3LPTN,4,5LFILLT,17,18,R4LFILLT,8,9,R10LPTN,9,11LFILLT,20,22,R7LDELE,15,16,1,1LDELE,19,21,2,1LSYMM,X,ALLNUMMRG,ALLNUMCMP,ALLAL,ALLASUMVOFFST,1,300!EX2.9B 斜向圆台建模finish/clear/prep7r0=3r1=2h=4cyl4,,,r0wpoff,r1,,hcyl4,,,r1*do,i,1,4askin,i,i+4*enddova,all!斜向延伸创建圆台vgen,1,1,,,,3*r0,,,,1wpcsyscyl4,,,r0vext,7,,,r1,,h,r1/r0,r1/r0!EX2.9B 已知函数方程时的建模!玫瑰线1==================================== !极坐标方程为ρ=asin(4Φ/3)finish/clear/prep7a=20csys,1*do,i,0,360*3fei=i*acos(-1)/180r0=a*sin(fei*4/3)k,,r0,i*enddo*do,i,1,360*3l,i,i+1*enddo!玫瑰线2=================================== !极坐标方程为ρ=asin(4Φ)finish/clear/prep7a=20csys,1*do,i,0,360fei=i*acos(-1)/180r0=a*sin(fei*4)k,,r0,i*enddo*do,i,1,360l,i,i+1*enddo!长辐圆内旋轮线============================ !参数方程x=(a-b)cost+λcos(a-b)/bt!参数方程y=(a-b)sint-λsin(a-b)/btfinish/clear/prep7a=50b=5lmda=15*afun,deg*do,i,0,360x1=(a-b)*cos(i)+lmda*cos((a-b)/b*i)y1=(a-b)*sin(i)-lmda*sin((a-b)/b*i)k,,x1,y1*enddo*do,i,1,360l,i,i+1*enddo!椭圆抛物面================================ !方程为z=x*x/a/a+y*y/b/b!使用蒙皮方法finish/clear/prep7a=20b=10n=20*do,i,1,niz=i/10lsel,nonewpoff,,,izcyl4,,,1adele,alllsscale,all,,,a*sqrt(iz),b*sqrt(iz),,,,1*enddoallsel*do,i,1,4*(n-1),4askin,i,i+4askin,i+1,i+5askin,i+2,i+6askin,i+3,i+7*enddo!EX2.9C 旋转图素建模!类花瓶建模--------------------finish/clear/prep7K,1K,2,100K,3,300,400K,4,150,550k,5,130,880K,6,300,1150k,7,400,1100k,8,500,1150bsplin,allk,1001,,1000arotat,all,,,,,,1,1001,360,5!类轮建模----------------------finish/clear/prep7!先创建类轮结构的一个断面,然后旋转之blc4,,,4,6cyl4,2,6,1.5asba,1,2k,100,-3k,101,-3,10vrotat,all,,,,,,100,101!EX3.1 自定义箱形截面finish/clear/prep7k,1k,2,2k,3,2,2.2k,4,3,2.3k,5,3,2.5k,6,0,2.5a,1,2,3,4,5,6blc4,,0.2,1.7,2asba,1,2wpoff,1.7wprota,,,90asbw,allwpoff,,,0.3asbw,allwpoff,,0.2wprota,,90asbw,allwpoff,,,-2asbw,allarsym,x,allwpcsysaglue,allet,1,plane82lesize,all,,,1amesh,allsecwrite,myboxfinish/clear/prep7et,1,beam189mp,ex,1,3.0e10mp,prxy,1,0.167sectype,1,beam,mesh secread,mybox,,,meshk,1k,2,10k,100,5,5l,1,2lesize,all,,,20latt,1,,1,,100,,1lmesh,all/eshape,1Eplot!EX3.2 自定义多种材料截面finish/clear/prep7Ro=1.5Ri=1.0csys,1cyl4,,,ricyl4,,,roaptn,allwprota,,90asbwa,allwprota,,,90asbw,allwpcsyset,1,plane82mymat1=4mymat2=7mp,ex,mymat1,1.0mp,ex,mymat2,2.0asel,s,loc,x,0,riaatt,mymat1,,1asel,s,loc,x,ri,roaatt,mymat2,,1allselesize,0.25mshape,0,2dmshkey,1amesh,allsecwrite,mycsolid,sectfinish/clear/prep7et,1,beam189mym1=4mym2=7mp,ex,mym1,3.0e10mp,prxy,mym1,0.167 mp,ex,mym2,2.1e11mp,prxy,mym2,0.3 sectype,1,beam,mesh secread,mycsolid,sect,,mesh k,1k,2,,,10l,1,2lesize,all,,,20latt,,,1,,,,1lmesh,all/eshape,1/pnum,mat,1eplot!EX3.3A 单个方位关键点示例FINISH/CLEAR/PREP7ET,1,BEAM189MP,EX,1,2.1E5MP,PRXY,1,0.3SECTYPE,1,BEAM,ISECDATA,100,40,160,10,10,8K,1K,2,,,1000L,1,2K,100,,500,500LATT,1,,1,,100,,1LGEN,4,1,,,500LESIZE,ALL,,,10LMESH,ALL/ESHAPE,1EPLOT!EX3.3B 同时使用KB和KE方位关键点示例FINISH/CLEAR/PREP7ET,1,BEAM189MP,EX,1,2.1E5MP,PRXY,1,0.3SECTYPE,1,BEAM,ISECDATA,100,40,160,10,10,8L0=1000DL=500DXC=400K,1K,2,,,L0L,1,2K,100,,DLK,200,DXC,-DLK,300,2*DXC,DLK,301,2*DXC+DLK,400K,500,8*DXCLGEN,5,1,,,DXCLATT,1,,1,,100,,1LSEL,S,,,2LATT,1,,1,,200,,1LSEL,S,,,3LATT,1,,1,,300,301,1LSEL,S,,,4LATT,1,,1,,400,,1LSEL,S,,,5LATT,1,,1,,500,,1LSEL,ALLLESIZE,ALL,,,50LMESH,ALL/ESHAPE,1EPLOT!EX3.3C 双方位关键点翻转示例FINISH/CLEAR/PREP7ET,1,BEAM189MP,EX,1,2.1E5MP,PRXY,1,0.3SECTYPE,1,BEAM,I SECDATA,100,40,160,10,10,8L0=1000DL=500DXC=400K,1K,2,,,L0K,3,DXCK,4,DXC,,L0/2K,5,DXC,,L0L,1,2L,3,4L,4,5K,100,,DLk,101,,-DLK,200,DXC,DLk,201,2*DXCK,202,DXC,-DLLATT,1,,1,,100,101,1lesize,all,,,100LSEL,S,,,2LATT,1,,1,,200,201,1lesize,all,,,50LSEL,S,,,3LATT,1,,1,,201,202,1lesize,all,,,50LSEL,ALLLMESH,ALL/ESHAPE,1EPLOT!EX3.4A 两种单元形状和两种网格划分比较finish/clear/prep7et,1,plane82k,1k,2,8k,3,7,6k,4,1,6a,1,2,3,4esize,1mshape,0mshkey,0!mshape,0!mshkey,1!mshape,1!mshkey,0!mshape,1!mshkey,1amesh,all!EX3.4B 中间节点位置控制网格划分比较finish/clear/prep7cyl4,,,4,,8,60lesize,all,,,2mshape,0mshkey,1mshmid,0!mshmid,1!mshmid,2amesh,all!EX3.5 线上单元尺寸设置示例!下边密上边稀finish/clear/prep7et,1,plane82blc4,,,10,10lsel,s,tan1,ylesize,all,,,10lsel,s,loc,x,0lesize,all,,,9,1/8lsel,s,loc,x,10lesize,all,,,9,8lsel,allmshape,0mshkey,1amesh,all!中间密外边稀finish/clear/prep7et,1,plane82blc4,,,10,10lsel,s,tan1,ylesize,all,,,10,-1/5lsel,s,tan1,xlesize,all,,,9,-1/8lsel,allmshape,0mshkey,1amesh,all!EX3.6 合并线和连接线以进行映射网格划分finish/clear/prep7et,1,plane82k,1,5k,2,10k,3,11,6k,4,6,15k,5,-1,8k,6,,4l,1,2l,2,3l,3,4larc,4,5,3,10l,5,6l,6,1al,allesize,3mshape,0mshkey,1lccat,1,2lcomb,4,5amesh,all!EX3.7 合并线或连接线的网格划分设置finish/clear/prep7et,1,plane82k,1,5k,2,10k,3,11,6k,4,6,15k,5,-1,8k,6,,4l,1,2l,2,3l,3,4larc,4,5,3,10l,5,6l,6,1al,allesize,,10lesize,6,,,8lesize,1,,,4lesize,2,,,3lesize,4,,,5lesize,5,,,2mshape,0mshkey,1lcomb,1,2!lccat,1,2!如采用lcatt,1,2则采用7个划分数lcomb,4,5amesh,all!EX3.7B 简化映射网格划分finish/clear/prep7et,1,plane82k,1,5k,2,10k,3,11,6k,4,6,15k,5,-1,8k,6,,4l,1,2l,2,3l,3,4larc,4,5,3,10l,5,6l,6,1al,allesize,,6mshape,0amap,1,2,5,3,4!EX3.8A 过渡四边形映射网格finish/clear/prep7k,1k,2,10,-1k,3,8,6k,4,1,3a,1,2,3,4lesize,1,,,8lesize,3,,,3lesize,4,,,7lesize,2,,,2mshape,0,2dmshkey,1amesh,all!EX3.8B 过渡四边形映射网格finish/clear/prep7et,1,plane42k,1k,2,10,-1k,3,8,6k,4,1,3a,1,2,3,4lesize,1,,,11lesize,3,,,3lesize,4,,,2lesize,2,,,2mshape,0,2dmshkey,1amesh,all!EX3.9A 过渡六面体映射网格划分finish/clear/prep7et,1,95blc4,,,8,8,8lesize,all,,,3lesize,5,,,15allselmshape,0,3dvmesh,all!EX3.9B 过渡六面体映射网格划分finish/clear/prep7et,1,95blc4,,,8,8,8lesize,all,,,4lesize,7,,,12mshape,0,3dmshkey,1vmesh,all!EX3.9C 过渡六面体映射网格划分finish/clear/prep7et,1,95blc4,,,8,8,8lsel,s,,,1,8,7lesize,all,,,6lsel,s,,,2,7,5lesize,all,,,3lsel,s,,,4,5lesize,all,,,7lsel,s,,,3,6,3lesize,all,,,2lsel,s,,,9,12,1lesize,all,,,5allselmshape,0,3dmshkey,1vmesh,all!EX3.9D 过渡六面体映射网格划分finish/clear/prep7et,1,95blc4,,,8,8,8lesize,2,,,2lesize,4,,,2lesize,5,,,2lesize,1,,,3lesize,3,,,3lesize,7,,,6lesize,6,,,7lesize,11,,,7lesize,9,,,3lesize,10,,,3lesize,12,,,3allselmshape,0,3dmshkey,1vmesh,all!EX3.10 带两孔的长方体的扫掠网格划分finish/clear/prep7a=10r=2et,1,mesh200,6et,2,solid45blc4,,,2*a,a,acyl4,a/2,a/2,r,,,,awprota,,90cyl4,1.5*a,a/2,r,,,,-avsbv,1,2vsbv,4,3wprota,,,90wpoff,,,a/2vsbw,allwpoff,,,a/2vsbw,allwpoff,,,a/2vsbw,allwpcsyswpoff,,a/2,a/2vsbw,allwprota,,90vsbw,allwpcsysesize,1amap,105,15,16,26,63amap,107,16,13,60,26amap,108,13,14,28,60amap,103,15,14,28,63lesize,94,,,4lesize,79,,,5vsel,s,loc,x,0,avsweep,allasel,s,loc,y,aasel,r,loc,x,a,2*alccat,2,45lccat,57,71lccat,68,78lccat,65,72mshape,0,2dmshkey,1amesh,allvsel,s,loc,x,a,2*avsweep,allallsel/view,1,1,2,3Eplot!EX3.11 拉伸类命令生成体单元网格finish/clear/prep7et,1,82et,2,95blc4,,,4,4blc4,6,,4,4blc4,12,,4,4blc4,18,,4,4esize,1amesh,allesize,,8vrotat,1,,,,,,1,4,90vext,2,,,,,10,0.5,0.5voffst,3,10vdrag,4,,,,,,35!EX3.12 圆的网格划分finish/prep7et,1,plane82r0=10cyl4,,,r0cyl4,3*r0,,,,r0 wprota,,90asbw,allwprota,,,90asbw,allwpoff,,,3*r0asbw,allwpcsys,-1asel,s,loc,x,-r0,r0lsla,slesize,all,,,8mshape,0,2dmshkey,1amesh,allallselasel,s,loc,x,2*r0,4*r0 lesize,all,,,8lsel,r,length,,r0lesize,all,,,8,0.1,1 amesh,allallsel!EX3.13 圆环的网格划分finish/clear/prep7et,1,plane82r0=10cyl4,,,r0/3,,r0,90cyl4,2*r0,,r0/10,,r0,90 asel,s,loc,x,-r0,r0lsla,slesize,all,,,8lsel,r,length,,r0*2/3 lesize,all,,,3,,1 mshape,0,2dmshkey,1amesh,allasel,s,loc,x,2*r0,4*r0lesize,5,,,12lesize,7,,,6lsel,s,length,,r0*9/10lesize,all,,,7amesh,all!EX3.14 圆柱面和圆柱体的网格划分!圆柱面finish/clear/prep7r0=10h0=50et,1,shell63cyl4,,,r0adele,1cm,l1cm,linek,50k,51,,,h0l,50,51adrag,l1cm,,,,,,5lsel,s,loc,z,0lesize,all,,,6lsel,s,length,,h0lesize,all,,,8mshape,0,2dmshkey,1amesh,all!圆柱体finish/clear/prep7r0=10h0=50et,1,solid95cyl4,,,r0,,,,h0wprota,,90vsbw,allwprota,,,90vsbw,allmshape,0,3dmshkey,1lsel,s,loc,z,0lsel,s,length,,h0lesize,all,,,8vmesh,all!EX3.15 圆锥的网格划分!扫掠网格划分finish/clear/prep7cone,10,,,15,,90et,1,200,7et,2,95lsel,s,,,5,6lesize,all,,,12,0.5lsel,alllesize,3,,,6mshape,0,2dmshkey,1amesh,3vsweep,1,3,4vsymm,x,allvsymm,y,allvglue,all!六面体映射网格划分finish/clear/prep7cone,10,,,15,,90et,2,95lesize,all,,,8mshape,0,3dmshkey,1vmesh,allvsymm,x,allvsymm,y,allvglue,all!EX3.16 正多边形面的通用网格划分finish/clear/prep7ns=11rpr4,ns,,,10kp0=100+nsk,kp0*if,mod(ns,2),eq,0,then*do,i,1,ns/2l,kp0,2*i-1*enddo*else*do,i,1,nsl,kp0,i*enddo*endiflsel,s,,,ns+1,2*nscm,l1cm,lineallselasbl,1,l1cm*if,mod(ns,2),eq,0,then cmsel,s,l1cmlesize,all,,,8lsel,invelesize,all,,,4*elselesize,all,,,8*endifallselmshape,0mshkey,1amesh,all!EX3.17 球体及球面网格划分finish/clear/prep7r0=10sphere,,r0,,90vsbw,allvdele,2,,,1esize,2et,1,solid95mshape,0,3dmshkey,1vsymm,x,all vsymm,y,all vsymm,z,allvglue,allfinish/clear/prep7r0=10sphere,,r0,,90 vsbw,allvdele,2,,,1vdele,allasel,s,loc,x,0asel,a,loc,y,0asel,a,loc,z,0adele,all,,,1allselesize,2et,1,shell63 mshape,0,2d mshkey,1amesh,allarsym,x,allarsym,y,allarsym,z,all nummrg,all!EX3.18 孔板网格划分finish/clear/prep7a0=300b0=800r0=15blc4,,,a0,b0cyl4,a0/4,b0/8,r0 agen,2,2,,,a0/2 agen,2,2,3,1,,b0/8 agen,2,2,5,1,,b0*5/8 asel,s,,,2,9,1cm,a2cm,areaallselwprota,,-90*do,i,1,5wpoff,,,b0/16asbw,all*enddowpoff,,,b0*5/16*do,i,1,5wpoff,,,b0/16asbw,all*enddowprota,,,90*do,i,1,3wpoff,,,a0/4asbw,all*enddowpcsys,-1numcmp,alllsel,s,radius,,r0lesize,all,,,8lsel,invelesize,all,,,4lsel,allet,1,82mshape,0,2dmshkey,1asel,u,loc,y,b0/16,b0*5/16 asel,u,loc,y,b0*11/16,b0*15/16 lsla,slsel,r,tan1,xlesize,all,50,,,,1amesh,allallselamap,21,30,31,54,62 amap,22,31,32,54,64 amap,32,29,30,62,76 amap,33,29,32,64,76amap,42,34,35,76,82 amap,43,35,36,76,84 amap,41,33,34,53,82 amap,44,33,36,53,84amap,19,22,23,49,64 amap,20,23,24,49,60 amap,9,21,22,64,74 amap,31,21,24,60,74amap,38,26,27,74,84 amap,39,27,28,74,80 amap,37,25,26,50,84 amap,40,25,28,50,80amap,17,14,15,43,59 amap,18,15,16,43,63 amap,7,13,14,59,73 amap,8,13,16,63,73amap,34,18,19,73,79 amap,30,17,18,79,44 amap,35,19,20,73,83 amap,36,17,20,44,83amap,15,6,7,39,63amap,16,7,8,39,58amap,4,6,5,63,71amap,5,5,8,58,71amap,27,10,11,71,83 amap,28,11,12,71,78 amap,26,9,10,83,40 amap,29,9,12,40,78!EX3.19 角支架的网格划分finish/clear/prep7blc4,,,150,50blc4,100,,50,-50cyl4,,25,25cyl4,125,-50,25aadd,allnumcmp,allcyl4,,25,10cyl4,125,-50,10 asel,s,,,2,3cm,a1cm,area asel,allasba,1,a1cm lcomb,1,6lfillt,1,2,20 asbl,4,6adele,1,,,1lfillt,3,4,20al,18,19,20 aadd,all numcmp,all!---------------------- wprota,,90 wpoff,,,-25 asbw,all wpoff,,,75 asbw,all wprota,,,90 asbw,all wpoff,,,125 asbw,all wpcsys,-1 wpoff,25 wprota,,,90 asbw,all kwpave,18 asbw,all kwpave,3 wprota,,90 asbw,all kwpave,21 wprota,,-45 asbw,8 wpcsys,-1!-------------------- et,1,plane82 mshape,0,2d mshkey,1 esize,6lesize,33,,,6 lesize,37,,,6 lesize,42,,,6amesh,3,5,2amap,6,9,10,4,23amap,7,9,12,1,23amesh,11,13,2amesh,1,9,8amesh,2,4,2amap,16,3,18,26,28amap,12,14,15,5,28amap,15,13,14,6,28lcomb,19,22lcomb,27,46amesh,10,14,4!========================= !EX3.20 大板小孔的网格划分A finish/clear/prep7a0=100blc4,,,a0,a0cyl4,,,a0/100asba,1,2csys,1k,50,a0/20k,51,a0/20,90l,50,51asbl,all,1wprota,,90,45asbw,allet,1,plane82mshape,0,2dmshkey,1lsel,s,loc,x,0,a0/20lesize,all,,,8lsel,alllesize,7,,,12,0.1lesize,8,,,12,0.1lesize,9,,,12,10amesh,allcsys,0arsym,x,allarsym,y,allnummrg,all!============================= !EX3.20 大板小孔的网格划分Bfinish/clear/prep7a0=100blc4,,,a0,a0cyl4,,,a0/100asba,1,2csys,1k,50,a0/20k,51,a0/20,90l,50,51asbl,all,1et,1,plane82mshape,0,2dmshkey,1lesize,5,,,8lesize,1,,,10lesize,4,,,8,5lesize,6,,,8,5amesh,1lesize,7,,,20,0.1lesize,8,,,20,0.1amap,2,50,51,2,4csys,0arsym,x,allarsym,y,allnummrg,all!EX3.21 Z形面网格划分及局部细分finish/clear/prep7blc4,,,15,10blc4,10,6,14,12aadd,allwprota,,-90wpoff,,,6asbw,allwpoff,,,4wprota,,,90wpoff,,,10asbw,allwpoff,,,5asbw,allwpcsys,-1et,1,82esize,2mshape,0,2dmshkey,1amesh,allkrefine,9,10,1,1,,off !不光滑处理(节点位置不变)aclear,allamesh,allkrefine,9,10,1,1,,smooth !光滑处理,节点位置可改变,但既有单元不删除aclear,allamesh,allkrefine,9,10,1,1 !光滑处理,可删除既有单元重细分,节点位置改变!EX3.22 分布小孔环形面的网格划分finish/clear/prep7r1=15r2=25r3=3n=8cyl4,,,r1,,r2,180/ncyl4,0.5*(r1+r2),,r3asba,1,2kl,2larc,6,8,4,0.5*(r1+r2)asbl,all,4lesize,4,,,4lesize,10,,,4lesize,6,,,8lesize,3,,,6lesize,8,,,4lesize,5,,,8lesize,9,,,4lesize,7,,,4et,1,plane82mshape,0,2damap,2,6,7,4,8amap,1,5,6,8,1!lrefine,5,6,1,1,smootharsym,y,allcsys,1agen,n,all,,,,360/nnummrg,all!EX3.23 同心圆轴体的网格划分finish/clear/prep7cylind,50,0,100,150cylind,40,0,200,250cylind,30,0,100,250cylind,20,0,50,250cylind,10,0,0,250vptn,allwprota,,,90vsbw,allwprota,,90vsbw,allet,1,95csys,1lsel,s,length,,50lesize,all,,,5lsel,invelsel,u,radius,,10,50lesize,all,,,4n1=6n2=6n3=8n4=10n5=12lsel,r,loc,x,0,10lesize,all,,,n1,,1lsel,s,radius,,10lesize,all,,,n1lsel,s,radius,,20lsel,s,radius,,30lesize,all,,,n3lsel,s,radius,,40lesize,all,,,n4lsel,s,radius,,50lesize,all,,,n5allselmshape,0,3dmshkey,1vmesh,all!EX3.24A 圆柱与长方体组合模型的网格划分!采用六面体映射网格划分finish/clear/prep7a0=30h1=15h2=25r0=7blc4,,,a0/2,a0/2,h1cyl4,,,r0,,,90,h1+h2vptn,allaccat,4,6et,1,95esize,3mshape,0,3dmshkey,1vmesh,allasel,s,accaadele,alllsel,s,lccaldele,allallselvsymm,x,allvsymm,y,allnummrg,all!EX3.24B 圆柱与长方体组合模型的网格划分!采用过渡六面体映射网格划分finish/cleara0=30h1=15h2=25r0=7blc4,,,a0/2,a0/2,h1cyl4,,,r0,,,90,h1+h2vptn,alllsel,s,radius,,r0lsel,a,length,,r0lesize,all,,,6lsel,s,loc,z,0lsel,a,loc,z,h1lesize,all,,,7asel,s,loc,x,a0/2asel,a,loc,y,a0/2accat,allallselet,1,95esize,3mshape,0,3dmshkey,1vmesh,allasel,s,accaadele,alllsel,s,lccaldele,allallselvsymm,x,allvsymm,y,allnummrg,all!EX3.25-任意圈数圆柱形螺旋弹簧的扫略网格划分FINISH/CLEAR/PREP7!1.定义弹簧参数(同上)D=4C=8DZ=C*DT=DZ/6N=4.7*IF,T,LT,D,THEN*ENDIFTKPD=90!2.创建全部螺旋线CSYS,1TDEG=N*360TDEG1=MOD(TDEG,TKPD) N0=(TDEG-TDEG1)/TKPD+1 *AFUN,DEG*DO,I,1,N0CTA=(I-1)*TKPDZ=T/360*CTAK,I,DZ/2,CTA,Z*ENDDO*IF,TDEG1,LT,1.0E-2,THEN *ELSEN0=N0+1CTA=CTA+TDEG1Z=T/360*CTAK,N0,DZ/2,CTA,Z*ENDIF*DO,I,1,N0-1L,I,I+1*ENDDOCM,L1,LINE!3.在螺旋线端部创建簧丝截面CSYS,0WPOFF,DZ/2 WPROTA,,90CYL4,,,D/2wprota,,90asbw,allwprota,,,90asbw,allcm,a1cm,areaVDRAG,a1cm,,,,,,L1et,1,mesh200,7et,2,solid95cmsel,s,a1cmlsla,slesize,all,,,6amesh,allallselesize,d/2vsweep,all!EX3.26 具坑缺陷圆柱的网格划分finish/clear/prep7l0=50r0=10r1=5r2=1h0=5et,1,solid45cyl4,,,r0,,,,l0wpave,0,r0,l0/2wprota,,90con4,,,r1,r2,h0vsbv,1,2wprota,,90vsbw,allwpoff,,,r1+3vsbw,allwpoff,,,-2*(r1+3)vsbw,allwprota,,,90vsbw,allwpoff,,,r1+1vsbw,allwpoff,,,-2*(r1+1)vsbw,allwpcsys,-1wprota,,90vsbw,allwpoff,,,-r1vsbw,allwpoff,,,2*r1vsbw,allwpcsys,-1numcmp,allksel,s,loc,z,l0/2ksel,r,loc,x,0ksel,u,loc,y,0*get,kp1,kp,0,num,min kp2=kpnext(kp1) ksel,s,loc,z,l0/2+r2*get,kp3,kp,0,num,min allselk,1000,,-r0,l0/2+5l,kp3,1000asel,none*get,l1,line,0,num,max arotat,l1,,,,,,kp1,kp2 cm,a1cm,areaallselvsba,all,a1cm!vsel,s,loc,z,17,33!vsel,r,loc,x,-6,6!aslv,s!aplotaccat,128,61accat,160,138 accat,224,202 accat,183,35accat,31,134accat,151,164 accat,215,231 accat,82,195accat,130,5accat,162,145 accat,229,209 accat,192,89accat,12,123accat,117,155 accat,109,219 accat,14,178mshape,0,3d mshkey,1esize,1vmesh,all!EX3.27长方体开圆柱槽的网格划分finish/clear/prep7blc5,,,20,10,30wpoff,,5,5cyl4,,,8,,,,10wpoff,,,10cyl4,,,4,,,,12vsel,s,,,2,3cm,v1cm,voluallselwpcsys,-1vsbv,1,v1cmvoffst,15,5voffst,16,3voffst,17,15vptn,allwprota,,,90vsbw,allwpcsys,-1wpoff,,,5vsbw,allwpoff,,,10vsbw,allwpoff,,,12vsbw,allet,1,mesh200,7esize,2mshape,0,2dmshkey,1asel,s,loc,z,30lccat,6,74lccat,8,68amesh,allasel,s,loc,z,0lccat,3,73lccat,1,67amesh,allallselet,2,solid95mshape,0,3dmshkey,1vsweep,all!ex4.1累加节点自由度约束值finish/clear/prep7et,1,beam3k,1k,2,10l,1,2esize,1lmesh,alld,1,ux,1e-2,,,,uyd,1,rotzd,2,alldlistnsel,s,d,u,0,0.1dofsel,s,uydscale,2.5dlistdofsel,alldcum,addd,1,ux,2e-2dlistdcum,ignod,2,uy,1.0dlist!ex4.2 对线施加约束并转换finish/clear/prep7et,1,95blc4,,,10,10,10dl,7,,ux,0.1dl,5,,alldl,11,6,symmdl,10,6,asymdl,6,,symmdllistesize,2vmesh,alldtrandlist!ex4.3 施加集中荷载与节点坐标系finish/clear/prep7et,1,beam4k,1k,2,5k,3,10l,1,2l,2,3local,12,0,,,,90nrotat,alldk,1,allfk,2,fy,-1000esize,1lmesh,allnrotat,alllplotfk,3,fy,1000f,6,fx,-1000sbctraneplot!ex4.4a 3d单元sf加载示例finish/clear/prep7et,1,95blc4,,,10,10,20esize,,4vmesh,allasel,s,loc,y,10sf,all,pres,1000asel,s,loc,z,20nsla,s,1sf,all,pres,1000!ex4.4b 2d单元sf加载示例finish/clear/prep7et,1,82blc4,,,100,200blc4,30,60,40,80asba,1,2wprota,,-90wpoff,,,60asbw,allwpoff,,,80asbw,allwprota,,,90wpoff,,,30asbw,allwpoff,,,40asbw,allwpcsys,-1esize,5amesh,all/psf,pres,norm,2sf,all,pres,100sfdele,all,presnsel,s,loc,x,0sf,all,pres,100nsel,s,loc,x,15,20esln,s,1nsel,r,loc,x,15sf,all,pres,110nsel,s,loc,x,40,60nsel,r,loc,y,10,30esln,s,1sf,all,pres,100lsel,s,loc,x,100nsll,s,1esln,snsel,s,loc,x,95sf,all,pres,-100eplot!ex4.5 节点号及其荷载函数finish/clear/prep7et,1,45blc4,,,10,10,20esize,5vmesh,all*dim,mypres,,100*do,i,1,100mypres(i)=i*10.0*enddosffun,pres,mypres(1)nsel,s,loc,y,10sf,all,pres,10sflist*do,i,1,100mypres(i)=i*50.0*enddonsel,s,loc,z,20sf,all,pres,0allselsflist!ex4.6a 2d平面单元plane82 finish/clear/prep7et,1,82blc4,,,10,50esize,2amesh,allsfe,1,4,pres,,100,50sfe,6,4,pres,,200,40nsel,s,loc,x,10esln,ssfe,all,2,pres,,-100/psf,pres,norm,2,0,1eplot!ex4.6b 3d体单元solid95 finish/clear/prep7et,1,95blc4,,,10,10,30esize,5vmesh,all/psf,pres,norm,2,0,1sfe,22,3,pres,,100sfe,22,6,pres,,100,110,120,130 sfelist!ex4.6c 3d壳单元shell63 finish/clear/prep7et,1,63wprota,,90blc4,,,10,10esize,5amesh,all/psf,pres,norm,2,0,1sfe,1,1,pres,,100sfe,1,3,pres,,100sfe,1,6,pres,,100sfe,4,1,pres,,100,110,120,130!ex4.7 在梁单元上施加荷载finish/clear/prep7et,1,beam3k,1k,2,10l,1,2esize,,10lmesh,all/pnum,elem,1sfbeam,3,1,pres,50,100 sfbeam,5,1,pres,100 sfbeam,7,1,pres,50,100,,,0.2,0.1sfbeam,9,1,pres,100,,,,0.4,-1sfbeam,3,2,pres,50,100,,,0.2,0.1!ex4.8a 在线上施加面荷载finish/clear/prep7et,1,82blc4,,,10,30esize,5amesh,all/psf,pres,norm,2sfl,4,pres,10,60sfl,2,pres,60sftraneplot!ex4.8b 在线上施加面荷载finish/clear/prep7et,1,shell63wprota,,90blc4,,,10,30esize,5amesh,allsfl,3,pres,100sftraneplot!ex4.9 利用荷载梯度在直角坐标系下的施加方法finish/clear/prep7et,1,82blc4,,,10,60esize,2amesh,all/psf,pres,norm,2sfgrad,pres,,y,0,-5nsel,s,loc,x,0nsel,r,loc,y,0,40sf,all,pres,600sfgrad,pres,,y,30,-20nsel,s,loc,x,10sf,all,pres,0allseleplot!ex4.10利用荷载梯度在柱坐标系下的施加方法finish/clear/prep7csys,1k,1,10,-90k,2,10,90k,3,10,90,30l,1,2l,2,3adrag,1,,,,,,2ldele,2,,,1numcmp,allet,1,63esize,2amesh,allsfgrad,pres,1,y,-90,1sfa,all,2,pres,400sftran!可考察下述命令及其施加方法!①!sfgrad,pres,1,y,270,1sfa,all,2,pres,400sftran!②!local,12,1cscir,12,1sfgrad,pres,12,y,270,1sfa,all,2,pres,400sftran!ex4.11 ldread命令的示例finish/clear/filname,ldtest1/prep7et,1,plane82mp,ex,1,2.1e5mp,prxy,1,0.3blc4,,,10,40esize,2amesh,alld,all,allsfl,3,pres,100/solusolve/post1prrsolfinish/filename,ldtest2/solulsclear,allnsel,s,loc,y,0d,all,allallselldread,reac,,,,,ldtest1,rst solve/post1plnsol,s,y!ex4.12 初应力荷载finish/clear/filname,colu1/prep7et,1,plane82mp,ex,1,2e5mp,nuxy,1,0.3blc4,,,1,10esize,2amesh,allnsel,s,loc,y,0d,all,uyd,1,uxnsel,s,loc,y,10sf,all,pres,-10。

Ansys绘制梁的弯矩图和剪力图(图文教程+APDL命令流)

Ansys绘制梁的弯矩图和剪力图(图文教程+APDL命令流)

! 剪力
12
!!!!计算
/solu solve finish /post1
ETABLE,Mz_I,SMISC, 3
! 弯矩
ETABLE,Mz_J,SMISC, 16
11
PLLS, Mz_I, Mz_J
ETABLE,Sz_I,SMISC, 6 ETABLE,Sz_J,SMISC, 19 PLLS, Sz_I, Sz_J
1 LINE STRESS STEP=1 SUB =1 TIME=1 MZ_I MZ_J MIN =-29098.7 ELEM=1 MAX =11417.9 ELEM=38
Y ZX
-29098.7
-20095
-11091.3
-2087.65
6916.03
-24596.8
-15593.2
-6589.49
Ansys 绘制梁的弯矩图和剪力图(图文教程+APDL 命令流)
目录
图文教程............................................................................................................ 2 附件 APDL 命令流 ............................................................................................. 10
2414.19
11417.9
图 1 结果图示例
1
图文教程
Step1 选择单元类型 Step2 设定材料属性
2
Step3 设定截面属性
Step4 建立 6 个关键点

ansys实例命令流-简支梁接触分析命令流

ansys实例命令流-简支梁接触分析命令流

/FILNAME,Simply Supported Beam,1/TITLE, Beam Analysis/PREP7 !前处理模块。

/VIEW,1,1,1,1 !调整窗口视角。

ET,1,PLANE42 !定义单元。

KEYOPT,1,3,3!定义材料属性。

MPTEMP,,,,,,,, !定义触头材料属性。

MPTEMP,1,0MPDATA,EX,1,,2.06e5MPDATA,PRXY,1,,0.35MPTEMP,,,,,,,, !定义接触单元属性(摩擦系数)。

MPTEMP,1,0MPDATA,MU,2,,0.16R,1,30, !梁板度。

! 建立模型。

BLC4, , ,960,80 !建立梁。

CYL4,40,40,20CYL4,920,40,20FLST,3,2,5,ORDE,2FITEM,3,2FITEM,3,-3ASBA, 1,P51X !建立梁完成。

CYL4,40,40,20 !建立轴。

CYL4,920,40,20 !建立轴完成。

! 网格划分。

FLST,5,20,4,ORDE,2 ! 定义网格密度。

FITEM,5,1FITEM,5,-20CM,_Y,LINELSEL, , , ,P51XCM,_Y1,LINECMSEL,,_YLESIZE,_Y1,4, , , , , , ,1 ! 定义网格密度完成。

FLST,5,3,5,ORDE,3 ! 网格划分。

FITEM,5,1FITEM,5,-2FITEM,5,4CM,_Y,AREAASEL, , , ,P51XCM,_Y1,AREACHKMSH,'AREA'CMSEL,S,_YCMDELE,_YCMDELE,_Y1CMDELE,_Y2 ! 网格划分完成。

! 建立接触。

FLST,5,8,4,ORDE,2 ! 定义接触面。

FITEM,5,5FITEM,5,-12LSEL,R, , ,P51XALLSEL,BELOW,LINELPLOTNSLL,S,1CM,contact,NODE ! 定义接触面完成。

ANSYS命令流使用方法(中文)修改

ANSYS命令流使用方法(中文)修改

ANSYS命令流使用方法(中文)修改Finish(退出四大模块,回到BEGIN层)/clear (清空存,开始新的计算)1.定义参数、数组,并赋值.2./prep7(进入前处理)定义几何图形:关键点、线、面、体定义几个所关心的节点,以备后处理时调用节点号。

设材料线弹性、非线性特性设置单元类型及相应KEYOPT设置实常数设置网格划分,划分网格根据需要耦合某些节点自由度定义单元表3./solu加边界条件设置求解选项定义载荷步求解载荷步4./post1(通用后处理)5./post26 (时间历程后处理)6.PLOTCONTROL菜单命令7.参数化设计语言8.理论手册Finish(退出四大模块,回到BEGIN层)/clear (清空存,开始新的计算)1.定义参数、数组,并赋值.dim, par, type, imax, jmax, kmax, var1, vae2, var3 定义数组par: 数组名type:array 数组,如同fortran,下标最小号为1,可以多达三维(缺省)char 字符串组(每个元素最多8个字符)tableimax,jmax, kmax 各维的最大下标号var1,var2,var3 各维变量名,缺省为row,column,plane(当type 为table时) 2./prep7(进入前处理)2.1 设置单元类型及相应KEYOPTET, itype, ename, kop1……kop6, inopr 设定当前单元类型Itype:单元号Ename:单元名设置实常数Keyopt, itype, knum, valueitype: 已定义的单元类型号knum: 单元的关键字号value: 数值注意:如果,则必须使用keyopt命令,否则也可在ET命令中输入2.2 定义几个所关心的节点,以备后处理时调用节点号。

n,node,x,y,z,thxy, thyz, thzx 根据坐标定义节点号如果已有此节点,则原节点被重新定义,一般为最大节点号。

ansys命令流中文说明

ansys命令流中文说明

ansys命令流中文说明展开全文KB、KE: 待划分线的定向关键点起始、终止号SECNUM: 截面类型号u SECPLOT,SECID,MESHKEY 画梁截面的几何形状及网格划分SECID:由SECTYPE命令分配的截面编号MESHKEY:0:不显示网格划分1:显示网格划分u /ESHAPE, SCALE 按看似固体化分的形式显示线、面单元SCALE: 0:简单显示线、面单元1:使用实常数显示单元形状u esurf, xnode, tlab, shape 在已存在的选中单元的自由表面覆盖产生单元xnode: 仅为产生surf151 或surf152单元时使用tlab: 仅用来生成接触元或目标元top 产生单元且法线方向与所覆盖的单元相同,仅对梁或壳有效,对实体单元无效Bottom产生单元且法线方向与所覆盖的单元相反,仅对梁或壳有效,对实体单元无效Reverse 将已产生单元反向Shape: 空与所覆盖单元形状相同Tri 产生三角形表面的目标元注意:选中的单元是由所选节点决定的,而不是选单元,如同将压力加在节点上而不是单元上u Nummrg,label,toler, Gtoler,action,switch 合并相同位置的itemlabel: 要合并的项目node: 节点, Elem,单元,kp: 关键点(也合并线,面及点)mat: 材料,type: 单元类型,Real: 实常数cp:耦合项,CE:约束项,CE: 约束方程,All:所有项toler: 公差Gtoler:实体公差Action: sele 仅选择不合并空合并switch: 较低号还是较高号被保留(low, high)注意:可以先选择一部分项目,再执行合并。

如果多次发生合并命令,一定要先合并节点,再合并关键点。

合并节点后,实体荷载不能转化到单元,此时可合并关键点解决问题。

u Lsel, type, item, comp, vmin, vmax, vinc, kswp 选择线type: s 从全部线中选一组线r 从当前选中线中选一组线a 再选一部线附加给当前选中组aunoneu(unselect)inve: 反向选择item: line 线号loc 坐标length 线长comp: x,y,zkswp: 0 只选线1 选择线及相关关键点、节点和单元u Nsel, type, item, comp, vmin, vmax, vinc, kabs 选择一组节点为下一步做准备Type: S: 选择一组新节点(缺省)R: 在当前组中再选择A: 再选一组附加于当前组U: 在当前组中不选一部分All: 恢复为选中所有None: 全不选Inve: 反向选择Stat: 显示当前选择状态Item: loc: 坐标node: 节点号Comp: 分量Vmin,vmax,vinc: ITEM范围Kabs: “0” 使用正负号“1”仅用绝对值u NSLL,type, nkey 选择与所选线相联系的节点u nsla, type, nkey: 选择与选中面相关的节点type:s 选一套新节点r 从已选节点中再选a 附加一部分节点到已选节点u 从已选节点中去除一部分nkey: 0 仅选面内的节点1 选所有和面相联系的节点(如面内线,关键点处的节点)u esel, type, item, comp, vmin, vmax, vinc, kabs 选择一组单元Type: S: 选择一组单元(缺省)R: 在当前组中再选一部分作为一组A: 为当前组附加单元U: 在当前组中不选一部分单元All: 选所有单元None: 全不选Inve: 反向选择当前组(?)Stat: 显示当前选择状态Item: Elem: 单元号Type: 单元类型号Mat: 材料号Real: 实常数号Esys: 单元坐标系号u ALLSEL, LABT, ENTITY 选中所有项目LABT: ALL: 选所有项目及其低级项目BELOW: 选指定项目的直接下属及更低级项目ENTITY: ALL: 所有项目(缺省)VOLU:体高级AREA:面LINE :线KP:关键点ELEM:单元NODE:节点低级u Tshap,shape 定义接触目标面为2D、3D的简单图形Shape: line:直线Arc:顺时针弧Tria:3点三角形Quad:4点四边形………….2.6 根据需要耦合某些节点自由度u cp, nset, lab,,node1,node2,……node17nset: 耦合组编号lab: ux,uy,uz,rotx,roty,rotznode1-node17: 待耦合的节点号。

(完整版)史上最全的ANSYS命令流大全

(完整版)史上最全的ANSYS命令流大全

《史上最全的ANSYS命令流查询与解释》【1】*************************************************************************************对ansys主要命令的解释1,/PREP7 ! 加载前处理模块2,/CLEAR,NOSTART ! 清除已有的数据, 不读入启动文件的设置(不加载初始化文件)初始化文件是用于记录用户和系统选项设置的文本文件/CLEAR, START !清除系统中的所有数据,读入启动文件的设置/FILENAME, EX10.5 ! 定义工程文件名称/TITLE, EX10.5 SOLID MODEL OF AN AXIAL BEARING ! 指定标题4,F,2,FY,-1000 ! 在2号节点上施加沿着-Y方向大小为1000N的集中力6,FINISH ! 退出模块命令7,/POST1 ! 加载后处理模块8,PLDISP,2 ! 显示结构变形图,参数“2”表示用虚线绘制出原来结构的轮廓9,ETABLE,STRS,LS,1 ! 用轴向应力SAXL的编号”LS,1”定义单元表STRSETABLE, MFORX,SMISC,1 ! 以杆单元的轴力为内容, 建立单元表MFORXETABLE, SAXL, LS, 1 ! 以杆单元的轴向应力为内容, 建立单元表SAXLETABLE, EPELAXL, LEPEL, 1 ! 以杆单元的轴向应变为内容, 建立单元表EPELAXLETABLE,STRS_ST,LS,1 !以杆件的轴向应力“LS,1”为内容定义单元表STRS_STETABLE, STRS_CO, LS,1 !以杆件的轴向应力“LS,1”定义单元表STRS_COETABLE,STRSX,S,X ! 定义X方向的应力为单元表STRSXETABLE,STRSY,S,Y ! 定义Y方向的应力为单元表STRSY*GET,STRSS_ST,ELEM,STEEL_E, ETAB, STRS_ST !从单元表STRS_ST中提取STEEL_E单元的应力结果,存入变量STRSS_ST;*GET, STRSS_CO,ELEM,COPPER_E,ETAB,STRS_CO”从单元表STRS_CO中提取COPPER_E单元的应力结果,存入变量STRSS_CO10 FINISH !退出以前的模块11, /CLEAR, START ! 清除系统中的所有数据,读入启动文件的设置12 /UNITS, SI !申明采用国际单位制14 /NUMBER, 2 !只显示编号, 不使用彩色/NUMBER, 0 ! 显示编号, 并使用彩色15 /SOLU ! 进入求解模块:定义力和位移边界条件,并求解ANTYPE, STATIC ! 申明分析类型是静力分析(STA TIC或者0)OUTPR, BASIC, ALL ! 在输出结果中, 列出所有荷载步的基本计算结果OUTPR,BASIC,ALL !指定输出所有节点的基本数据OUTPR,BASIC,LAST ! 选择基本输出选项,直到最后一个荷载步OUTPR,,1 ! 输出第1个荷载步的基本计算结果OUTPR,BASIC,1 ! 选择第1荷载步的基本输出项目OUTPR,NLOAD,1 ! 指定输出第1荷载步的内容OUTRES,ALL,0 !设置将所有数据不记录到数据库。

ANSYS分析实例与工程应用命令流学习笔记

ANSYS分析实例与工程应用命令流学习笔记

ANSYS分析实例与工程应用命令流学习笔记1大纲静力分析:2杆、3梁、5薄膜和板壳、4实体单元梁单元:简化计算,结构总体受力情况实体单元:较复杂的结构,局部细节的受力情况稳定性分析:6振动、模态分析:7简单振动和梁的振动、8膜板和实体振动2杆系结构的静力分析2.1铰接杆在外力作用下的变形二维杆单元LINK1*AFUN,DEG:三角函数默认为弧度,改为角度后处理:结构变形图、显示节点位移和杆件应力2.2人字形屋架的静力分析后处理:杆单元的轴力、轴向应力、轴向应变2.3超静定拉压杆的反力计算后处理:节点反力2.4平行杆件与刚性梁连接的热应力问题定义3点的UY为耦合自由度,即三者的UY位移相等温度(增量)后处理:寻找特定位置的节点和单元,并从单元表中提取它们的内力2.5端部有间隙的杆的热膨胀二维带厚度的平面应力单元PLANE42、二维接触单元CONTACT26温度(始、末)后处理:定义水平应力和铅直应力单元表,并提取3号单元的应力结果*Status,ParmFINISH定义数组变量,将计算结果通过数组变量输出到文件3梁的弯曲静力分析3.1单跨等截面超静定梁的平面弯曲二维弹性梁单元BEAM3后处理:定义以两端弯矩和剪力的单元表,并列出单元表数据并用单元表数据绘制剪力图和弯矩图更细的节点划分方案,更精细3.2四跨连续梁的内力计算体素建模:keypoint, line, area, volume便于细分单元3.3七层框架结构计算3.4工字形截面外伸梁的平面弯曲3.5矩形截面梁的纵横弯曲分析考虑应力强化效应后处理:迭代过程3.6空间刚架静力分析三维梁单元BEAM43.7悬臂梁的双向弯曲三维8节点耦合场实体单元SOLID5三维20节点固体单元SOLID92三维10节点耦合场实体单元SOLID98三维结构实体自适应单元SOLID147定义宏程序,对应四种工况,各种结果差别不大3.8圆形截面悬臂杆的弯扭组合变形三维直管单元PIPE16(只定义外直径,不定义内直径)3.9悬臂等强度梁的弯曲四边形壳单元SHELL63(这里用退化的三角形单元,并使用节点耦合自由度保证模型的对称变形)三维非对称锥形梁单元BEAM44(定义横截面主轴,单元宽度线性变化)计算结果都很好,但壳体单元更能模拟出等强度梁的实际几何形状,更直观,截面定义更简单。

(完整版)ANSYS最常用命令流+中文注释(超级大全)

(完整版)ANSYS最常用命令流+中文注释(超级大全)

ANSYS最常用命令流+中文注释VSBV, NV1, NV2, SEPO, KEEP1, KEEP2 —Subtracts volumes from volumes,用于2个solid相减操作,最终目的是要nv1-nv2=?通过后面的参数设置,可以得到很多种情况:sepo项是2个体的边界情况,当缺省的时候,是表示2个体相减后,其边界是公用的,当为sepo的时候,表示相减后,2个体有各自的独立边界。

keep1与keep2是询问相减后,保留哪个体?当第一个为keep时,保留nv1,都缺省的时候,操作结果最终只有一个体,比如:vsbv,1,2,sepo,,keep,表示执行1-2的操作,结果是保留体2,体1被删除,还有一个1-2的结果体,现在一共是2个体(即1-2与2),且都各自有自己的边界。

如vsbv,1,2,,keep,,则为1-2后,剩下体1和体1-2,且2个体在边界处公用。

同理,将v换成a 及l是对面和线进行减操作!mp,lab, mat, co, c1,…….c4 定义材料号及特性lab: 待定义的特性项目(ex,alpx,reft,prxy,nuxy,gxy,mu,dens) ex: 弹性模量nuxy: 小泊松比alpx: 热膨胀系数reft: 参考温度reft: 参考温度prxy: 主泊松比gxy: 剪切模量mu: 摩擦系数dens: 质量密度mat: 材料编号(缺省为当前材料号)co: 材料特性值,或材料之特性,温度曲线中的常数项c1-c4: 材料的特性-温度曲线中1次项,2次项,3次项,4次项的系数定义DP材料:首先要定义EX和泊松比:MP,EX,MA T,……MP,NUXY,MAT,……定义DP材料单元表(这里不考虑温度):TB,DP,MA T进入单元表并编辑添加单元表:TBDATA,1,CTBDATA,2,ψTBDATA,3,……如定义:EX=1E8,NUXY=0.3,C=27,ψ=45的命令如下:MP,EX,1,1E8MP,NUXY,1,0.3TB,DP,1TBDATA,1,27TBDATA,2,45这里要注意的是,在前处理的最初,要将角度单位转化到“度”,即命令:*afun,degVSEL, Type, Item, Comp, VMIN, VMAX, VINC, KSWP Type,是选择的方式,有选择(s),补选(a),不选(u),全选(all)、反选(inv)等,其余方式不常用Item, Comp 是选取的原则以及下面的子项如volu 就是根据实体编号选择,loc 就是根据坐标选取,它的comp就可以是实体的某方向坐标!其余还有材料类型、实常数等MIN, VMAX, VINC,这个就不必说了吧!,例:vsel,s,volu,,14vsel,a,volu,,17,23,2上面的命令选中了实体编号为14,17,19,21,23的五个实体VDELE, NV1, NV2, NINC, KSWP: 删除未分网格的体nv1:初始体号nv2:最终的体号ninc:体号之间的间隔kswp=0:只删除体kswp=1:删除体及组成关键点,线面如果nv1=all,则nv2,ninc不起作用其后面常常跟着一条显示命令VPLO,或aplo,nplo,这个湿没有参数的命令,输入后直接回车,就可以显示刚刚选择了的体、面或节点,很实用的哦!Nsel, type, item, comp, vmin, vmax, vinc, kabs 选择一组节点为下一步做准备Type: S: 选择一组新节点(缺省)R: 在当前组中再选择A: 再选一组附加于当前组U: 在当前组中不选一部分All: 恢复为选中所有None: 全不选Inve: 反向选择Stat: 显示当前选择状态Item: loc: 坐标node: 节点号Comp: 分量Vmin,vmax,vinc: ITEM范围Kabs: “0” 使用正负号“1”仅用绝对值下面是单元生死第一个载荷步中命令输入示例:!第一个载荷步TIME,... !设定时间值(静力分析选项)NLGEOM,ON !打开大位移效果NROPT,FULL !设定牛顿-拉夫森选项ESTIF,... !设定非缺省缩减因子(可选)ESEL,... !选择在本载荷步中将不激活的单元EKILL,... !不激活选择的单元ESEL,S,LIVE !选择所有活动单元NSLE,S !选择所有活动结点NSEL,INVE !选择所有非活动结点(不与活动单元相连的结点)D,ALL,ALL,0 !约束所有不活动的结点自由度(可选)NSEL,ALL !选择所有结点ESEL,ALL !选择所有单元D,... !施加合适的约束F,... !施加合适的活动结点自由度载荷SF,... !施加合适的单元载荷BF,... !施加合适的体载荷SA VESOLVE请参阅TIME,NLGEOM,NROPT,ESTIF,ESEL,EKILL,NSLE,NSEL,D, F,SF和BF命令得到更详细的解释。

ANSYS应用-简支梁分析

ANSYS应用-简支梁分析

第一章简支梁有限元结构静力分析0前言本文利用ANSYS软件中BEAM系列单元建立简支梁有限元模型,对其进行静力分析与模态分析,来比较建模时不同单元类型的选择和网格划分精细程度不同所带来的不同结果,以便了解和认识ANSYS对于分析结果准确性的影响。

1.1梁单元介绍梁是工程结构中最为常用的结构形式之一。

ANSYS程序中提供了多种二维和三维的梁单元,分别具有不同的特性,是一类轴向拉压、弯曲、扭转单元,用以模拟各类结构中的平面以及空间的梁构件。

常用的梁单元中BEAM3、BEAM23和BEAM54为二维梁单元,BEAM4、BEAM24、BEAM344、BEAM188和BEAM189为三维梁单元。

下文将简单介绍常用的梁单元BEAM3、BEAM4、BEAM44、BEAM188以及BEAM189。

1.1.1BEAM3单元:图1.1Beam3单元几何图形BEAM3是具有拉伸、压缩和弯曲的单轴2-D弹性梁单元。

上图给出了单元的几何图形、节点位置及坐标系统。

单元由两个节点、横截面面积、横截面惯性矩、截面高度及材料属性定义。

初始应变通过Δ/L给定,Δ为单元长度L(由I,J节点坐标算得)与0应变单元长度之差。

该单元在每个节点处有三个自由度,可以进行忽略环箍效应的轴对称分析,例如模拟螺栓和槽钢等。

在轴对称分析中,单元的面积和惯性矩必须给出360°范围内的值。

剪切变形量SHERAR是可选的,如给SHERAR赋值为0则表示忽略剪切变形,当然剪切模量(GXY)只有在考虑剪切变形时才起作用。

同时可以运用实常数中的ADDMAS命令为单位长度梁单元施加附加质量。

1.1.2BEAM4单元:图1.2Beam4单元几何图形BEAM4是具有拉伸、压缩、扭转和弯曲的单轴3-D弹性梁单元。

关于本单元的几何模型,节点座标及座标系统详见上图。

该单元在每个节点处有六个自由度。

单元属性包括应力刚化与大变形。

单元方向由两或三个节点确定,实常数有横截面面积,两个方向的惯性矩(IZZ和IYY),梁的高和宽,与单元轴X轴的方向角和扭转惯性矩(IXX),如果没有给出IXX的值或赋予0时,程序自动假设IXX=IYY+IZZ,IXX必须为正同时一般情况下小于弯曲惯性矩,因此最好能够给出IXX的值。

ansys 钢筋混凝土简支梁命令流

ansys   钢筋混凝土简支梁命令流

钢筋混凝土简支梁-分离式模型FINISH/CLEAR/PREP7!1.定义单元与材料属性ET,1,SOLID65,,,,,,,1ET,2,LINK8MP,EX,1,13585 !混凝土材料的初始弹模以及泊松比MP,PRXY,1,0.2FC=14.3 !混凝土单轴抗压强度和单轴抗拉强度FT=1.43!TB,CONCR,1!TBDATA,,0.5,0.95,FT,-1 !定义混凝土材料及相关参数,关闭压碎!TB,MISO,1,,11 !定义混凝土应力应变曲线,用MISO模型!TBPT,,0.0002,FC*0.19!TBPT,,0.0004,FC*0.36!TBPT,,0.0006,FC*0.51!TBPT,,0.0008,FC*0.64!TBPT,,0.0010,FC*0.75!TBPT,,0.0012,FC*0.84!TBPT,,0.0014,FC*0.91!TBPT,,0.0016,FC*0.96!TBPT,,0.0018,FC*0.99!TBPT,,0.002,FC!TBPT,,0.0033,FC*0.85MP,EX,2,2.0E5 !钢筋材料的初始弹模以及泊松比MP,PRXY,2,0.3!TB,BISO,2 TBDATA,,300,0 !钢筋的应力应变关系,用BISO模型!PI=ACOS(-1)R,1R,2,0.25*PI*22*22R,3,0.25*PI*10*10!TBPLOT,MISO,1 !混凝土材料的数据表绘图!TBPLOT,BISO,2 !钢筋材料的数据表绘图!2.创建几何模型BLC4,,,150,300,2000*DO,I,1,19 !切出箍筋位置WPOFF,,,100VSBW,ALL*ENDDOWPCSYS,-1WPOFF,,,950 !切出拟加载面VSBW,ALLWPOFF,,,100VSBW,ALLWPCSYS,-1WPROTA,,-90WPOFF,,,30VSBW,ALLWPOFF,,,240VSBW,ALLWPCSYS,-1WPOFF,30WPROTA,,,90VSBW,ALLWPOFF,,,45VSBW,ALLWPOFF,,,45VSBW,ALLWPCSYS,-1!3.划分钢筋网格ELEMSIZ=50 !网格尺寸变量,设置为50mm LSEL,S,LOC,X,30LSEL,R,LOC,Y,30LATT,2,2,2LESIZE,ALL,ELEMSIZLMESH,ALLLSEL,S,LOC,X,75LSEL,R,LOC,Y,30LATT,2,2,2LESIZE,ALL,ELEMSIZLMESH,ALLLSEL,S,LOC,X,120LSEL,R,LOC,Y,30LATT,2,2,2LESIZE,ALL,ELEMSIZLMESH,ALLLSEL,S,LOC,X,30LSEL,R,LOC,Y,270LATT,2,3,2LESIZE,ALL,ELEMSIZLMESH,ALLLSEL,S,LOC,X,120LSEL,R,LOC,Y,270 LATT,2,3,2LESIZE,ALL,ELEMSIZ LMESH,ALLLSEL,S,TAN1,Z LSEL,R,LOC,Y,30,270 LSEL,R,LOC,X,30,120 LSEL,U,LOC,X,75 LSEL,U,LOC,Z,0 LSEL,U,LOC,Z,2000 LSEL,U,LOC,Z,950 LSEL,U,LOC,Z,1050 LATT,2,3,2LESIZE,ALL,ELEMSIZ LMESH,ALLLSEL,ALL!4.划分混凝土网格VATT,1,1,1 MSHKEY,1ESIZE,ELEMSIZ VMESH,ALLALLSEL,ALL!5.施加荷载和约束LSEL,S,LOC,Y,0 LSEL,R,LOC,Z,100 DL,ALL,,UYLSEL,S,LOC,Y,0 LSEL,R,LOC,Z,1900 DL,ALL,,UYDK,KP(0,0,100),UX,,,,UZ DK,KP(0,0,1900),UXP0=180000Q0=P0/150/100 ASEL,S,LOC,Z,950,1050 ASEL,R,LOC,Y,300 SFA,ALL,1,PRES,10ALLSEL,ALLFINISH!6.求解控制设置与求解/SOLUANTYPE,0 NSUBST,60 OUTRES,ALL,ALL AUTOS,ONNEQIT,20 CNVTOL,U,,0.015 ALLSEL,ALLSOLVEFINISH。

ANSYS命令流使用方法

ANSYS命令流使用方法
mshkey, key指定自由或映射网格方式
key: 0自由网格划分
1映射网格划分
2如果可能的话使用映射,否则自由(即使自由smartsizing也不管用了)
Amesh, nA1,nA2,ninc划分面单元网格
nA1,nA2,ninc待划分的面号,nA1如果是All,则对所有选中面划分
SECTYPE,ID, TYPE, SUBTYPE, NAME, REFINEKEY
Bkin:双线性随动强化
Biso:双线性等向强化
Mkin:多线性随动强化(最多5个点)
Miso:多线性等向强化(最多100个点)
Dp: dp模型
Mat:材料号
Ntemp:数据的温度数
对于bkin: ntemp缺省为6
miso: ntemp缺省为1,最多20
biso: ntemp缺省为6,最多为6
dp: ntemp, npts, tbopt全用不上
aname:组元集名称
cname1……cname8:已定义的组元或组元集名称
cmlist,name
cmdele,name
cmplot, label1
1.1定义几个所关心的节点,以备后处理时调用节点号。
n,node,x,y,z,thxy, thyz, thzx根据坐标定义节点号
如果已有此节点,则原节点被重新定义,一般为最大节点号。
defa缺省值
stat列出当前设置
off关闭缺省单元尺寸
minh: n每根线上(高阶)单元数(缺省为2)
mshape, key, dimension指定单元形状
key: 0四边形(2D),六面体(3D)
1三角形(2D),四面体(3D)
Dimension: 2D二维

(完整版)ANSYS命令流使用方法(中文)修改

(完整版)ANSYS命令流使用方法(中文)修改

Finish(退出四大模块,回到BEGIN层)/clear (清空内存,开始新的计算)1.定义参数、数组,并赋值.2./prep7(进入前处理)定义几何图形:关键点、线、面、体定义几个所关心的节点,以备后处理时调用节点号。

设材料线弹性、非线性特性设置单元类型及相应KEYOPT设置实常数设置网格划分,划分网格根据需要耦合某些节点自由度定义单元表3./solu加边界条件设置求解选项定义载荷步求解载荷步4./post1(通用后处理)5./post26 (时间历程后处理)6.PLOTCONTROL菜单命令7.参数化设计语言8.理论手册Finish(退出四大模块,回到BEGIN层)/clear (清空内存,开始新的计算)1.定义参数、数组,并赋值.dim, par, type, imax, jmax, kmax, var1, vae2, var3 定义数组par: 数组名type:array 数组,如同fortran,下标最小号为1,可以多达三维(缺省)char 字符串组(每个元素最多8个字符)tableimax,jmax, kmax 各维的最大下标号var1,var2,var3 各维变量名,缺省为row,column,plane(当type为table时) 2./prep7(进入前处理)2.1 设置单元类型及相应KEYOPTET, itype, ename, kop1……kop6, inopr 设定当前单元类型Itype:单元号Ename:单元名设置实常数Keyopt, itype, knum, valueitype: 已定义的单元类型号knum: 单元的关键字号value: 数值注意:如果,则必须使用keyopt命令,否则也可在ET命令中输入2.2 定义几个所关心的节点,以备后处理时调用节点号。

n,node,x,y,z,thxy, thyz, thzx 根据坐标定义节点号如果已有此节点,则原节点被重新定义,一般为最大节点号。

史上最全的ANSYS命令流大全

史上最全的ANSYS命令流大全

《史上最全的ANSYS命令流查询与解释》[1]*************************************************************************************对ansys主要命令的解释1, /PREP7 ! 加载前处理模块2, /CLEAR,NOSTART ! 清除已有的数据, 不读入启动文件的设置<不加载初始化文件>初始化文件是用于记录用户和系统选项设置的文本文件/CLEAR, START !清除系统中的所有数据,读入启动文件的设置/FILENAME, EX10.5 ! 定义工程文件名称/TITLE, EX10.5 SOLID MODEL OF AN AXIAL BEARING ! 指定标题4, F,2,FY,-1000 ! 在2号节点上施加沿着-Y方向大小为1000N的集中力6, FINISH ! 退出模块命令7, /POST1 ! 加载后处理模块8, PLDISP,2 ! 显示结构变形图,参数"2"表示用虚线绘制出原来结构的轮廓9, ETABLE,STRS,LS,1 ! 用轴向应力SAXL的编号"LS,1"定义单元表STRSETABLE, MFORX,SMISC,1 ! 以杆单元的轴力为内容, 建立单元表MFORXETABLE, SAXL, LS, 1 ! 以杆单元的轴向应力为内容, 建立单元表SAXLETABLE, EPELAXL, LEPEL, 1 ! 以杆单元的轴向应变为内容, 建立单元表EPELAXLETABLE,STRS_ST,LS,1 !以杆件的轴向应力"LS,1"为内容定义单元表STRS_STETABLE, STRS_CO, LS,1 !以杆件的轴向应力"LS,1"定义单元表STRS_COETABLE,STRSX,S,X ! 定义X方向的应力为单元表STRSXETABLE,STRSY,S,Y ! 定义Y方向的应力为单元表STRSY*GET,STRSS_ST,ELEM,STEEL_E, ETAB, STRS_ST !从单元表STRS_ST中提取STEEL_E单元的应力结果,存入变量STRSS_ST;*GET, STRSS_CO,ELEM,COPPER_E,ETAB,STRS_CO"从单元表STRS_CO中提取COPPER_E单元的应力结果,存入变量STRSS_CO10 FINISH !退出以前的模块11, /CLEAR, START ! 清除系统中的所有数据,读入启动文件的设置12 /UNITS, SI !申明采用国际单位制14 /NUMBER, 2 !只显示编号, 不使用彩色/NUMBER, 0 ! 显示编号, 并使用彩色15 /SOLU ! 进入求解模块:定义力和位移边界条件,并求解ANTYPE, STATIC ! 申明分析类型是静力分析<STA TIC或者0>OUTPR, BASIC, ALL ! 在输出结果中, 列出所有荷载步的基本计算结果OUTPR,BASIC,ALL !指定输出所有节点的基本数据OUTPR,BASIC,LAST ! 选择基本输出选项,直到最后一个荷载步OUTPR,,1 ! 输出第1个荷载步的基本计算结果OUTPR,BASIC,1 ! 选择第1荷载步的基本输出项目OUTPR,NLOAD,1 ! 指定输出第1荷载步的内容OUTRES,ALL,0 !设置将所有数据不记录到数据库。

港航工程CAD与数值分析:利用Ansys进行简支梁受力分析(Beam188)

港航工程CAD与数值分析:利用Ansys进行简支梁受力分析(Beam188)

N
UX, UY, UZ
K
J
2.2 选择单元类型
帮助文件-单元库中,Beam188的说明
Beam188单元特点: A. 2结点3 维线性有限应变梁单元,第三点仅仅用于定义
截面Z轴方向; B. 适合于分析从细长到中等粗短的梁结构,该单元基于
铁木辛哥梁结构理论,并考虑了剪切变形的影响; C. 有6个或者7个自由度; D. 可考虑自由扭转或约束扭转 E. 可考虑plasticity and creep
!将单元数据填充到一个表格中以便进行进一步的分析
ETABLE, Lab, Item, Comp, Option
!沿线单元长度显示等值面云图
PLLS, LabI, LabJ, Fact, KUND
1 创建工作目录与数据库文件
利用Mechanical APDL Product Launcher启动时可以直接输 入工作目录与数据库文件名:
工作目录 文件名
1 创建工作目录与数据库文件
利用Mechanical APDL 直接启动时,在主界面下修改:
2 选择单元类型
2.1 关于结点与单元 2.2 为简支梁分析选择单元类型
!定义单元
EN, IEL, I, J, K, L, M, N, O, P
IEL:单元编号
!定义单元还有另外一个命令E,不需要
输入单元编号E, I, J, K, L, M, N, O, P
!对结点1 5 施加约束 D,1, ,,, , ,UX,UY,UZ,ROTX,ROTZ D,5, ,,, , ,UY,UZ !施加荷载 f,3,FZ,-20 !工况1 !SFBEAM,2,1,PRES,10,10!工况2 !SFBEAM,3,1,PRES,10,10!工况2 !SFBEAM,2,1,PRES,5,10!工况3 !SFBEAM,3,1,PRES,10,15!工况3

ANSYS命令流解释大全

ANSYS命令流解释大全

ANSYS命令流解释大全A N S Y S命令流解释大全Document serial number【LGGKGB-LGG98YT-LGGT8CB-LGUT-一、定义材料号及特性mp,lab, mat, co, c1,…….c4lab: 待定义的特性项目(ex,alpx,reft,prxy,nuxy,gxy,mu,dens)ex: 弹性模量nuxy: 小泊松比alpx: 热膨胀系数reft: 参考温度reft: 参考温度prxy: 主泊松比gxy: 剪切模量mu: 摩擦系数dens: 质量密度mat: 材料编号(缺省为当前材料号)c 材料特性值,或材料之特性,温度曲线中的常数项c1-c4: 材料的特性-温度曲线中1次项,2次项,3次项,4次项的系数二、定义DP材料:首先要定义EX和泊松比:MP,EX,MAT,……MP,NUXY,MAT,……定义DP材料单元表(这里不考虑温度):TB,DP,MAT进入单元表并编辑添加单元表:TBDATA,1,CTBDATA,2,ψTBDATA,3,……如定义:EX=1E8,NUXY=,C=27,ψ=45的命令如下:MP,EX,1,1E8MP,NUXY,1,TB,DP,1TBDATA,1,27TBDATA,2,45这里要注意的是,在前处理的最初,要将角度单位转化到“度”,即命令:*afun,deg三、单元生死载荷步!第一个载荷步TIME,... !设定时间值(静力分析选项)NLGEOM,ON !打开大位移效果NROPT,FULL !设定牛顿-拉夫森选项ESTIF,... !设定非缺省缩减因子(可选)ESEL,... !选择在本载荷步中将不激活的单元EKILL,... !不激活选择的单元ESEL,S,LIVE !选择所有活动单元NSLE,S !选择所有活动结点NSEL,INVE !选择所有非活动结点(不与活动单元相连的结点)D,ALL,ALL,0 !约束所有不活动的结点自由度(可选)NSEL,ALL !选择所有结点ESEL,ALL !选择所有单元D,... !施加合适的约束F,... !施加合适的活动结点自由度载荷SF,... !施加合适的单元载荷BF,... !施加合适的体载荷SAVESOLVE请参阅TIME,NLGEOM,NROPT,ESTIF,ESEL,EKILL,NSLE,NSEL,D,F,SF和BF命令得到更详细的解释。

ANSYS简支梁计算命令流

ANSYS简支梁计算命令流

ANSYS简支梁计算命令流finish/clear/PREP7et,1,link8 !定义link8单元et,2,solid65 !定义solid65单元keyopt,2,7,1r,1,314 !定义link8单元的面积r,2 !定义solid65的实常数号mp,ex,1,2e5 !定义link8单元的弹性模量mp,prxy,1,0.3 !定义link8单元的泊松系数mp,ex,2,4e4 !定义solid65单元的弹性模量mp,prxy,2,0.3 !定义solid65单元的泊松系数tb,concr,2 !定义2号为混凝土tbdata,,0.9,1,1.8,50 !定义混凝土的c1,c2,Rl,Ra!----------建立几何模型-------------------------blc4, , ,50,200,1500 !定义梁体/view,1,1,1,1 !定义ISO查看/ang,1vplot !绘制梁体kwpave,5 !工作平面移动到关键点5wpoff,25 !工作平面移动25mmwprot,0,0,90 !工作平面旋转vsbw,1 !分割梁体wpoff,0,40 !工作平面移动40mmwprot,0,90 !工作平面旋转vsbw,all !分割梁体wpoff,300 !再将梁体分割为三个区域wprot,0,0,90 !(原为控制单元密度而设)vsbw,allwpoff,0,0,900vsbw,allwpstyl !关闭工作平面显示nummrg,all !整理编号numcmp,all!------------划分单元网格---------------------------lsel,s,,,41,57,16 !定义line41,line57为新的选择集lsel,a,,,9 !定义line9也在选择集中latt,1,1,1 !定义选择集的属性lesize,9,,,20,,,,,1 !将line9划分为20个单元lesize,41,,,20,,,,,1 !将line41划分为20个单元lesize,57,,,60,,,,,1 !将line57划分为60个单元lmesh,all !对线划分单元!-------------allsel,all !新的选择集为所有的实体vsel,s,,,all !定义所有体为选择集vatt,2,2,2 !定义选择集的属性lesize,22,,,2,,,,,0 !定义体线的单元数以控制体单元lesize,23,,,2,,,,,0lesize,33,,,2,,,,,0lesize,28,,,4,,,,,0mshape,0,3d !将体划分单元的形状定位HEX mshkey,1 !采用MAPPED划分器vmesh,all !对体进行划分单元finish!--------------定义约束及荷载-------------------------/soluasel,s,,,2,22,20asel,a,,,14,17,3da,all,uy !对支撑端面施加Uy方向约束asel,s,,,3,23,20asel,a,,,15,19,4da,all,uz !对正对称面施加Uz方向约束asel,s,,,32,36,4asel,a,,,50,52,2asel,a,,,41,43,2da,all,ux !对侧对称面施加Ux方向约束asel,s,,,21,27,6asel,a,,,42,46,4asel,a,,,35,51,16sfa,all,1,pres,0.04 !对顶面施加面荷载(N/mm*mm) allsel,all!--------------定义非线性分析选项-------------------- cnvtol,f,,0.05,2 !定义收敛条件,使用缺省的VALUE nsubst,25 !定义子步数outres,all,all !输出每一子步的结果autots,1 !打开自动时间步控制lnsrch,1 !打开线性搜索ncnv,2 !如果不收敛时结束而不退出neqit,50 !每一子步中方程的迭代次数限值pred,on !打开预测器time,50 !定义时间solve !求解!--------------进入后处理过程----------------------- finish/post1pldisp,0 !绘制变形图(缺省为最后一步的) etable,sig,ls,1 !定义应力表plls,sigi,sigi,1 !绘制上述应力plnsol,s,z,0,1 !绘制Z方向的应力。

ansys简支梁命令流

ansys简支梁命令流

!分离式模型,1/4模型分析,力加载,位移收敛准则,收敛误差设为1.5%!关闭压碎,KEYYOPT(1)=0,KEYYOPT(7)=1FINISH$/CLEAR$/CONFIG,NRES,2000$/PREP7!1.定义单元与材料性质ET,1,SOLID65,,,,,,,1$ET,2,LINK8MP,EX,1,13585$MP,PRXY,1,0.2FC=14.3$FT=1.43TB,CONCR,1$TBDATA,,0.5,0.95,FT,-1TB,MISO,1,,11TBPT,,0.0002,FC*0.19$TBPT,,0.0004,FC*0.36$TBPT,,0.0006,FC*0.51TBPT,,0.0008,FC*0.64$TBPT,,0.0010,FC*0.75$TBPT,,0.0012,FC*0.84TBPT,,0.0014,FC*0.91$TBPT,,0.0016,FC*0.96$TBPT,,0.0018,FC*0.99TBPT,,0.002,FC$TBPT,,0.0033,FC*0.85MP,EX,2,2.0E5$MP,PRXY,2,0.3TB,BISO,2$TBDATA,,300.0PI=ACOS(-1)R,1,0.25*PT*22*22$R,2,0.25*PI*22*22/2$R,3,0.25*PI*10*10$R,4,0.25*PI*10*10/2!2.创建几何模型BLC4,,,150/2,300/2,2000/2*DO,I,1,9$WPOFF,,,100$VSBW,ALL$*ENDOOWPCSYS,-1$WPOFF,,,50$VSBW,ALLWPCSYS,-1$WPOFF,,-90$WPOFF,,,30$VSBW,ALLWPOFF,,,240$VSBW,ALLWPCSYS,-1$WPOFF,30$WPROTA,,,90$VSBW,ALLWPCSYS,-1!3.划分钢筋网络ELEMSIZ=50LSEL,S,LOC,X,30$LSEL,R,LOC,Y,30CM,ZJ,LINE$LATT,2,1,2$LESIZE,ALL,ELEMSIZLSEL,S,LOC,X,75$LSEL,R,LOC,Y,30CM,ZJB,LINE$LATT,2,2,2$LESIZE,ALL,ELEMSIZLSEL,S,LOC,X,30$LSET,R,LOC,Y,270CM,JLJ,LINE$LATT,2,3,2$LESIZE,ALL,ELEMSIZLSEL,S,TAN1,Z$LSEL,R,LOC,Y,30,270LSEL,R,LOC,X,30,70$LSEL,U,LOC,Z,50CM,GJ,LINE$LATT,2,3,2$LESIZE,ALL,ELEMSIZLSEL,S,LOC,Z,0$LSET,R,LOC,Y,30,270LSEL,R,LOC,X,30,70$CM,GJB,LINE$LATT,2,4,2$LESIZE,ALL,ELEMSIZ$LSEL,ALL CMSEL,S,ZJ$CMSEL,A,ZJB$CMSEL,A,JLJ$CMSEL,A,GJ$CMSEL,A,GJB$CM,GJ,LINE LMESH,ALL$LSEL,ALL!/ESHAPE,1$EPLOT!4.划分混凝土网格V ATT,1,,1$MSHKEY,1$ESIZE,ELEMSIZ$VMESH,ALL$ALLSEL,ALL!5.施加荷载和约束LSEL,S,LOC,Y,0$LSEL,R,LOC,Z,900DL,ALL,UYASEL,S,LOC,Z,0$DA,ALL,SYMMASEL,S,LOC,X,75$DA,ALL,SYMMP0=180000$Q0=P0/150/100ASEL,S,LOC,Z,0,50$ASEL,R,LOC,Y,300SFA,ALL,1,PRES,Q0$ALLSEL,ALL!6.求解控制设置与求解/SOLU$ANTYPE,0$NSUBST,100$OUTRES,ALL,ALL$AUTOS,ON NEQIT,50CNVTOL,U,,0.015SOLVE!7.进图POST1查看结果/POST1$SET,LAST$PLDISP,1ESEL,S,TYPE,,2ETABLE,SAXL,LS,1$PLLS,SAXL,SAXLESEL,S,TYPE,,1/DEVICE,VECTOR,ON$PLCRACK!8.进入时程后处理查看结果/POST26NOSL,2,205,U,Y$PROD,3,2,,,,,,-1PROD,4,1,,,,,,P0/1000XV AR,3$PLV AR,4。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

!分离式模型,1/4模型分析,力加载,位移收敛准则,收敛误差设为1.5%
!关闭压碎,
KEYYOPT(1)=0,KEYYOPT(7)=1
FINISH$/CLEAR$/CONFIG,NRES,2000$/PREP7
!1.定义单元与材料性质
ET,1,SOLID65,,,,,,,1$ET,2,LINK8
MP,EX,1,13585$MP,PRXY,1,0.2
FC=14.3$FT=1.43
TB,CONCR,1$TBDATA,,0.5,0.95,FT,-1
TB,MISO,1,,11
TBPT,,0.0002,FC*0.19$TBPT,,0.0004,FC*0.36$TBPT,,0.0006,FC*0.51
TBPT,,0.0008,FC*0.64$TBPT,,0.0010,FC*0.75$TBPT,,0.0012,FC*0.84
TBPT,,0.0014,FC*0.91$TBPT,,0.0016,FC*0.96$TBPT,,0.0018,FC*0.99
TBPT,,0.002,FC$TBPT,,0.0033,FC*0.85
MP,EX,2,2.0E5$MP,PRXY,2,0.3
TB,BISO,2$TBDATA,,300.0
PI=ACOS(-1)
R,1,0.25*PT*22*22$R,2,0.25*PI*22*22/2$R,3,0.25*PI*10*10$R,4,0.25*PI*10*10/2
!2.创建几何模型
BLC4,,,150/2,300/2,2000/2
*DO,I,1,9$WPOFF,,,100$VSBW,ALL$*ENDOO
WPCSYS,-1$WPOFF,,,50$VSBW,ALL
WPCSYS,-1$WPOFF,,-90$WPOFF,,,30$VSBW,ALL
WPOFF,,,240$VSBW,ALL
WPCSYS,-1$WPOFF,30$WPROTA,,,90$VSBW,ALL
WPCSYS,-1
!3.划分钢筋网络
ELEMSIZ=50
LSEL,S,LOC,X,30$LSEL,R,LOC,Y,30
CM,ZJ,LINE$LATT,2,1,2$LESIZE,ALL,ELEMSIZ
LSEL,S,LOC,X,75$LSEL,R,LOC,Y,30
CM,ZJB,LINE$LATT,2,2,2$LESIZE,ALL,ELEMSIZ
LSEL,S,LOC,X,30$LSET,R,LOC,Y,270
CM,JLJ,LINE$LATT,2,3,2$LESIZE,ALL,ELEMSIZ
LSEL,S,TAN1,Z$LSEL,R,LOC,Y,30,270
LSEL,R,LOC,X,30,70$LSEL,U,LOC,Z,50
CM,GJ,LINE$LATT,2,3,2$LESIZE,ALL,ELEMSIZ
LSEL,S,LOC,Z,0$LSET,R,LOC,Y,30,270
LSEL,R,LOC,X,30,70$CM,GJB,LINE$LATT,2,4,2$LESIZE,ALL,ELEMSIZ$LSEL,ALL CMSEL,S,ZJ$CMSEL,A,ZJB$CMSEL,A,JLJ$CMSEL,A,GJ$CMSEL,A,GJB$CM,GJ,LINE LMESH,ALL$LSEL,ALL
!/ESHAPE,1$EPLOT
!4.划分混凝土网格
V ATT,1,,1$MSHKEY,1$ESIZE,ELEMSIZ$VMESH,ALL$ALLSEL,ALL
!5.施加荷载和约束
LSEL,S,LOC,Y,0$LSEL,R,LOC,Z,900
DL,ALL,UY
ASEL,S,LOC,Z,0$DA,ALL,SYMM
ASEL,S,LOC,X,75$DA,ALL,SYMM
P0=180000$Q0=P0/150/100
ASEL,S,LOC,Z,0,50$ASEL,R,LOC,Y,300
SFA,ALL,1,PRES,Q0$ALLSEL,ALL
!6.求解控制设置与求解
/SOLU$ANTYPE,0$NSUBST,100$OUTRES,ALL,ALL$AUTOS,ON NEQIT,50
CNVTOL,U,,0.015
SOLVE
!7.进图POST1查看结果
/POST1$SET,LAST$PLDISP,1
ESEL,S,TYPE,,2
ETABLE,SAXL,LS,1$PLLS,SAXL,SAXL
ESEL,S,TYPE,,1
/DEVICE,VECTOR,ON$PLCRACK
!8.进入时程后处理查看结果
/POST26
NOSL,2,205,U,Y$PROD,3,2,,,,,,-1
PROD,4,1,,,,,,P0/1000
XV AR,3$PLV AR,4。

相关文档
最新文档