1、30例第一章 前处理第1例 关键点和线的创建实例正弦曲线FINISH /CLEAR, NOSTART/PREP7K,100,0,0,0CIRCLE,100,1,90CSYS,1KFILL,2,1,4,3,1K,7,1+3.1415926/2,0,0CSYS,0KFILL,7,1,4,8,1KGEN,2,7,11,1,1LSTR,8,13LSTR,9,14LSTR,10,15LSTR,11,16LANG,5,6,90,0LANG,4,5,90,0LANG,3,4,90,0LANG,2,3,90,0BSPLIN,1,17,18,19,20,12LSEL,U,14LDELE,ALLLSEL,ALLK
2、WPAVE,12CSYS,4LSYMM,X,14NUMMRG,KP,LOWLCOMB,ALL,0FINISH /CLEAR, NOSTART/PREP7PI=3.14159J=0*DO,I,0,PI,PI/10.0 J=J+1 X=I Y=SIN(I) I=I+1 K,J,X,Y*ENDDOBSPLIN,1,2,3,4,5,6BSPLIN,6,7,8,9,10,11csys,4KWPAVE,11LSYMM,y,1,2,0KWPAVE,11LSYMM,x,3,4,1以上程序有意没算到2为了使用几个命令第2例 工作平面的应用实例相交圆柱体本例提示通过相交圆柱体的创建,本例主要介绍了工作平面的使用方
3、法。通过本例,读者可以了解并掌握工作平面与所创建体的位置、方向的关系,学习工作平面的设置、偏移、旋转和激活为当前坐标系的方法。FINISH/CLEAR,NOSTART/PREP7CYLIND,0.015,0,0,0.08,0,360CYLIND,0.03,0,0,0.08,0,360/VIEW,1,1,1,1/PNUM,VOLU,1WPOFF,0,0.05,0.03WPROT,0,60CYLIND,0.012,0,0,0.055,0,360CYLIND,0.006,0,0,0.055,0,360VSEL,S,2,3,1CM,VV1,VOLUVSEL,INVECM,VV2,VOLUVSEL,AL
4、LVSBV,VV1,VV2BLOCK,-0.002,0.002,-0.013,-0.009,0,0.008WPSTYLE,1CSYS,4VGEN,3,1,120VSBV,5,1VSBV,4,2VSBV,1,3WPROT,0,0,90VSBW,ALLVDELE,1,4,3VADD,ALLVPLOT/REPLOT 第3例 复杂形状实体的创建实例螺栓本例提示在使用ANSYS软件进行结构分析时,建立实体模型是最复杂最难以掌握的一个过程。因此,有必要熟练掌握实体模型的创建。本例使用ANSYS软件提供的各种建模工具,对复杂形状实体的创建进行了练习。/PREP7CSYS,1K,1,0.008,0,-0.00
5、2K,2,0.008,90,-0.0015K,3,0.008,180,-0.001K,4,0.008,270,-0.0005K,5,0.008,0,0/VIEW,1,1,1,1L,1,2L,2,3L,3,4L,4,5LGEN,7,ALL,0.002NUMMRG,KP,LOWLCOMB,ALLK,80,0.008+0.0015/4,90,0.012+0.002/4K,81,0.008+2*0.0015/4,180,0.012+2*0.002/4K,82,0.008+3*0.0015/4,270,0.012+3*0.002/4K,83,0.008+4*0.0015/4,0,0.012+4*0.00
6、2/4L,35,80L,80,81L,81,82L,82,83CSYS,0K,90,0.008,0,-0.00025K,91,0.006918,0,-0.002K,92,0.006918,0,0/PNUM,KP,1/PNUM,LINE,1GPLOTLSTR,1,90LSTR,91,92LANG,7,90,60,0LANG,7,1,120,0AL,6,9,10,11VDRAG,1,1,2,3,4,5/PNUM,KP,0/PNUM,LINE,0/PNUM,AREA,1/PNUM,VOLU,1CYLIND,0.0079,0,0.04,0,360VSEL,U,6CM,VVV2,VOLUALLSVSBV
7、,6,VVV2/REPLOTK,93,0.0065,0,0K,94,0.0095,0,0.003K,95,0,0,0K,96,0,0,0.03LSTR,93,94AROTAT,6,95,96,360ASEL,S,1,4,1VSBA,7,ALLASEL,ALLVDELE,1,1RPRISM,0.04,0.05,6,0.0131CONE,0.03477,0.00549,0.03,0.055,0,360VINV,1,3/REPLOTVPLOTFINISH第4例 复杂形状实体的创建实例杯子本例提示为了进一步掌握实体模型的创建方法和技巧,本例使用ANSYS软件提供的各种建模工具,对复杂形状实体的创建继续
8、进行练习。/PREP7K,1,0,0,0K,2,0.0395,0,0K,3,0.05,0.12,0K,4,0.047,0.12,0K,5,0.03675,0.003,0K,6,0,0.003,0LSTR,1,2LSTR,2,3LSTR,3,4LSTR,4,5LSTR,5,6LSTR,6,1LFILLT,1,2,0.02LFILLT,4,5,0.017AL,ALLVROTAT,ALL,1,6,360K,31,0,0.103,0K,32,0.078,0.103,0K,33,0.078,0.046,0K,34,0,0.0011,0LSTR,31,32LSTR,32,33LSTR,33,34LFILL
9、T,54,55,0.013LFILLT,55,56,0.028K,41,0,0.103+0.002,0.005K,42,0,0.103+0.002,-0.005K,43,0,0.103-0.002,-0.005K,44,0,0.103-0.002,0.005LSTR,41,42LSTR,42,43LSTR,43,44LSTR,44,41LFILLT,59,60,0.001LFILLT,60,61,0.001LFILLT,61,62,0.001LFILLT,62,59,0.001AL,59,63,60,64,61,65,62,66VDRAG,33,54,57,55,58,56VSEL,S,5,9
10、,4ASEL,S,4,28,24VSBA,ALL,ALLALLSEL,ALLVDELE,10,1VDELE,13,1/PNUM,VOLU,1/NUMBER,1/COLOR,VOLU,ORAN,ALL/REPLOTFINISH第二章 结构静力学分析第5例 杆系结构的静力学分析实例平面桁架本例提示介绍了利用ANSYS求解杆系结构的方法、步骤和过程。/CLEAR/FILNAME,EXAMPLE5L=0.1A=1e-4/PREP7ET,1,BEAM3R,1,AMP,EX,1,2E11MP,PRXY,1,0.3N,1N,2,LN,3,2*LN,4,L,LE,1,2E,2,3E,1,4E,2,4E,3,4
11、FINISH/SOLUD,1,UXD,1,UYD,3,UYF,4,FY,-2000SOLVEFINISH/POST1ETABLE,FA,SMISC,1ETABLE,SA,LS,1PRETAB,FA,SAFINISH第6例 杆系结构的静力学分析实例悬臂梁本例提示介绍了利用ANSYS对杆系结构进行静力学分析的方法、步骤和过程。/CLEAR/FILNAME,EXAMPLE6/PREP7ET,1,BEAM3R,1,14.345e-4,245e-8,0.1MP,EX,1,2E11MP,NUXY,1,0.3K,1,0,0,0K,2,1,0,0LSTR,1,2LESIZE,1,50LMESH,1FINISH
12、/SOLUDK,1,UXDK,1,UYDK,1,ROTZFK,2,FY,-10000SOLVEFINISH/POST1PLDISPFINISH第7例 平面问题的求解实例厚壁圆筒问题本例提示介绍了利用ANSYS进行静力学分析的方法、步骤和过程,并对将空间问题简化为平面问题的条件、方法进行了简单的介绍。/CLEAR/FILNAME,EXAMPLE7/PREP7ET,1,PLANE183,2MP,EX,1,2E11MP,PRXY,1,0.3PCIRC,0.1,0.05,0,90LESIZE,4,6LESIZE,3,8MSHAPE,0MSHKEY,1AMESH,1FINISH/SOLUDL,4,UYD
13、L,2,UXSFL,3,PRES,10E6SOLVESAVEFINISH/POST1PATH,P1,2 !定义2个点PPATH,1,30 !第一个节点30号(左端)PPATH,2,1 !第二个节点1号(右端)PDEF,SR,S,X !描述径向应力PDEF,ST,S,Y !描述周向应力PLPATH,SR,ST !绘应力图FINISH第8例 静力学问题的求解实例扳手的受力分析本例提示介绍了利用ANSYS进行空间问题静力学分析的方法、步骤和过程。/CLEAR,nostart/FILNAME,EXAMPLE8/PREP7ET,1,PLANE42ET,2,SOLID45MP,EX,1,2E11MP,PR
14、XY,1,0.3RPR4,6,0,0,0.01K,7,0,0,0K,8,0,0,0.05K,9,0,0.1,0.05LSTR,7,8LSTR,8,9LFILLT,7,8,0.015LSTR,1,4ASBL,1,10LESIZE,2,3LESIZE,3,3LESIZE,4,3LESIZE,7,0.01LESIZE,8,0.01LESIZE,9,0.01MSHAPE,0MSHKEY,1AMESH,ALLVDRAG,ALL,7,9,8ACLEAR,2,3,1FINISH/SOLUDA,2,ALLDA,3,ALLKSEL,S,24,29,1FK,ALL,FX,100KSEL,ALLSOLVESAVEF
15、INISH/POST1/VIEW,1,1,1,1PLDISP,2PLNSOL,S,EQV,0,1NWPAVE,362/TYPE,1,SECT/CPLANE,0/REPLOTFINISH第9例 各种坐标系的应用实例圆轴扭转分析本例提示 通过本例介绍了ANSYS坐标系统的特点、应用场合和使用方法、步骤,并使用解析解对有限元分析结果进行了验证。/CLEAR,nostart/FILNAME,EXAMPLE_9/PREP7ET,1,PLANE183ET,2,SOLID186MP,EX,1,2.08E11MP,PRXY,1,0.3RECTNG,0,0.025,0,0.12LESIZE,1,5LESIZE,
16、2,8MSHAPE,0MSHKEY,1AMESH,1EXTOPT,ESIZE,5 EXTOPT,ACLEAR,1VROTAT,1,1,4,360/VIEW,1,1,1,1WPROT,0,-90CSWPLA,11,1,1,1NSEL,S,LOC,X,0.025NROTAT,ALLFINISH/SOLUD,ALL,UXNSEL,R,LOC,Z,0.12F,ALL,FY,1500ALLSEL,ALLDA,2,ALLDA,6,ALLDA,10,ALLDA,14,ALLSOLVESAVEFINISH/POST1PLDISP,1RSYS,11NSEL,S,LOC,Z,0.045NSEL,R,LOC,Y,0
17、PRNSOL,U,YNSEL,S,LOC,Z,0,0.045 ESLN,R,1PLESOL,S,YZFINISH第三章 结构动力学分析第10例 模态分析实例均匀直杆的固有频率分析本例提示介绍了利用ANSYS进行结构固有频率和振型研究即模态分析的方法、步骤和过程,并使用解析解对有限元分析结果进行了验证。/CLEAR/FILNAME,EXAMPLE10/PREP7ET,1,SOLID186MP,EX,1,2E11MP,PRXY,1,0.3MP,DENS,1,7800BLOCK,0,0.01,0,0.01,0,0.1LESIZE,1,3LESIZE,2,3LESIZE,9,15MSHAPE,0MSH
18、KEY,1VMESH,1FINISH/SOLUANTYPE,MODALMODOPT,LANB,5MXPAND,5DA,1,UZDA,3,UYDA,5,UXSOLVESAVEFINISH/POST1SET,LISTSET,FIRST/VIEW,1,-1/REPLOTPLDIANMODE,10,0.5,0SET,NEXTPLDIANMODE,10,0.5,0FINISH第11例 模态分析实例斜齿圆柱齿轮的固有频率分析本例提示本例介绍了对一个复杂结构斜齿圆柱齿轮模型的创建方法,以及利用ANSYS对其进行固有频率和振型研究即模态分析的方法、步骤和过程。/CLEAR,NOSTART/FILNAME,EX
19、AMPLE11/PREP7ET,1,SOLID45MP,EX,1,2E11MP,PRXY,1,0.3MP,DENS,1,7800K,1,21.87E-3K,2,22.82E-3,1.13E-3K,3,24.02E-3,1.47E-3K,4,24.62E-3,1.73E-3K,5,25.22E-3,2.08E-3K,6,25.82E-3,2.4E-3K,7,26.92E-3,3.23E-3K,8,27.11E-3BSPLIN,2,3,4,5,6,7LSYMM,Y,1LARC,2,9,1LARC,7,10,8AL,ALLCSYS,1 ! 柱坐标VEXT,1,0,18.412,20E-3VGEN,2
20、4,1,0,360/24CSYS,0CYL4,0,0,10E-3,0,26.37E-3,360,20E-3BLOCK,-3E-3,3E-3,0,12.8E-3,0,20E-3VSBV,25,ALLSMRTSIZE,9ESIZE,0.002MSHAPE,1MSHKEY,0VMESH,ALLCSYS,1NSEL,S,LOC,X,0.01NROTAT,ALLD,ALL,UXALLSEL,ALLFINISH/SOLUANTYPE,MODALMODOPT,LANB,5MXPAND,5DA,208,UXNSEL,S,LOC,Z,0NSEL,A,LOC,Z,20E-3NSEL,R,LOC,X,0,15E-3
21、D,ALL,UZALLSEL,ALLSOLVEFINISH/POST1SET,LISTFINISH第12例 有预应力模态分析实例弦的横向振动本例提示介绍了利用ANSYS进行有预应力模态分析的方法、步骤和过程,并使用解析解对有限元分析结果进行了验证。有预应力模态分析分为两个大的步骤:首先进行结构静应力分析,并把静应力作为预应力施加在模型上;然后进行模态分析。/CLEAR/FILNAME,EXAMPLE12图12-22模态动画对话框/PREP7ET,1,LINK1MP,EX,1,2E11MP,PRXY,1,0.3MP,DENS,1,7800R,1,1E-6K,1,0,0,0K,2,1,0,0LST
22、R,1,2LESIZE,1,50LMESH,1FINISH/SOLUDK,1,UXDK,1,UYDK,2,UYFK,2,FX,2000PSTRES,ONSOLVESAVEFINISH/SOLUANTYPE,MODALMODOPT,LANB,10MXPAND,10DK,2,UXPSTRES,ONSOLVEFINISH/POST1SET,LISTSET,FIRSTPLDIANMODE,10,0.5,0SET,NEXTPLDIANMODE,10,0.5,0FINISH第14例 瞬态动力学分析实例凸轮从动件运动分析本例提示介绍了利用ANSYS进行瞬态动力学分析的方法、步骤和过程,并使用解析解对有限元分
23、析结果进行了验证。瞬态动力学分析时,结构上的载荷可以随时间呈任意规律变化,在任意一个载荷步内,约束和载荷都可以重新设定。/CLEAR,NOSTART/FILNAME,EXAMPLE14/PREP7ET,1,PLANE42ET,2,SOLID45MP,EX,1,2E11MP,PRXY,1,0.3MP,DENS,1,7800K,1,0,0,0K,2,0.015,0.015,0K,3,0.015,0.1,0K,4,0,0.1,0LSTR,1,2LSTR,2,3LSTR,3,4LSTR,4,1AL,ALLLESIZE,1,2LESIZE,3,2LESIZE,2,10AATT,1,1,1 ! 定义面的属
24、性、参数、类型、坐标系、横截面的命令MSHAPE,0MSHKEY,1AMESH,ALLTYPE,2EXTOPT,ESIZE,4EXTOPT,ACLEAR,1VROTAT,1,1,4,360WPROT,0,-90CSWPLA,11,CYLINASEL,S,3,15,4NSLA,S,1NROTAT,ALLFINISH/SOLUD,ALL,UX !加约束 1ALLSEL,ALLANTYPE,TRANSOUTRES,ALL,ALLFK,4,FY,-1000 !加载荷TIME,10 !第1个载荷步AUTOTS,ONDELTIM,0.5,0.2,1 !定义载荷步时间步长,最小最小步长0.2最大1KBC,0
25、 !指定荷载步内的斜坡形荷载DK,1,UY,0.02 !加约束 2LSWRITE,1TIME,20 !第2个载荷步LSWRITE,2TIME,35 !第3个载荷步DK,1,UY,0 !加约束 3LSWRITE,3TIME,45 !第4个载荷步LSWRITE,4LSSOLVE,1,4,1SAVEFINISH/POST26NSOL,2,1,U,Y,uyDERIV,3,2,1 ! 求导计算2对1的导数赋值给3DERIV,4,3,1PLVAR,2,3PLVAR,2,4FINISH第15例 连杆机构运动分析实例曲柄滑块机构本例提示介绍了利用ANSYS对连杆机构进行运动学分析的方法、步骤和过程,并使用解析
26、解对有限元分析结果进行了验证。着重介绍了曲柄滑块机构模型的创建以及约束的施加方法,介绍了三维铰链单元COMBIN7的使用方法。/CLEAR,NOSTART/FILNAME,EXAMPLE15/PREP7PI=3.1415926R=0.25L=0.62E=0.2OMGA1=30T=60/OMGA1FI0=ASIN(E/(R+L)AX=0AY=0BX=R*COS(FI0)BY=-R*SIN(FI0)CX=(R+L)*COS(FI0)CY=-EET,1,COMBIN7ET,2,BEAM4MP,EX,1,2E11MP,PRXY,1,0.3MP,DENS,1,1E-14R,1,1E9,1E3,1E3,0
27、R,2,4E-4,1.3333E-8,1.3333E-8,0.02,0.02N,1,AX,AYN,2,BX,BYN,3,BX,BYN,4,CX,CYN,5,BX,BY,-1TYPE,1REAL,1E,2,3,5TYPE,2REAL,2E,1,2E,3,4FINISH/SOLUANTYPE,TRANSNLGEOM,ON ! 打开大变形选项DELTIM,T/70KBC,0 ! 每个子荷载步的荷载从前一个荷载步到本荷载步线性内插(斜坡形)TIME,TOUTRES,ALL,ALLCNVTOL,F,1,0.1CNVTOL,M,1,0.1D,ALL,UZD,ALL,ROTXD,ALL,ROTYD,1,RO
28、TZ,2*PID,1,UXD,1,UYD,4,UYSOLVESAVEFINISH/POST26 ! 时间和频率总为变量1NSOL,2,4,U,X ! 将节点4的位移X定义为2号变量DERIV,3,2,1 ! 将2号变量对1号变量的导数定义为3号变量_速度DERIV,4,3,1 ! 将3号变量对1号变量的导数定义为4号变量_加速度PLVAR,2 ! 绘制2号变量(位移)随时间变化曲线PLVAR,3 ! 绘制3号变量(速度)随时间变化曲线PLVAR,4 ! 绘制4号变量(加速度)随时间变化曲线FINISH第四章 非线性分析第16例 接触分析实例平行圆柱体承受法向载荷时的接触应力分析本例提示介绍了利用ANSYS对结构进行接触分析的方法、步骤和过程,着重介绍了建立面面接触对的方法和难点,为解决实际应用问题奠定了基础。/CLEAR/FILNAME,E
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1