ANSYS点焊构件有限元模拟命令流

更新时间:2023-07-23 12:08:01 阅读量: 实用文档 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

用ANSYS分析点焊构件的命令流

以下是本人做的一个点焊有限元分析的例子的命令流 ,注意本人用的是ANSYS,这里面有很多的命令流是废话,本人懒,就不做剪切了,其中重要的地方我都做了解释。将命令流复制粘贴到ANSYS的命令窗口按键盘上的回车键即可运行。这个案例用的是刚性短梁模拟焊点 ,希望对某些同志有一些参考意义。还要啰嗦一句,分析结果没有用实验验证过,正确与否,本人未知。

Finish /clear /prep7

ET,1,SHELL181 !*

ET,2,BEAM188 !*

R,1,0.0017, , , , , , RMORE, , , , , , , !* !*

这三句是必须粘贴进去的 这两行是单元类型 钢板厚度

用ANSYS分析点焊构件的命令流

MPTEMP,,,,,,,, 这段是材料参数 MPTEMP,1,0

MPDATA,EX,1,,2.07E11 MPDATA,PRXY,1,,0.3 TB,BISO,1,1,2, TBTEMP,0

TBDATA,,300E6,490E6,,,, MPTEMP,,,,,,,, MPTEMP,1,0

MPDATA,EX,2,,2.0E11 MPDATA,PRXY,2,,0.3 TB,BISO,2,1,2, TBTEMP,0

TBDATA,,400E6,1000E6,,,,

SECTYPE, 1, BEAM, CSOLID, , 0 SECOFFSET, CENT

SECDATA,0.001,0,0,0,0,0,0,0,0,0

RECTNG,0,0.1,0,0.16, /DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

用于模拟焊点的短梁的半径,焊点的大小可在这里

定义,这里是1mm

这段是模型的几何建模,本人是先画钢板,后画 线的,这短线代表了焊点

用ANSYS分析点焊构件的命令流

/REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

FLST,3,1,5,ORDE,1 FITEM,3,1

AGEN,2,P51X, , ,0,0,0.0015, ,0 /DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST /VIEW,1,-1 /ANG,1

/REP,FAST /VIEW,1,,,1 /ANG,1

/REP,FAST

FLST,3,1,5,ORDE,1 FITEM,3,2

AGEN, ,P51X, , ,0.06,0,0, , ,1

用ANSYS分析点焊构件的命令流

/REP,FAST /VIEW,1,,1 /ANG,1

/REP,FAST /VIEW,1,,,1 /ANG,1

/REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

K,9,0.08,0.08,0, K,10,0.08,0.08,0.0015,

LSTR, 9, 10

AESIZE,ALL,0.005, MSHKEY,0

FLST,5,2,5,ORDE,2 FITEM,5,1 FITEM,5,-2 CM,_Y,AREA ASEL, , , ,P51X CM,_Y1,AREA

CHKMSH,'AREA' CMSEL,S,_Y !*

AMESH,_Y1 !*

CMDELE,_Y CMDELE,_Y1 CMDELE,_Y2 !*

CM,_Y,LINE

LSEL, , , , 9 CM,_Y1,LINE CMSEL,S,_Y

画关键点 连线 这段是划分网格

用ANSYS分析点焊构件的命令流

!* !*

CMSEL,S,_Y1 LATT,2,1,2, , , ,1 CMSEL,S,_Y CMDELE,_Y CMDELE,_Y1 !*

FLST,5,1,4,ORDE,1 FITEM,5,9 CM,_Y,LINE LSEL, , , ,P51X CM,_Y1,LINE CMSEL,,_Y !*

LESIZE,_Y1, , ,3, , , , ,1 !*

MSHKEY,0

LMESH, 9

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

NUMCMP,NODE /DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,1.08222638492,1

这行是压缩节点

用ANSYS分析点焊构件的命令流

/REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST !* !*

/COM, CONTACT PAIR CREATION - START CM,_NODECM,NODE CM,_ELEMCM,ELEM CM,_KPCM,KP

CM,_LINECM,LINE CM,_AREACM,AREA CM,_VOLUCM,VOLU /GSAV,cwz,gsav,,temp MP,MU,1, MAT,1

MP,EMIS,1,7.88860905221e-031 R,3

REAL,3 ET,3,170

这段是创建接触对,用

modeling>create>contact pair就可以创建了,注意要把里面的算法换成MPC算法,就可以创建一个MPC接触对了

用ANSYS分析点焊构件的命令流

R,3,,,1.0,0.1,0,

RMORE,,,1.0E20,0.0,1.0, RMORE,0.0,0,1.0,,1.0,0.5 RMORE,0,1.0,1.0,0.0,,1.0 RMORE,10.0 KEYOPT,4,4,0 KEYOPT,4,5,0 KEYOPT,4,7,0 KEYOPT,4,8,0 KEYOPT,4,9,0 KEYOPT,4,10,2 KEYOPT,4,11,0 KEYOPT,4,12,5 KEYOPT,4,2,2 KEYOPT,3,5,0

! Generate the target surface ASEL,S,,,1 ASEL,A,,,2

CM,_TARGET,AREA TYPE,3 NSLA,S,1 ESLN,S,0 ESLL,U

ESEL,U,ENAME,,188,189

NSLE,A,CT2 ! CZMESH patch (fsk qt-40109 8/2008) ESURF

CMSEL,S,_ELEMCM

! Generate the contact surface LSEL,S,,,9

CM,_CONTACT,LINE TYPE,4 NSLL,S,1 ESLN,S,0 ESURF

*SET,_REALID,3 ALLSEL ESEL,ALL

ESEL,S,TYPE,,3 ESEL,A,TYPE,,4 ESEL,R,REAL,,3 /PSYMB,ESYS,1 /PNUM,TYPE,1 /NUM,1

用ANSYS分析点焊构件的命令流

! Reverse target normals ESEL,NONE ESEL,A,TYPE,,3 ESEL,R,REAL,,3 ESURF,,REVERSE ESEL,ALL

ESEL,S,TYPE,,3 ESEL,A,TYPE,,4 ESEL,R,REAL,,3 /PSYMB,ESYS,1 /PNUM,TYPE,1 /NUM,1 EPLOT !

! Reverse contact normals ESEL,NONE ESEL,A,TYPE,,4 ESEL,R,REAL,,3 ESURF,,REVERSE ESEL,ALL

ESEL,S,TYPE,,3 ESEL,A,TYPE,,4 ESEL,R,REAL,,3 /PSYMB,ESYS,1 /PNUM,TYPE,1 /NUM,1 EPLOT !

ESEL,ALL

ESEL,S,TYPE,,3 ESEL,A,TYPE,,4 ESEL,R,REAL,,3 CMSEL,A,_NODECM CMDEL,_NODECM CMSEL,A,_ELEMCM CMDEL,_ELEMCM CMSEL,S,_KPCM CMDEL,_KPCM CMSEL,S,_LINECM CMDEL,_LINECM CMSEL,S,_AREACM CMDEL,_AREACM CMSEL,S,_VOLUCM

用ANSYS分析点焊构件的命令流

CMDEL,_VOLUCM /GRES,cwz,gsav CMDEL,_TARGET CMDEL,_CONTACT

/COM, CONTACT PAIR CREATION - END /MREP,EPLOT

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST

/DIST,1,1.08222638492,1 /REP,FAST

/DIST,1,0.924021086472,1 /REP,FAST FINISH /SOL !*

ANTYPE,0

LSEL,S, , , 4 NSLL,S,1

FLST,2,33,1,ORDE,4 FITEM,2,1 FITEM,2,54 FITEM,2,74 FITEM,2,-104 !*

用ANSYS分析点焊构件的命令流

/GO 这段是加载及约束边界 D,P51X, ,0, , , ,ALL, , , , , 这行是对 左边界全约束 LSEL,S, , , 6 NSLL,S,1

FLST,2,33,1,ORDE,3 FITEM,2,695 FITEM,2,715 FITEM,2,-746 !* /GO

D,P51X, ,0, , , ,UZ, , , , , 这行是对最右边缘节点的Z方向约束 FLST,2,33,1,ORDE,3 FITEM,2,695 FITEM,2,715 FITEM,2,-746 !* /GO

D,P51X, ,0.001, , , ,UX, , , , , 这行是对最右边缘的节点的X方向加载一个1mm

的位移

ALLSEL,ALL

SAVE,'5m1','db','D:\MYDOCU~1\ANSYS\' 这行是文件的保存名字 /STATUS,SOLU

SOLVE 这行是求解

本文来源:https://www.bwwdw.com/article/pu0m.html

Top