ANSYS算例 题斜支座的处理及命令流

合集下载

有限元分析软件ANSYS命令流中文说明4 4

有限元分析软件ANSYS命令流中文说明4 4

有限元分析软件ANSYS命令流中文说明4 4有限元分析软件ANSYS命令流中文说明4/42010-05-23 21:151设置分析类型ANTYPE,Antype,status,ldstep,action其中antype表示分析类型STATIC:静态分析MODAL:模态分析TRANS:瞬态分析SPECTR:谱分析2 KBC,KEY制定载荷为阶跃载荷还是递增载荷EKY=0递增方式KEY=1阶跃方式3 SOLVE开始一个求解运算4 LSSOLVE读入并求解多个载荷步5 TIME,time设置求解时间有时在分析中需要进入后处理,然后在保持进入后处理之前的状态的情况下接着算下去,可以使用以下的方法:PARSAV,ALL,PAR,TXT!PARSAV命令是储存ANSYS的参数,ALL代表所有参数,PAR是文件名,TXT是扩展名/SOLU ANTYPE,REST,CruStep-1,,CONTINUE!ANTYPE是定义分析类型的命令,REST代表重启动,CruStep代表本载荷步的编号PARRES,NEW,PAR,TXT!PARRES是恢复参数的命令,NEW表示参数是以刷新状态恢复,PAR和TXT 代表了储存了参数的文件名和扩展名如果有单元生死的问题,可以这样处理:ALLSEL,ALL*GET,E_SUM_MAX,ELEM,NUM,MAX!得到单元的最大编号,即单元的总数ESEL,S,LIVE!选中"生"的单元*GET,E_SUM_AL,ELEM,COUNT*DIM,E_POT_AL,E_SUM_MAX!单元选择的指示*DIM,E_NUM_AL,E_SUM_AL!单元编号的数组J=0!读出所选单元号*DO,I,1,E_SUM_MAX*VGET,E_POT_AL(I),ELEM,I,ESEL!对所有单元做循环,被选中的单元标志为"1"*IF,E_POT_AL(I),EQ,1,THEN J=J+1 E_NUM_AL(J)=I*ENDIF*ENDDO ALLSEL,ALL在重启动之后恢复单元生死状态*if,E_SUM_AL,ne,0,then*do,i,1,Num_Alive esel,a,E_NUM_AL(i)*enddo ealive,all allsel*endif/WINDOW,WN,XMIN,XMAX,YMIN,YMAX,NCOPY注意x的坐标是-1到1.67,y坐标是-1到1 Xmin=off on,FULL,LEFT,RIGH,TOP,BOT,LTOP,LBOT,RTOP,RBOT注意一个问题,除了1号窗口外,其他的不能用鼠标操作,只用先发/view 和/dist,然后用/replot。

ansys命令流整理

ansys命令流整理

ansys命令流整理
前处理
节点复制:
NGEN,ITIME,INC,NODE1,NODE2,NINC,DX,DY,DZ,SPACE
是一个节点复制命令,
它是将一组节点在现有坐标系统下复制到其它位置。

ITIME: 复制的次数,包含自己本身。

INC: 每次复制节点时节点号码的增加量。

NODE1,NODE2,NINC: 选取要复制的节点,即要对哪些节点进行复制。

DX,DY,DZ: 每次复制时在现有坐标系统下,几何位置的改变量。

SPACE:间距比,是最后一个尺寸和第一个尺寸的比值
单元复制
EGEN, ITIME, NINC, IEL1, IEL2, IEINC, MINC, TINC, RINC, CINC, SINC, DX, DY, DZ
循环:
*do,I(循环控制变量),1(变量初值),100(循环变量结束变量值),1(步长)
循环内部命令流
*enddo(循环命令结束)
节点选择
NSEL, type,item,comp,vmin,vmax,vinc,kabs
例子:nsel,s,loc,x,-0.1,0.1
S---开始选择节点
U---在已选择节点内要删除部分节点
Loc---利用坐标选择节点
定义截面面积
SECTYPE, SECID, Type, Subtype, Name, REFINEKEY
SECID---ID(编号)
节点自动填充
FILL, NODE1, NODE2, NFILL, NSTRT, NINC, ITIME, INC, SPACE。

ANSYS常用的工具命令流

ANSYS常用的工具命令流

ANSYS常用工具命令流简介:学习ANSYS有限元软件三年,积累了很多常用的命令流,适用于不同研究方向的建模,在建模过程中起到小工具的作用。

希望可以帮助到学习ANSYS 的人,之后会尽量持续更新。

为方便使用特地做了目录和简单的用途介绍如下:目录!1.查看面的法线方向:使用voffst命令面偏移创建体之前,查看面的法线方向。

!2.查看点和单元的最大编号。

!3.ansys窗口背景变白!4.ansys出结果图:所出的图位于ansys的计算文件夹中,为png文件。

!5.设置体的透明度:设置plotctrls→numbering仍看不多体单元编号时,通过设置体的透明度可看到位于体内部的编号。

!6.单位制对应表:建模之前先统一单元,局部模拟常用:mm、t、n、mpa。

!7.提取指定位置的节点的节点号:同样适用于面、体、单元等!8.提取某材料的体积:很方便的计算体的方法!9.后处理中显示塑性区!10.显示变形动画并保存:可以用来到处变形动画放在PPT中或者检查加载情况!11.设置变形放大系数:结果中的变形是夸张变形后的结果,利用此命令流可以将变形恢复,用于查看混凝土裂缝时的将变形复原。

!12.查看GUI操作的命令流:查看GUI操作对应命令流,将某些GUI操作保存为命令流可简化操作!13.查看开裂单元透明调整!14.检查形状不好的单元!15.关闭所有标识:关闭ansys右上角标识!16.单元轮廓不显示:应力云图中单元轮廓影响查看效果!17.显示壳单元厚度:壳单元在ansys中以面存在,不显示厚度。

!18.最大最小位移节点编号的提取!19.求解完后显示梁单元的截面!20.显示体、面、线、单元、点:GUI操作的简化!21. ANSYS结果窗格中DMX、SMX、SMN的含义!22.查看节点坐标系:在节点施加荷载之前必须先明确节点坐标系从而确定荷载的正负!23.查看切面应力:查看模型某个截面的应力情况!24.查看荷载列表!24.已选定节点个数统计!25.查看结构整体的质量、体积等!26.查看某个应力范围内的单元命令流!1.查看面的法线方向/PSYMB,adir,1/replot,all/PSYMB,adir,0/replot,allLDELE,215!2.查看点和单元的最大编号单元:esel,all*get,emax,elem,,num,max*get,emin,elem,,num,min点:*get,nmax,node,,num,max*get,nmax,kp,,num,max工具栏:list→ picked entities→ maximumlist→ picked entities→鼠标点选需要查看的点→OK !3.窗口背景变白/COLOR,DEFAULT/RGB,INDEX,100,100,100,0/RGB,INDEX,80,80,80,13/RGB,INDEX,60,60,60,14/RGB,INDEX,0,0,0,15/REPLOT!4.ansys出结果图!GET THE PNG IMAGE/SHOW,PNG,,0PNGR,COMP,1,-1PNGR,ORIENT,HORIZPNGR,COLOR,2PNGR,TMOD,1/GFILE,1500,!*/CMAP,_TEMPCMAP_,CMP,,SAVE/RGB,INDEX,100,100,100,0/RGB,INDEX,0,0,0,15/REPLOT/CMAP,_TEMPCMAP_,CMP/DELETE,_TEMPCMAP_,CMP/SHOW,CLOSE/DEVICE,VECTOR,0!*!5.体单元编号看不到时可设置体的透明度/trlcy,volu,1,all ! 修改所有体的透明度为100% /trlcy,defa!6.单位制对应表!查看单位/status,units!7.提取指定位置的节点的节点号nsel,s,loc,x,5nsel,r,loc,y,6nsel,r,loc,z,7*get,kcon,kp,,num,min也可用list→picked entities,这种方法更直观简便!8.提取某材料的体积vsel,s,mat, ,2vsum,all*get,v2,volu,0,volu!9.后处理中显示塑性区/post1plnsol,eppl,eqv,2!10.显示变形动画并保存GUI:Utility Menu>Plotctrls>Animate>Deformed Shape!11.设置变形放大系数/dscale,,0!12.查看GUI操作的命令流list→files→log file!13.查看开裂单元透明调整/TRLCY,elem,0.5,all!14.检查形状不好的单元check,esel,warn!15.关闭所有标识!16.单元轮廓不显示/GLINE,1,-1/GLINE,1,0 !显示!17.显示壳单元厚度主菜单——PlotCrls——Style——Size and Shape——第二项[ESHAPE],将off 改为on(必须要在划分网格之后)!18.最大最小位移节点编号的提取allselnsort,u,sum,0,0,all !根据位移矢量大小按降序排列*get,max_u,sort,0,imaxallselnsort,u,sum,0,0,all !根据位移矢量大小按降序排列*get,max_u,sort,0,imin!19.求解完后显示梁单元的截面PlotCtrls-->Style-->Size and Shape-->勾选Shape!20.显示体、面、线、单元、点eplotvplotaplotnplot!21.ANSYS结果输出中DMX、SMX、SMN的含义DMX固定指:最大位移(Displacement Max)SMX:指定的、要查看的、那个Item解的最大值(Solution Max)SMN:指定的、要查看的、那个Item解的最小值(Solution Min)!21.ANSYS结果输出中DMX、SMX、SMN的含义DMX固定指:最大位移(Displacement Max)SMX:指定的、要查看的、那个Item解的最大值(Solution Max)SMN:指定的、要查看的、那个Item解的最小值(Solution Min)!22.查看节点坐标系plotctrls>symbols>nodal coordinate system来源:https:///view/b1a458fc5901020206409c40.html!23.查看切面应力wpstyl,defawprota,0,0,90/type,1,5/cplane,1来源:https:///view/0bab0662f12d2af90242e6c7.html!24.查看荷载列表flist!24.已选定节点个数统计nsel,s,loc,y,0*get,aaa,node,0,count !令aaa=节点数后续在parameters→scalar parameters中查看!25.查看结构整体的质量、体积等preprocessor→modeling→calc geom items→of geometry!26.查看某个应力范围内的单元/cont,1,9,-32, ,-20/replot。

Ansys命令流大全(可编辑修改word版)

Ansys命令流大全(可编辑修改word版)

substep: 指定从哪个子步开始继续分析。缺省为本目录
此命令由已知的一组直线(L1,…L10)围绕成面(Area), 中,runn 文件中最高的子步数
至少须要 3 条线才能形成面,线段的号码没有严格的顺序限制,
action, continue: 继续分析指定的 ldstep,substep
只要它们能完成封闭的面积即可。
复制命令。itime 包含本身所复制的次数;na1,na2,ninc 为现有 TANH(X) 双曲正切
的坐标系统下复制到其他位置(dx,dy,dz);kinc 为每次复制时面 17、antype, status, ldstep, substep, action
积号码的增加量。
声明分析类型,即欲进行哪种分析,系统默认为静力学分析。
认)
法线方向.
CHANGE:将读出的缩略语添加到当前缩略语阵列,并替 16、数学函数
代现存同名的缩略语.
ABS(X) 求绝对值
Ext:如果"Fname"是空的,则缺省的扩展命是"ABBR". ACOS(X) 反余弦
4、ABBSAV,Lab,Fname,Ext-将当前的缩略语写入一个文 ASIN(X) 反正弦
1、A,P1,P2,P3,P4,P5,P6,P7,P8,P9
KP:关键点
此命令用已知的一组关键点点(P1~P9)来定义面(Area), ELEM:单元
最少使用三个点才能围成面,同时产生转围绕些面的线。
NODE:节点 低级
点要依次序输入,输入的顺序会决定面的法线方向。
14、Amesh, nA1,nA2,ninc 划分面单元网格
面,rad 为半径。
NINT(X) 求最近的整数
9、*AFUN,Lab

史上最全的ANSYS命令流大全

史上最全的ANSYS命令流大全

《史上最全的ANSYS命令流查询与解释》【1】*************************************************************************************对ansys主要命令的解释1, /PREP7 ! 加载前处理模块2, /CLEAR,NOSTART ! 清除已有的数据, 不读入启动文件的设置(不加载初始化文件)初始化文件是用于记录用户和系统选项设置的文本文件/CLEAR, START !清除系统中的所有数据,读入启动文件的设置/, 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 ! 申明分析类型是静力分析(STATIC或者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命令流----前后处理和求解常用命令之求解与后处理The ANSYS command stream - before and after the treatment and solving common commands of solving and postprocessing of.Txt is a mountain fox, you told me what all, standing in the place nearest to you, look you smile to others, even if the heart is all the pain just to keep your eye out. The glare of the bottom of every act and every move white, let me understand what is pure damage. 3 /soluU /solu enters the solver3.1 plus boundary conditionsU, D, node, lab, value, Value2, nend, Ninc, lab2, lab3,...... LaB6 defines node displacement constraintsNode: the node number of the pre displacement constraint. If it is all, all selected nodes are fully bound, and nend and ninc. are ignored at this timeLab:, UX, uy, UZ, ROTx, ROTY, Rotz, allThe value of Value, value2: degrees of freedom (default 0)Nend, ninc: node range is: node-nend, the number interval is NincLab2-lab6: applies lab2-lab6 to the selected node with the same value.Note: discussed in the node coordinate system3.2 set the solution optionU, antype, status, ldstep, substep, actionStatic analysis of antype:, static and or 1Buckling analysis of buckle or 2Modal or 3 modal analysisTransient analysis of trans or 4Status: new reanalysis (default), which will be ignored later Rest reanalysis is valid only for static, full, and transionLdstep: specifies which load step to proceed from the analysis and defaults to the maximum runn number (the last step of the analysis point)Substep: specifies which sub step to proceed from the analysis. The default is the highest number of sub steps in the runn file in this directoryAction, continue: continues to analyze the specified ldstep, substepExplanation: there are two types of continuous analysis (interrupted for some reason)Singleframe restart: continues from the stop pointRequired file: jobname.db must be saved immediately after initial solutionJobname.emat cell matrixJobname.esav or.Osav: if.Esav is broken, change.Osav to.EsavResults file: is not necessary, but if so, the results of subsequent analysis will be well attached to itNote: if the initial analysis generates a.Rdb,.Ldhi, or rnnn file. Deletion must be followed by subsequent analysisStep: (1) enter ANASYS with the same job name(2) enter the solver and restore the database(3) antype, rest(4) additional load is specified(5) specify whether to use the existing matrix (jobname.trl) (default rebuild)Kuse: 1 uses an existing matrix(6) solvingMultiframe restart: continues from any result with no result(no need)U, PRED, sskey -- -- lskey... Whether to open the predictor in nonlinear analysisSskey: off does not make predictions (when the degree of freedom is rotated or when SOLID65 is used, default is off)The first step was to predict on (unless there is a rotational degree of freedom or when using the SOLID65 default is on)- - unused variable zoneLskey: off does not predict when crossing load steps (default)On predicts when crossing load steps (at this time sskey must be simultaneous on)Note: the default value for this command assumes that solcontrol is onDoes u autots and key use automatic time steps?Key:on: when solcontrol is on, the default is onOff: when solcontrol is off, the default is off1: records in the.Log file "1" by the program selection (when solcontrol is on and does not occur the autots command"Note: the step size predictor and the two step size are alsoused when using the automatic time stepU, NROPT, option -- -- adptky specifies the options for Newton Ralph Xun Fa's solutionOPTION: AUTO: program selectionFULL: completely Newton Ralph Xun FaMODI: revised by Newton Ralph Xun FaINIT: using the initial stiffness matrixUNSYM: complete Newton Ralph Xun Fa, and allows asymmetric stiffness matricesADPTKY:ON: uses adaptive drop factorOFF: no adaptive drop factor is usedU, NLGEOM, KEYKEY: OFF: does not include geometric nonlinearity (default)ON: including geometric nonlinearityU, ncnv, kstop, dlim, itlim, etlim, cplim, terminate the analysis optionsKstop: 0, if the solution is not convergent, does not terminate the analysis1 if the solution does not converge, terminate the analysis and the program (default)2 if the solution does not converge, terminate the analysis, but do not terminate the programDlim: maximum displacement limit, defaults to 1.0e6Itlim: cumulative iteration limit, default to infinityEtlim: program execution time (seconds) limit, the default is infiniteCplim:cpu time (seconds) limit, default to infinityThe U, solcontrol, key1, key2, Key3, and VTOL specify whether or not to use some nonlinear solutions for default valuesKey1: on activates some optimized default values (default)CNVTOL, Toler=0.5%Minref=0.01 (for force and moment)NEQIT the maximum number of iterations is set between 15~26 depending on the modelARCLEN uses the more advanced method of ansys5.3 than using the arc length rulePRED unless ROTx, y, Z, or SOLID65 are openedLNSRCH automatically opens when exposedCUTCONTROL, Plslimit=15%, npoint=13SSTIF opens when NLGEOM, onNROPT, adaptkey closes (unless the frictional contact exists; the unit 12,26,48,49,52 exists; when the plastic is present and there is a unit 20,23,24,60)AUTOS is chosen by the programOff does not use these default valuesKey2: on checks the contact state (key1 at on)At this point, the time step is based on the contact state of the unit (assuming keyopt (7))When keyopt (2) =on, the time step is guaranteed to be small enoughKey3: stress loading stiffness control, use default values as much as possibleNull: by default, certain units include stress loading, stiffening, and certain ones (excluding)Nopl: does not include stress stiffening for any elementIncp: for some elements including stress load stiffening(check)Vtol:U, outres, item, freq, and CNAME specify the solution information for writing to the databaseItem: all all the solutionsBasic only writes nsol, rsol, nload, STRsNsol node freedomRsol node acting loadNload nodal loads and input strain loads (?)STRs node stressIf n is freq:, it is written once every n step (including the last step)None: does not write entries in this load stepAll: writes every stepLast: writes only the last step (default when static or transient)3.3 define the load stepThe U, nsubst, nsbstp, nsbmx, nsbmn, and carry specify the number of sub steps for this load stepNsbstp: the number of sub steps of this load stepIf automatic time step using autots, the number of the first definition step length; if solcontrol is open, and 3D surface to surface contact element is used, the default is 1-20; if solcontrol is open, there is no 3D contact element, the default is 1 steps; if the solcontrol is closed, the default value is specified as before; not previously specified, the default is 1)Nsbmx, nsbmn: at most, the minimum number of steps (if the automatic time step is turned on)?U time, time specifies the end time of the load stepNote: the end of the first step shall not be "0""U F, node, lab, Ninc, value, Value2, nend, plus concentrated load at the specified nodeNode: node numberLab:, Fx, Fy, Fz, Mx, My, MzValue: force sizeThe second magnitude of the force of value2: (if there is a complex load)Nend, Ninc: apply the same force on the node from node to nend (increment Ninc)Note: (1) the nodal force is defined in the nodal coordinate system, and the positive and negative forces are in direct agreement with the nodal coordinate axisU, SFA, area, lkey, lab, value, and Value2 add loads on the specified surfaceArea: n surface numberAll all selected numbersLkey: if it is the surface of the body, ignore this itemLab: presValue: pressure valueU, SFBEAM, ELEM, LKEY, LAB, VALI, VALJ, VAL2I, VAL2J, IOFFST, JOFFSTApply line load to the beam elementThe ELEM: cell number can be ALL, that is, the selected cellLKEY: surface mounted type number, see unit introduction. For BEAM188, 1 is vertical; 2 is transverse; 3 is tangentialPressure values at VALI, VALJ:, I, and J nodesVAL2I, VAL2J: is useless for the momentIOFFST, JOFFST:, line distance, I, J node distanceU, lswrite, lsnum write the load and load options into the load fileLsnum: the suffix of the load step file name, that is, the number of loading stepsWhen the stat column shows the current step numberInit reset to "1""The default is to add 1 to the current step"3.3.1 attention1. add as much load as possible without focusing so as to avoid singularitiesThe tangential load on the 2. plane must depend on the surface element3.4 load stepsU, lssolve, lsmin, lsmax, lsinc read and solve multiple loading stepsLsmin, lsmax, lsinc: load step file range4 /post1 (general postprocessing)U, set, lstep, sbstep, fact, king, time, angle, and nset set the data read from the result fileLstep: load stepsSbstep: child steps and defaults to the last stepTime: point of time (if the arc length rule does not)Nset:data set numberU, dscale, WN, dmult display deformation ratioWn: window number (or all), defaults to 1Dmult, 0 or Auto: automatically make the maximum deformation picture 5% of the length of the componentU, pldisp, and Kund display the structure of deformationKund:0 only shows the structure after deformation1 shows the structure before deformation and after deformation2 shows the deformation structure and the edge of the undeformed structureU, *get, par, node, N, u, X (y, z) obtain the X (y, z) shift of node n to parameter parEquivalent to the function UX (n), uy (n), UZ (z)Node (x, y, z): get the (x, y, z) node numberArnode (x, y, z): get the surface connected to the node nNote: this command can also be used with the /solu moduleU, fsum, lab, item, summation of nodal forces and moments of a unitLab: empty sum in the whole DeCarr coordinate systemRsys sums up in the current active rsys coordinate systemItem: empty sum for all selected units (not including contact elements)Cont: only sum the contact nodesU, PRSSOL, ITEM, COMP, print BEAM188, BEAM189 cross section resultsDescription: only when the calculation has not yet exited the ANSYS can be used and re entered the ANSYS is not availableItem comp cross section data and component markStress components of S, COMP, X, XZ and YZPRIN, S1, S2, S3, principal stress, SINT stress intensity, and SEQV equivalent stressEPTO COMP total strainPRIN total principal strain, strain strength and equivalent strainEPPL COMP plastic strain componentPRIN principal plastic strain, plastic strain strength, and equivalent plastic strainU, plnsol, item, comp, Kund, fact draw nodes, resulting in a continuous contour lineItem: project (see table below)Comp: componentKund: 0 does not display an undeformed structure1 deformation and deformation overlap2 deformation contours and undeformed edgesFact:'s coefficient of proportionality for exposure to 2D displays defaults to 1Item comp discriptionU, x, y, Z, sum shiftRot, x, y, Z, sum cornersS, x, y, Z, XY, YZ, XZ stress components1, 2, 3 principal stressesInt, EQV stress, intensity, equivalent stressEPEO, x, y, Z, XY, YZ, XZ total displacement components 1,2,3 principal strainInt, EQV strain, intensity, equivalent strainEPEL, x, y, Z, XY, YZ, and XZ elastic strain components 1, 2, 3 elastic principal strainInt, EQV, elastic intensity, elastic equivalent strain EPPL, x, y, Z, XY, YZ, XZ plastic strain componentsU PRNSOL, item, comp print select the node results Item: project (see above)Comp: componentU, PRETAB, LAB1, LAB2,...... Plotting unit table data along the length of units along LAB9LABn: null: column names specified by all ETABLE commandsColumn name: the column name specified by any ETABLE commandU, PLLS, LABI, LABJ, FACT, KUND, drawing unit table data along the unit length directionUnit table name of LABI: node IUnit table name of LABJ: node JFACT: display scale, default to 1Kund: 0 does not display an undeformed structure1 deformation and deformation overlap2 deformation contours and undeformed edges5 /post26 (time course postprocessing)U, nsol, NVAR, node, item, comp, nameIn the time course, the ordinal number of the node variable is defined in the processorNVAR: variable number (from 2 to NV (defined by numvar))Node: node numberItem compU, x, y, ZRot, x, y, ZU, ESOL, NVAR, ELEM, NODE, ITEM, COMP, and NAME store the results into variablesNVAR: variable number, more than 2ELEM: unit numberNODE: the node number of the unit determines which amount to store the unit and, if empty, gives the average valueITEM:COMP:NAME: 8 character variable name, defaults to ITEM plus COMPU, rforce, NVAR, node, item, comp, and name specify the node force data to be storedNvar: variable numberNode: node numberItem compF, x, y.zM, x, y, ZName: gives this variable a name, 8 charactersU, add, IR, IA, IB, IC, name, - - - -, facta, factb, factc Add the IA, IB, and IC variables to the IR variableIR, IA, IB, IC: variable numberThe name of the name: variableU, /grid, keyKey: "0" or "off" without network"1" or "on" XY network"2" or "X" is only X-ray"3" or "Y" has only y linesU, xvar, nN: "0" or "1" takes the X axis as the time axis"N" represents the X axis variable "n"""-1"?U, /axlab, axis, lab define the axis of the markAxis: "X" or "Y""The lab: flag can be up to 30 characters longU, plvar, NVAR, nvar2,...... Nvar10 draws the variable to be displayed (as a ordinate)U, prvar, nvar1,...... Nvar6 lists the variables to display6 PLOTCONTROL menu commandU, PBC, ilem,...... The key, min, Max, and ABS display symbols and values on the displayThe displacement constraint added by item: uRot corner constraintKey: 0 does not display symbols1 display symbols2 display symbols and valuesThe U, /SHOW, FNAME, EXT, VECT, and NCPL determine the graphicaldisplay of the device and other parametersFNAME: X11: screenFile name: each graphic will generate a series of graphic filesEach of the JPEG: graphics generates a series of JPEG graphics filesDescription: there is no need to use this command, graphics files need to be calculated and then output7 parametric design languageU, *do, par, ival, Fval, and inc define the beginning of a do loopPar: loop control variablesIval, Fval, Inc: start value, final value, step size (positive, negative)U *enddo defines the end of a do loopU, *if, val1, oper, val2, base: conditional statementsVal1 (val2:), the value to be compared (also characters, enclosed in quotes)Oper: logical operation (when the real number is compared, the error is 1e-10)EQ, NE, lt, GT, Le, Ge, ablt, abgtBase: behavior when the oper result is a logical truthLable: user defined line labelsStop: will jump out of ANASYSExit: jumps out of the current do loopCycle: jumps to the end of the current do loopThen: makes up the If-Then-Else structureNote: not allowed to jump out of, jump into a do, if loop to label sentence8 theoretical manualSolution of 1. equations: (1) direct solution; (2) iterative solution(1) direct solution: A. sparse matrix method and B. wave front methodA. sparse matrix method: accounting for large memory, but the number of operations less; by changing the order of stiffness matrix, so that non-zero elements minimumB. wavefront method: small memoryWavefront is the number of equations activated when no cell has been solved(2) iterative solution: JCG method, PCG method, ICCG methodJCG method: solvable real numbers, symmetric and unsymmetric matricesPCG method: efficient solution of various matrices (including morbid state), but only the real and symmetric matrixICCG: similar to JCG, but stronger2. strain density, equivalent strain, stress density, equivalent stress(1) strain density (strain, intensity);Strain densityAre the three principal strains(2) equivalent strainEffective Poisson's ratio: the user is set by the avprin command;0 (if not set)(3) stress density (stress, intensity);Stress density(4) equivalent stressEquivalent stress or if there is (elastic state)。

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算例)(曾攀)

有限元分析基础教程Fundamentals of Finite Element Analysis(ANSYS算例)曾攀清华大学2008-12有限元分析基础教程曾攀有限元分析基础教程Fundamentals of Finite Element Analysis曾攀(清华大学)内容简介全教程包括两大部分,共分9章;第一部分为有限元分析基本原理,包括第1章至第5章,内容有:绪论、有限元分析过程的概要、杆梁结构分析的有限元方法、连续体结构分析的有限元方法、有限元分析中的若干问题讨论;第二部分为有限元分析的典型应用领域,包括第6章至第9章,内容有:静力结构的有限元分析、结构振动的有限元分析、传热过程的有限元分析、弹塑性材料的有限元分析。

本书以基本变量、基本方程、求解原理、单元构建、典型例题、MATLAB程序及算例、ANSYS算例等一系列规范性方式来描述有限元分析的力学原理、程序编制以及实例应用;给出的典型实例都详细提供有完整的数学推演过程以及ANSYS实现过程。

本教程的基本理论阐述简明扼要,重点突出,实例丰富,教程中的二部分内容相互衔接,也可独立使用,适合于具有大学高年级学生程度的人员作为培训教材,也适合于不同程度的读者进行自学;对于希望在MATLAB程序以及ANSYS平台进行建模分析的读者,本教程更值得参考。

本基础教程的读者对象:机械、力学、土木、水利、航空航天等专业的工程技术人员、科研工作者。

目录[[[[[[\\\\\\【ANSYS算例】3.3.7(3) 三梁平面框架结构的有限元分析 1 【ANSYS算例】4.3.2(4) 三角形单元与矩形单元的精细网格的计算比较 3 【ANSYS算例】5.3(8) 平面问题斜支座的处理 6 【ANSYS算例】6.2(2) 受均匀载荷方形板的有限元分析9 【ANSYS算例】6.4.2(1) 8万吨模锻液压机主牌坊的分析(GUI) 15 【ANSYS算例】6.4.2(2) 8万吨模锻液压机主牌坊的参数化建模与分析(命令流) 17 【ANSYS算例】7.2(1) 汽车悬挂系统的振动模态分析(GUI) 20 【ANSYS算例】7.2(2) 汽车悬挂系统的振动模态分析(命令流) 23 【ANSYS算例】7.3(1) 带有张拉的绳索的振动模态分析(GUI) 24 【ANSYS算例】7.3(2) 带有张拉的绳索的振动模态分析(命令流) 27 【ANSYS算例】7.4(1) 机翼模型的振动模态分析(GUI) 28 【ANSYS算例】7.4(2) 机翼模型的振动模态分析(命令流) 30 【ANSYS算例】8.2(1) 2D矩形板的稳态热对流的自适应分析(GUI) 31 【ANSYS算例】8.2(2) 2D矩形板的稳态热对流的自适应分析(命令流) 33 【ANSYS算例】8.3(1) 金属材料凝固过程的瞬态传热分析(GUI) 34 【ANSYS算例】8.3(2) 金属材料凝固过程的瞬态传热分析(命令流) 38 【ANSYS算例】8.4(1) 升温条件下杆件支撑结构的热应力分析(GUI) 39 【ANSYS算例】8.4(2) 升温条件下杆件支撑结构的热应力分析(命令流) 42 【ANSYS算例】9.2(2) 三杆结构塑性卸载后的残余应力计算(命令流) 45 【ANSYS算例】9.3(1) 悬臂梁在循环加载作用下的弹塑性计算(GUI) 46 【ANSYS算例】9.3(2) 悬臂梁在循环加载作用下的弹塑性计算(命令流) 49 附录 B ANSYS软件的基本操作52 B.1 基于图形界面(GUI)的交互式操作(step by step) 53 B.2 log命令流文件的调入操作(可由GUI环境下生成log文件) 56 B.3 完全的直接命令输入方式操作56 B.4 APDL参数化编程的初步操作57【ANSYS 算例】3.3.7(3) 三梁平面框架结构的有限元分析如图3-19所示的框架结构,其顶端受均布力作用,用有限元方法分析该结构的位移。

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命令流大全

1、A,P1,P2,P3,P4,P5,P6,P7,P8,P9此命令用已知的一组关键点点(P1~P9)来定义面(Area),最少使用三个点才能围成面,同时产生转围绕些面的线。

点要依次序输入,输入的顺序会决定面的法线方向。

如果超过四个点,则这些点必须在同一个平面上。

Menu Paths:MainMenu>Preprocessor>Create>Arbitrary>Through KPs2、*ABBR,Abbr,String--定义一个缩略语.Abbr:用来表示字符串"String"的缩略语,长度不超过8个字符.String:将由"Abbr"表示的字符串,长度不超过60个字符.3、ABBRES,Lab,Fname,Ext-从一个编码文件中读出缩略语.Lab:指定读操作的标题,NEW:用这些读出的缩略语重新取代当前的缩略语(默认)CHANGE:将读出的缩略语添加到当前缩略语阵列,并替代现存同名的缩略语.Ext:如果"Fname"是空的,则缺省的扩展命是"ABBR".4、ABBSAV,Lab,Fname,Ext-将当前的缩略语写入一个文本文件里Lab:指定写操作的标题,若为ALL,表示将所有的缩略语都写入文件(默认)5、add, ir, ia,ib,ic,name,--,--,facta, factb, factc将ia,ib,ic变量相加赋给ir变量ir, ia,ib,ic:变量号name: 变量的名称6、Adele,na1,na2,ninc,kswp !kswp=0时只删除掉面积本身,=1时低单元点一并删除。

7、Adrag, nl1,nl2,nl3,nl4,nl5,nl6,nlp1,nlp2,nlp3,nlp4,nlp5,nlp6 !面积的建立,沿某组线段路径,拉伸而成。

8、Afillt,na1,na2,rad !建立圆角面积,在两相交平面间产生曲面,rad为半径。

9、*AFUN,Lab在参数表达式中,为角度函数指定单位.Lab:指定将要使用的角度单位.有3个选项.RAD:在角度函数的输入与输出中使用弧度单位(默认)DEG:在角度函数的输入与输出中使用度单位.STAT:显示该命令当前的设置(即是度还是弧度).10、Agen,itime,na1,na2,ninc,dx,dy,dz,kinc,noelem,imove !面积复制命令。

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

ANSYS算例题斜支座的处理及命令流
【ANSYS算例】5.3(8)平面问题斜支座的处理
如图5-7所示,为一个带斜支座的平面应力结构,其中位置2及3处为固定约束,位置4处为一个45º的斜支座,试用一个4节点矩形单元分析该结构的位移场。

(a)平面结构(b)有限元分析模型
图5-7 带斜支座的平面结构
基于ANSYS平台,分别采用约束方程以及局部坐标系的斜支座约束这两种方式来进行处理。

解答给出的操作过程及命令流如下。

1 基于图形界面的交互式操作(step by step)
(1) 进入ANSYS(设定工作目录和工作文件)
程序→ANSYS→ANSYS Interactive→Working directory(设置工作目录)→Initial jobname:Plane support(设置工作文件名)→Run→OK
(2) 设置计算类型
ANSYS Main Menu:Preferences…→Structural→OK
(3) 定义单元类型
ANSYS Main Menu:Preprocessor →Element Type→Add/Edit/Delete... →Add…→Solid: Quad 4node 42→OK(返回到Element Types窗口)→Type 1 PLANE42 →Options…→K3:Plane strs w/thk(带厚度的平面应力问题)→OK→Close
(4) 定义实常数
ANSYS Main Menu:Preprocessor →Real Constants…→Add…→Type 1 PLANE42 →OK→输入Real Constants Set No: 1,THK:0.1 →Close (关闭Real Constants 窗口)
(5) 定义材料参数
ANSYS Main Menu:Preprocessor→Material Props →Material Models→Structural→Linear →Isotropic→EX: 2E5, PRXY:0.25(定义泊松比及弹性模量) →OK →Close(关闭材料定义窗口)
(6) 构造平面模型
生成节点
ANSYS Main Menu:Preprocessor →Modeling→Create→Nodes→In Active CS→Node number:1,X,Y,Z Location in active CS:2,2,0 →Apply →同样依次输入其余3个节点坐标(最左
端为起始点,坐标分别为(0,2,0)、(0,0,0)、(2,0,0))(若采用【典型例题】5.3(7)中直接法(2),
可将4号节点THXY设置为斜方向45°,然后直接对该节点使用UY=0的约束即可。

注意使用约束方程或其
它方法时不进行此项设置)
生成元素并分配材料类型、实常数
ANSYS Main Menu: Preprocessor→Modeling →Create→Elements→Elem Attributes →MAT,1,TYPE,1 PLANE42,REAL,1 →OK
ANSYS Main Menu: Preprocessor→Modeling→Create→Elements →Auto Numbered →Thru Nodes →点击1,2,3,4号节点(生成单元)
(7) 模型加约束
左边施加X,Y方向的位移约束
ANSYS Main Menu:Solution→Define Loads →Apply→-Structural→Displacement On Nodes →选取2,3号节点→OK →Lab2: All DOF(施加X,Y方向的位移约束) →OK
以下提供两种方法处理斜支座问题,使用时选择一种方法。

❶采用约束方程来处理斜支座
ANSYS Main Menu:Preprocessor →Coupling/ Ceqn →Constraint Eqn :Const :0, NODE1:4, Lab1: UX,C1:1,NODE2:4,Lab2:UY,C2:1→OK
或者❷采用斜支座的局部坐标来施加位移约束
ANSYS Utility Menu:WorkPlane→Local Coordinate System→Create local system →At specified LOC +→单击图形中的任意一点→OK →XC、YC、ZC分别设定为2,0,0,THXY:45→OK ANSYS Main Menu:Preprocessor→modeling→Move / Modify →Rotate Node CS →To active CS →选择4号节点
ANSYS Main Menu:Solution→Define Loads →Apply →Structural →Displacement On Nodes →选取4号节点→OK →选择Lab2:UY(施加Y方向的位移约束) →OK
(8) 施加载荷
ANSYS Main Menu: Solution→Define Loads →Apply→Structural→Force/Moment→On Nodes→点击1号节点→OK→Lab:FX, Value: 10→Apply→再次点击1号节点→OK→Lab:FY, Value: 10→OK
(9) 计算分析
ANSYS Main Menu:Solution →Analysis Type →New Analysis→Static→OK
ANSYS Main Menu:Solution→Solve→Current LS→OK
(10) 计算结果
ANSYS Main Menu:General Postproc →Plot Results →Contour Plot →Nodal Solu →Nodal solution →DOF Solution →Displacement vector sum →OK(观察位移矢量分布)
ANSYS Main Menu:General Postproc →List Results →Nodal Solu →Nodal solution →DOF Solution →Displacement vector sum →OK(查看各节点位移精确值)
(11) 退出系统
ANSYS Utility Menu:File →Exit →Save Everything →OK
2.完整的命令流
提供的命令流如下。

!%%%%%%%% [ANSYS算例]5.3(8) %%%% begin %%%%%
/PREP7 !进入前处理
ANTYPE,STATIC !设定为静态分析
MP,EX,1,2E5 !定义1号材料的弹性模量
MP,PRXY,1,0.25 !设定1号材料的泊松比
ET,1,PLANE42 !选取单元类型1
KEYOPT,1,3,3 !设置为带厚度的平面问题
R,1,0.1 !设定实常数No.1,厚度0.1
N,1,2,2 !生成节点1
N,2,,2 !生成节点2
N,3,,, !生成节点3
N,4,2,, !生成节点4
!-------- 对应于【典型例题】5.3(7)中直接法(2)---begin ---
!N,4,2,,,45 !节点4的绕z旋转设置为45°,
!D,4,UY !然后在旋转后的节点坐标下添加位移约束
!-------- 对应于【典型例题】5.3(7)中直接法(2)---end ---
MAT,1 !设定为材料No.1
TYPE,1 !设定单元No.1
REAL,1 !设定实常数No.1
E,1,2,3,4 !生成一个平面单元
D,2,ALL !对节点2施加固定的位移约束
D,3,ALL !对节点3施加固定的位移约束
!-------以下提供两种方法处理斜支座问题,使用时选择一种方法
!---方法1 begin----以下的一条命令为采用约束方程的方式对斜支座进行处理
CE,1,0,4,UX,1,4,UY,-1 !建立约束方程(No.1): 0=node4_UX*1+node_UY*(-1) !---方法1 end ---
!--- 方法2 begin --以下三条命令为定义局部坐标系,进行旋转,施加位移约束
!local,11,0,2,0,0,45 !在4号节点建立局部坐标系
!nrotat, 4 !将4号节点坐标系旋转为与局部坐标系相同
!D,4,UY !在局部坐标下添加位移约束
!--- 方法2 end
!------斜支座约束处理完毕
F,1,FX,10 !施加外力FX
F,1,FY,10 !施加外力FY
FINISH !结束前处理
/SOLU !进入求解模块
SOLVE !求解
!=====进入一般的后处理模块
/POST1 !进入后处理
PLDISP,1 !计算的变形位移显示(变形前与后的对照)
finish !退出所在模块
!%%%%%%%% [ANSYS算例]5.3(8) %%%% end %%%%%。

相关文档
最新文档