已阅读5页,还剩5页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
ANSYS 结构稳态(静力)分析之经典实例-命令流格式.txt两人之间的感情就像织毛衣,建立的时候一针一线,小心而漫长,拆除的时候只要轻轻一拉。/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 parameters 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 handle (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,PLANE42 ! 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 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,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 drag/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 used 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 component and! 选择一个子集ACLEAR,ALL ! delete the 2-D elements! 清楚选择单元的几点和单元ASEL,ALL FINISH ! 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,EXT ! 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,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 selected 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 ! 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 ! .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)SF,ALL,PRES,PDOWN ! PDOWN pressure at all selected nodesALLSEL/TITLE,Boundary conditions on wrench for load step 2NPLOTLSWRITE ! Writes second load stepSAVE ! Save database before solutionLSSOLVE,1,2 ! Initiates solution for load step files 1 and 2 !Review the resultsFINISH/POST1SET,1 ! Reads load step 1 resultsPRRSOL ! Reaction solution listing/PBC,DEFA ! No BC symbols 重新安排规格说明/PSF,DEFA ! No surface load symbols 重新安排载荷的显示/EDGE,1 ! Edges only, no interior element outlines 只显示边缘单元的显示/TITLE,Deformed allen wrench caused by torquePLDISP,2 ! Deformed shape overlaid with undeformed edge plot 显示结构转移/GSAVE,pldisp,gsav ! Saves graphics specifications on pldisp.gsav 保存为此图形文件,稍后再用/PLOPTS,INFO,ON ! Turns on entire legend column 打开边框形式;开启全部的图形圆柱/PLOPTS,LEG1,OFF ! Turns off legend header 关闭图形轮廓线的标题(头部)/ANGLE,120,YM,1 ! Additional rotation about model Y (to see high stress areas) /TITLE,Stress intensity contours caused by torquePLNSOL,S,INT ! Stress intensity(应力强度) contours 组元应力/GSAVE,plnsol,gsav ! Saves graphics specifications to plnsol.gsavSET,2 ! Reads load step 2 resultsPRRSOL ! Reaction solution listing/GRESUME,pldisp,gsav ! 恢复pldisp文件;Resumes graphics specifications from pldisp.gsav/TITLE,Deformed allen wrench caused by torque and forcePLDISP,2/GRESUME,plnsol,gsav ! Resumes graphics specifications from plnsol.gsav/TITLE,Stress intensity contours caused by torque and forcePLNSOL,S,INTWPOF,-0.067 ! 把工作平面在Z方向偏移,达到后面要的截面的位置Offset the working plane for cross-section view从Z轴方向偏移工作平面/TYPE,1,5 ! Capped hidden display 显示剖面/CPLANE,1 ! 以共工作平面来剪切截面 Cutting plane defined to use the WP 把平面切开/VIEW, 1 ,WP ! View will be normal to the WP正切于当前的工作平面/DIST,1,.01 ! Zoom in on the cross section 指定详细的扩大倍数进行查看/TITLE,Cross section of the allen wrench under torque and force loadingPLNSOL,S,INT! *GUI操作后的一些log文件命令流的解释说明 */BATCH /COM,ANSYS RELEASE 11.0SP1 UP20070830 15:05:16 02/20/2009/TITLE,Static Analysis of an Allen Wrench *AFUN,DEG *SET,EXX, 2.07E11*SET,W_HEX, .01 *SET,W_FLAT, W_HEX*TAN(30) *SET,L_SHANK, .075 *SET,L_HANDLE, .2 *SET,L_ELEM, .0075 *SET,NO_D_HEX, 2 *SET,TOL, 25E-6 *SET,BENDRAD, .01/PREP7 ET,1,SOLID45ET,2,PLANE42 MPTEMP, MPTEMP,1,0 MPDATA,EX,1,EXX ! 与温度相对应的材料属性MPDATA,PRXY,1,0.3 RPOLY,6,W_FLAT, ! 创建规则的多边形 K,7, K,8,-L_SHANK, K,9,L_HANDLE,-L_SHANK, !* /VIEW, 1 ,1,1,1 /ANG, 1 /REP,FAST !* /ANGLE,1,90,XS,0 ! 不用累积的旋转 LSTR, 4, 1 ! 两点定义一条直线 LSTR, 7, 8 LSTR, 8, 9 LFILLT,8,9,BENDRAD, , ! 产生一个倒角圆,并生成三个点 SAVEAPLOT FLST,2,1,5,ORDE,1 FITEM,2,1 LPLOT FLST,3,1,4,ORDE,1 FITEM,3,7 ASBL,P51X,P51X, , ,KEEP ! 减线从面中CM,BOTAREA,AREA ! 创建一个面的组合FLST,5,3,4,ORDE,3 FITEM,5,1 FITEM,5,-2 FITEM,5,6 CM,_Y,LINE LSEL, , , ,P51X CM,_Y1,LINE CMSEL,_Y LESIZE,_Y1, , ,NO_D_HEX, , , , ,1 TYPE, 2 MAT, 1REAL, ESYS, 0 SECNUM, TSHAP,LINE !* MOPT,AMESH,DEFA MOPT,QMESH,DEFA MOPT,VMESH,DEFA MOPT,TIMP,1 MOPT,PYRA,ONMOPT,AORD,0 MOPT,SPLIT,1MSHKEY,1MSHMID,0MSHPATTERN,0KEYW,ACCEPT,0 !* MSHAPE,0,2D MSHAPE,0,3D !* SAVEFLST,5,2,5,ORDE,2 FITEM,5,2 FITEM,5,-3 CM,_Y,AREA ASEL, , , ,P51X CM,_Y1,AREA CHKMSH,AREA CMSEL,S,_Y !* AMESH,_Y1 !* CMDELE,_Y CMDELE,_Y1 CMDELE,_Y2 !* EPLOT TYPE, 1 MAT, 1REAL, ESYS, 0 SECNUM, TSHAP,LINE !* ESIZE,L_ELEM,0, ! 指定线的份数 LPLOT FLST,2,2,5,ORDE,2 FITEM,2,2 FITEM,2,-3 FLST,8,2,4 FITEM,8,8 FITEM,8,10 VDRAG,P51X, , , , , ,P51X /AUTO,1 /REP,FAST EPLOT SAVECMSEL,S,BOTAREA ! 选择一个子集FLST,2,2,5,ORDE,2 FITEM,2,2 FITEM,2,-3 ACLEAR,P51X ! 清楚选择单元的几点和单元ALLSEL,ALL EPLOT CMSEL,S,BOTAREA LSEL,S,EXT NSLL,S,1FINISH FLST,2,18,1,ORDE,4 FITEM,2,1 FITEM,2,-10 FITEM,2,17 FITEM,2,-24 /soluD,P51X, , , , , ,ALL, , , , , LSEL,ALLASEL,S,LOC,Y,BENDRAD,L_HANDLE ASEL,R,LOC,X,W_FLAT/2,W_FLATNSLA,S,1NSEL,R,LOC,Y,L_HANDLE+TOL,L_HANDLE-(3.0*L_ELEM)-TOL !* *GET,minyval,NODE,MNLOC,Y, , , , *GET,max
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 教案 分数的意义
- 建筑工程技术资料管理教案
- 100句励志经典语录
- 智能家居安全的可靠防护方案设计和实施
- 数据终端设备账务处理实例-记账实操
- 猫和老鼠课件
- 2024年粮油加工机械项目评估分析报告
- 2024年航空运输辅助服务项目成效分析报告
- 2019湘美版 高中美术 选择性必修3 雕塑《第三单元 雕塑的探索与展望》大单元整体教学设计2020课标
- 菜鸟驿站转让合同协议书范本
- 高考倒计时 二百天大有可为-高三冲刺班会
- 江苏大学《模拟电子技术B》2022-2023学年第一学期期末试卷
- 第3讲 决策课件
- 吉林师范大学《复变函数与积分变换》2021-2022学年第一学期期末试卷
- 传染病实验室检查的质量控制
- 广东开放大学2024年秋《国家安全概论(S)(本专)》形成性考核作业参考答案
- 2024级高一上期期中测试数学试题含答案
- 01-第一章 区域与区域发展
- 2024时事政治考试题库(基础题)
- 《学会专注高效学习》初中主题班会课件
- 律师谈案技巧培训课件
评论
0/150
提交评论