ansys 结构稳态(静力)分析之经典实例-命令流格式

上传人:小** 文档编号:89122110 上传时间:2019-05-18 格式:DOC 页数:16 大小:43.50KB
返回 下载 相关 举报
ansys 结构稳态(静力)分析之经典实例-命令流格式_第1页
第1页 / 共16页
ansys 结构稳态(静力)分析之经典实例-命令流格式_第2页
第2页 / 共16页
ansys 结构稳态(静力)分析之经典实例-命令流格式_第3页
第3页 / 共16页
ansys 结构稳态(静力)分析之经典实例-命令流格式_第4页
第4页 / 共16页
ansys 结构稳态(静力)分析之经典实例-命令流格式_第5页
第5页 / 共16页
点击查看更多>>
资源描述

《ansys 结构稳态(静力)分析之经典实例-命令流格式》由会员分享,可在线阅读,更多相关《ansys 结构稳态(静力)分析之经典实例-命令流格式(16页珍藏版)》请在金锄头文库上搜索。

1、ANSYS 结构稳态(静力)分析之经典实例-命令流格式/FILNAME,Allen-wrench,1 ! Jobname to use for all subsequent files/TITLE,Static analysis of an Allen wrench/UNITS,SI ! Reminder that the SI system of units is used/SHOW ! Specify graphics driver for interactive run; for batch ! run plots are written to pm02.grph ! Define pa

2、rameters for future useEXX=2.07E11 ! Youngs modulus (2.07E11 Pa = 30E6 psi)W_HEX=.01 ! Width of hex across flats (.01m=.39in)*AFUN,DEG ! Units for angular parametric functions定义弧度单位W_FLAT=W_HEX*TAN(30) ! Width of flatL_SHANK=.075 ! Length of shank (short end) (.075m=3.0in)L_HANDLE=.2 ! Length of han

3、dle (long end) (.2m=7.9 in)BENDRAD=.01 ! Bend radius of Allen wrench (.01m=.39 in)L_ELEM=.0075 ! Element length (.0075 m = .30 in)NO_D_HEX=2 ! Number of divisions on hex flatTOL=25E-6 ! Tolerance for selecting nodes (25e-6 m = .001 in)/PREP7ET,1,SOLID45 ! 3维实体结构单元;Eight-node brick elementET,2,PLANE4

4、2 ! 2维平面结构;Four-node quadrilateral (for area mesh)MP,EX,1,EXX ! Youngs modulus for material 1;杨氏模量MP,PRXY,1,0.3 ! Poissons ratio for material 1;泊松比 RPOLY,6,W_FLAT ! Hexagonal area创建规则的多边形K,7 ! Keypoint at (0,0,0)K,8,-L_SHANK ! Keypoint at shank-handle intersectionK,9,L_HANDLE,-L_SHANK ! Keypoint at

5、end of handleL,4,1 ! Line through middle of hex shapeL,7,8 ! Line along middle of shankL,8,9 ! Line along handleLFILLT,8,9,BENDRAD ! Line along bend radius between shank and handle! 产生一个倒角圆,并生成三个点 /VIEW,1,1,1 ! Isometric view in window 1/ANGLE,90,XM ! Rotates model 90 degrees about X! 不用累积的旋转 /TRIAD

6、,ltop /PNUM,LINE,1 ! Line numbers turned onLPLOT ! Line numbers off ! /PNUM,KP,1KPLOTL,1,4 ! Hex section is cut into two quadrilateralsASBL,1,7,KEEP ! to satisfy mapped meshing requirements for bricks! 减线从面中CM,BOTAREA,AREA ! Component name BOTAREA for the two areas ! Generate area mesh for later dra

7、g/PNUM,KP,0LPLOTLESIZE,1,NO_D_HEX ! Number of divisions along line 1 为线指定网格尺寸LESIZE,2,NO_D_HEXLESIZE,6,NO_D_HEXTYPE,2 ! PLANE42 elements to be meshed firstMSHAPE,0,2D ! Mapped quad mesh 指定单元要划分的形状和维数MSHKEY,1 ! 指定了映射网格划分SAVE ! Save database before meshingAMESH,ALL/TITLE,Meshed hex wrench end to be us

8、ed in vdragEPLOT ! Now drag the 2-D mesh to produce 3-D elementsTYPE,1 ! Type pointer set to SOLID45ESIZE,L_ELEM ! Element size VDRAG,2,3,8,10,9 ! Drag operation to create 3-D mesh面掠生成体/TYPE,HIDP ! Precise hidden line display 显示要求是精确/TITLE,Meshed hex wrenchEPLOTCMSEL,BOTAREA ! Select BOTAREA compone

9、nt and! 选择一个子集ACLEAR,ALL ! delete the 2-D elements! 清楚选择单元的几点和单元ASEL,ALLFINISH ! Apply loads and obtain the solution/SOLUANTYPE,STATIC ! Static analysis (default)/TITLE,Allen wrench - Load step 1 ! First fix all nodes around bottom of shankCMSEL,BOTAREA ! Bottom areas of shank 选择以前建立的一个单元面积的组合LSEL,E

10、XT ! Exterior lines of those areas 显示线NSLL,1 ! Nodes on those linesD,ALL,ALL ! Displacement constraintsLSEL,ALL/PBC,U,2 ! Displacement symbols turned on 显示位移约束的符号/TITLE,Boundary conditions on end of wrenchNPLOT !Now apply pressure on handle to represent 100-N (22.5-lb) finger forceASEL,LOC,Y,BENDRAD

11、,L_HANDLE ! Areas on handleASEL,R,LOC,X,W_FLAT/2,W_FLAT ! Two areas on one side of handle.NSLA,1 ! .and all corresponding nodesNSEL,R,LOC,Y,L_HANDLE+TOL,L_HANDLE-(3.0*L_ELEM)-TOL ! Reselects nodes at 位置 ! back end of handle (3 element lengths)*GET,MINYVAL,NODE,MNLOC,Y ! Get minimum Y value of select

12、ed nodes预处理中的结点项;问题是得到一个什么样的值,结点的什么?*GET,MAXYVAL,NODE,MXLOC,Y ! Get maximum Y value of selected nodes是中心位置的值吗?PTORQ=100/(W_HEX*(MAXYVAL-MINYVAL) ! Pressure equivalent to 100 NSF,ALL,PRES,PTORQ ! PTORQ pressure on all selected nodes 指定节点上的表面力的载荷ALLSEL ! Restores full set of all entities/PSF,PRES,2 !

13、Pressure symbols turned on 以箭头显示载荷/TITLE,Boundary conditions on wrench for load step 1NPLOTLSWRITE ! Writes first load step/TITLE, Allen wrench - load step 2 ! Downward pressure on top of handle, representing 20-N (4.5 -lb) forcePDOWN=20/(W_FLAT*(MAXYVAL-MINYVAL)ASEL,LOC,Z,-(L_SHANK+(W_HEX/2) ! Area on top flat of handle.NSLA,1 !

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 管理学资料

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号