ansys旋转经典命令流.pdf
ansys 旋转经典命令流1 旋转摩擦 (1)2. 电磁三d命令流实例(论坛看到) (11)3. 帮助感应加热例induction heating of a solid cylinder billet (15)4. 感应加热温度场的数值模拟(论)inducheat30命令流 (19)5. 如何施加恒定的速度?Simwe仿真论坛 (24)6. 旋转个已经成好的物体 (27)7. 产这样的磁线 (28)8. 旋转摩擦热简单例(维旋转) (32)8.1. 原版 (32)8.2. 部分gui操作 (35)9. VM229 Input Listing (39)10 轴承-耦合+接触分析 (47)11. 板的冲压仿真 (52)1 旋转摩擦FINISH/FILNAME,Exercise24 !定义隐式热分析件名/PREP7 !进前处理器ET,1,SOLID5 !选择单元类型MPTEMP,MPTEMP,1,0MPDATA,DENS,1,7800 !定义材料1的密度MPTEMP,MPTEMP,1,0MPDATA,C,1,460 !定义材料1的热MPTEMP,MPTEMP,1,0MPDATA,KXX,1,66.6 !定义材料1的热传导系数MPTEMP,MPTEMP,1,0UIMP,1,REFT,30 !定义材料1的热膨胀系数的参考温度MPDATA,ALPX,1,1.06e-5 !定义材料1的热膨胀系数MPTEMP,MPTEMP,1,0MPDATA,EX,1,206e9 !定义材料1的弹性模量MPDATA,PRXY,1,0.3 !定义材料1的泊松MPTEMP,MPTEMP,1,0MPDATA,DENS,2,8900 !定义材料2的密度MPTEMP,MPTEMP,1,0MPDATA,C,2,390 !定义材料2的热MPTEMP,MPTEMP,1,0MPDATA,KXX,2,383 !定义材料2的热传导系数MPTEMP,MPTEMP,1,0UIMP,2,REFT,30 !定义材料2的热膨胀系数的参考温度MPDATA,ALPX,2,1.75e-5 !定义材料2的热膨胀系数MPTEMP,MPTEMP,1,0MPDATA,EX,2,103e9 !定义材料2的弹性模量MPDATA,PRXY,2,0.3 !定义材料2的泊松CYLIND,0.7,0.5,0,0.2,0,180, !建钢环的何模型CYLIND,0.5,0.3,0,0.2,60,70, !建铜滑块FLST,5,2,4,ORDE,2FITEM,5,8FITEM,5,12CM,_Y,LINELSEL, , , ,P51XCM,_Y1,LINECMSEL,_YLESIZE,_Y1, , ,4, , , , ,1 ! 选择第8和第12号线并划分为4段FLST,5,2,4,ORDE,2FITEM,5,2FITEM,5,7CM,_Y,LINELSEL, , , ,P51XCM,_Y1,LINECMSEL,_YMSHAPE,1,3DMSHKEY,0FLST,5,2,4,ORDE,2FITEM,5,2FITEM,5,7CM,_Y,LINELSEL, , , ,P51XCM,_Y1,LINECMSEL,_YLESIZE,_Y1, , ,36, , , , ,1 ! 选择第2和第7号线并划分为36段FLST,5,1,4,ORDE,1FITEM,5,5CM,_Y,LINELSEL, , , ,P51XCM,_Y1,LINELESIZE,_Y1, , ,36, , , , ,1 ! 选择第5号线并划分为36段FLST,5,2,4,ORDE,2FITEM,5,17FITEM,5,19CM,_Y,LINELSEL, , , ,P51XCM,_Y1,LINECMSEL,_YLESIZE,_Y1, , ,2, , , , ,1 !选择第17和第19号线并划分为2段FLST,5,2,4,ORDE,2FITEM,5,20FITEM,5,24CM,_Y,LINELSEL, , , ,P51XCM,_Y1,LINECMSEL,_YLESIZE,_Y1, , ,4, , , , ,1 ! 选择第20和第24号线并划分为4段TYPE, 1 !给钢环附单元类型MA T, 1 !给钢环附材料REAL, !给钢环附实常数ESYS, 0SECNUM,CM,_Y,VOLUVSEL, , , , 1CM,_Y1,VOLUCHKMSH,VOLUCMSEL,S,_YVSWEEP,_Y1CMDELE,_YCMDELE,_Y1CMDELE,_Y2 !给铜滑块划分单元TYPE, 1 !给铜滑块附单元类型MA T, 2 !给铜滑块附材料REAL, !给铜滑块附实常数ESYS, 0SECNUM,CM,_Y,VOLUVSEL, , , , 2CM,_Y1,VOLUCHKMSH,VOLUCMSEL,S,_YVSWEEP,_Y1CMDELE,_YCMDELE,_Y2 !给铜滑块附实常数/COM, CONTACT PAIR CREATION - STARTCM,_NODECM,NODECM,_ELEMCM,ELEMCM,_KPCM,KPCM,_LINECM,LINECM,_AREACM,AREACM,_VOLUCM,VOLU/GSA V,cwz,gsav,tempMP,MU,1,0.2MA T,1R,3REAL,3ET,2,170ET,3,174KEYOPT,3,9,0R,3,RMORE,RMORE,0RMORE,0KEYOPT,3,1,3! Generate the target surfaceASEL,S,4CM,_TARGET,AREATYPE,2NSLA,S,1ESLN,S,0ESURF,ALLCMSEL,S,_ELEMCM! Generate the contact surfaceASEL,S,9CM,_CONTACT,AREATYPE,3NSLA,S,1ESLN,S,0ESURF,ALLALLSELESEL,ALLESEL,S,TYPE,2ESEL,A,TYPE,3ESEL,R,REAL,3/PSYMB,ESYS,1/PNUM,TYPE,1/NUM,1EPLOTESEL,ALLESEL,S,TYPE,2ESEL,A,TYPE,3ESEL,R,REAL,3CMSEL,A,_NODECMCMDEL,_NODECMCMSEL,A,_ELEMCMCMDEL,_ELEMCMCMSEL,S,_KPCMCMDEL,_KPCMCMSEL,S,_LINECMCMDEL,_LINECMCMSEL,S,_AREACMCMDEL,_AREACMCMSEL,S,_VOLUCMCMDEL,_VOLUCM/GRES,cwz,gsavCMDEL,_TARGETCMDEL,_CONTACT/COM, CONTACT PAIR CREATION - END !接触向导建铜滑块与钢环间的接触/GO*DIM,pre,TABLE,2,1,1,time,press, ! 定义压载荷随时间变化的TABLE表*SET,PRE(1,0,1) , 0*SET,PRE(1,1,1) , 20e6*SET,PRE(2,0,1) , 10*SET,PRE(2,1,1) , 20e6FLST,2,1,5,ORDE,1FITEM,2,10/GOSFA,P51X,1,PRES, %PRE% !在铜滑块上表施加压载荷TUNIF,20, !施加初始温度FLST,2,1,5,ORDE,1FITEM,2,3/GODA,P51X,UX, !在钢环的外表施加UX向约束FLST,2,1,5,ORDE,1FITEM,2,3/GODA,P51X,UY, !在钢环的外表施加UY向约束FLST,2,1,5,ORDE,1FITEM,2,3/GODA,P51X,UZ, !在钢环的外表施加UZ向约束ESEL,S,MA T,2 !选择铜滑块单元NSLE !选择铜滑块节点CSYS,1 !激活柱坐标系FLST,2,75,1,ORDE,2FITEM,2,876FITEM,2,-950NROTA T,P51X !旋转节点坐标系FLST,2,75,1,ORDE,2FITEM,2,876FITEM,2,-950/GOD,P51X, ,0.01, , , ,UY, , , , , ! 给铜滑块加Y向位移载荷(即切向位移)ALLSEL !选择所有的节点,单元,何体FINISH/SOL !进求解器ANTYPE,4 !设置为瞬态分析TRNOPT,FULL !选择瞬态全分析法LUMPM,0 !关闭集中质量矩阵计算格式NLGEOM,1 !定义变形NSUBST,100,200,100 !定义载荷步OUTRES,ALL,20 !定义结果输出步间隔AUTOTS,1 !打开时间开关KBC,0 !设置为斜坡载荷TIME,10 !定义求解时间SSTIF,0 !关闭应刚化影响NROPT,FULL, , !选择瞬态全分析法EQSLV, , ,0,PRECISION,0 !定义双精度求解MSA VE,0TOFFST,273, !定义温度偏移量SOLVE !求解/POST1 !进后处理器SET,LAST !读取最后步结果PLNSOL,TEMP !显温度分布云图PLNSOL,S,EQV,2 !显等效应分布云图FINISH/EXIT,NOSAV !退出ANSYSFINISH/FILNAME,Exercise23 ! 定义隐式热分析件名/PREP7 !进前处理器ET,1,PLANE13,4 !选择单元类型MPTEMP,MPTEMP,1,0MPDATA,DENS,1,7800 !定义材料1的密度MPTEMP,MPTEMP,1,0MPDATA,C,1,460 !定义材料1的热MPTEMP,MPTEMP,1,0MPDATA,KXX,1,66.6 !定义材料1的热传导系数MPTEMP,MPTEMP,1,0UIMP,1,REFT,30 !定义材料1的热膨胀系数的参考温度MPDATA,ALPX,1,1.06e-5 !定义材料1的热膨胀系数MPTEMP,MPTEMP,1,0MPDATA,EX,1,206e9 !定义材料1的弹性模量MPDATA,PRXY,1,0.3 !定义材料1的泊松MPTEMP,MPTEMP,1,0MPDATA,DENS,2,8900 !定义材料2的密度MPTEMP,MPTEMP,1,0MPDATA,C,2,390 !定义材料2的热MPTEMP,MPTEMP,1,0MPDATA,KXX,2,383 !定义材料2的热传导系数MPTEMP,MPTEMP,1,0UIMP,2,REFT,30 !定义材料2的热膨胀系数的参考温度MPDATA,ALPX,2,1.75e-5 !定义材料2的热膨胀系数MPTEMP,MPTEMP,1,0MPDATA,EX,2,103e9 !定义材料2的弹性模量MPDATA,PRXY,2,0.3 !定义材料2的泊松RECTNG,0,5,0,1.25, !建钢固定块的何模型RECTNG,0,1.25,1.25,2.5, !建铜滑块的何模型TYPE, 1MA T, 1REAL, !给钢固定块附材料属性ESYS, 0SECNUM,ESIZE,0.25,0, !设置单元划分尺MSHAPE,0,2DMSHKEY,1CM,_Y,AREAASEL, , , , 1CM,_Y1,AREACHKMSH,AREACMSEL,S,_YAMESH,_Y1CMDELE,_YCMDELE,_Y1CMDELE,_Y2 !给钢固定块划分单元TYPE, 1MA T, 2REAL, !给铜滑块附材料属性ESYS, 0SECNUM,CM,_Y,AREAASEL, , , , 2CM,_Y1,AREACHKMSH,AREACMSEL,S,_YAMESH,_Y1CMDELE,_YCMDELE,_Y1CMDELE,_Y2 !给铜滑块划分单元CM,_NODECM,NODECM,_ELEMCM,ELEMCM,_KPCM,KPCM,_LINECM,LINECM,_AREACM,AREACM,_VOLUCM,VOLUMP,MU,1,0.2MA T,1MP,EMIS,1,R,3REAL,3ET,2,169ET,3,172R,3,1.0,0.1,0,RMORE,1.0E20,0.0,1.0,RMORE,0.0,0,1.0,1.0,0.5RMORE,0,1.0,1.0,0.0,1.0 KEYOPT,3,3,0 KEYOPT,3,4,0 KEYOPT,3,5,0 KEYOPT,3,7,0 KEYOPT,3,8,0 KEYOPT,3,9,1KEYOPT,3,10,1 KEYOPT,3,11,0 KEYOPT,3,12,0 KEYOPT,3,2,0 KEYOPT,3,1,1LSEL,S,3CM,_TARGET,LINE TYPE,2NSLL,S,1ESLN,S,0ESURF,ALLCMSEL,S,_ELEMCM LSEL,S,5CM,_CONTACT,LINE TYPE,3NSLL,S,1ESLN,S,0ESURF,ALLALLSELESEL,ALLESEL,S,TYPE,2 ESEL,A,TYPE,3 ESEL,R,REAL,3 ESEL,ALLESEL,S,TYPE,2 ESEL,A,TYPE,3 ESEL,R,REAL,3 CMSEL,A,_NODECM CMDEL,_NODECM CMSEL,A,_ELEMCMCMDEL,_ELEMCM CMSEL,S,_KPCM CMDEL,_KPCM CMSEL,S,_LINECM CMDEL,_LINECM CMSEL,S,_AREACMCMDEL,_AREACMCMSEL,S,_VOLUCMCMDEL,_VOLUCMCMDEL,_TARGETCMDEL,_CONTACTFLST,2,1,5,ORDE,1FITEM,2,1 !接触向导建滑块和固定块间的接触/GODA,P51X,UX, !将下的钢块施加X向约束FLST,2,1,5,ORDE,1FITEM,2,1/GODA,P51X,UY, !将下的钢块施加Y向约束FLST,2,1,4,ORDE,1FITEM,2,6/GODL,P51X, ,UX,3.75 !给铜块右侧的线加X向位移载荷FINISH/SOL*DIM,pre,TABLE,2,1,1,time,press, ! 定义压载荷随时间变化的TABLE表*SET,PRE(1,0,1) , 0*SET,PRE(1,1,1) , 10e6*SET,PRE(2,0,1) , 10*SET,PRE(2,1,1) , 10e6FLST,2,1,4,ORDE,1FITEM,2,7/GOSFL,P51X,PRES, %PRE% !在铜滑块上表施加压载荷TUNIF,30, !给铜块和钢块施加初始温度ALLSEL !选择所有的节点,单元,何体ANTYPE,TRANS !设置为瞬态分析TIMINT,OFF,STRUC !关闭结构的动态惯性影响TINTP,1.0 !定义瞬态积分参数NLGEOM,ON !定义变形TIME,3.75E-3 !定义求解时间TOFFSET,273 !定义温度偏移量AUTO,ON !打开时间开关NSUB,100,10000,100 !定义载荷步OUTRES,ALL,-10 !定义结果输出步间隔SOLVE !求解/POST1 !进后处理器SET,LAST !读取最后步结果PLNSOL,TEMP ! 显温度分布云图PLNSOL,S,EQV,2 !显等效应分布云图FINISH/EXIT,NOSAV !退出ANSYS2. 电磁三d命令流实例(论坛看到)/BATCH/COM,ANSYS RELEASE 12.0.1 UP20090415 11:10:14 03/29/2011 /input,menust,tmp,1/GRA,POWER/GST,ON/PLO,INFO,3/GRO,CURL,ON/CPLANE,1/REPLOT,RESIZEWPSTYLE,0/TITLE, Test for EDGE-Formulation with SOLID117! Parameters*SET,l,5e-6 ! length*SET,h,1e-6 ! height*SET,w,5e-6 ! width*SET,a,3e-6 ! 1st addition length of magnetic core*SET,b,5e-6 ! 2nd addition length of magnetic core!/PREP7 !ET,1,117 !MP,MURX,1,1MP,RSVX,1,17.2e-9 !MP,MURX,2,500MP,MURX,3,1BLOCK,-w,w,-h,h,-l,l !BLOCK,-w-a,w+a,h+a,h+2*a,-l,lBLOCK,w+a,w+a+b,h+a,h+2*a,-l,lBLOCK,-w-a,-w-a-b,h+a,h+2*a,-l,lBLOCK,w+a,w+a+b,h,h+a,-l,lBLOCK,-w-a,-w-a-b,h,h+a,-l,l!BLOCK,-w-a,w+a,-(h+a),-(h+2*a),-l,lBLOCK,w+a,w+a+b,-(h+a),-(h+2*a),-l,lBLOCK,-w-a,-w-a-b,-(h+a),-(h+2*a),-l,lBLOCK,w+a,w+a+b,-h,-(h+a),-l,lBLOCK,-w-a,-w-a-b,-h,-(h+a),-l,l!BLOCK,-22e-6,22e-6,-15e-6,15e-6,-15e-6,15e-6 VOVLAP,ALLNUMCMP,VOLUVSEL,S,VOLU,1V ATT,1VSEL,S,VOLU,2,11,1V ATT,2VSEL,S,VOLU,12V ATT,3VSEL,S,MA T,1,2,1ASLV,SLSLA,SLESIZE,ALL,3e-6MSHKEY,1MSHAPE,0,3DVMESH,ALLVSEL,S,MA T,3ASLV,SLSLA,SLESIZE,ALL,3e-6MSHKEY,0MSHAPE,1,3DVMESH,ALLALLSEL,ALLFINISH/SOLUESEL,S,MA T,1BFE,ALL,JS,1,-1e9ASEL,S,EXTDA,ALL,AZ,0ALLSEL,ALLANTYPE,0NROPT,AUTO,EQSLV,SPAR,0,PRECISION,0MSA VE,0PIVCHECK,1/STA TUS,SOLUSOLVEFINISH/POST1! elements/VSCALE,1,1,0!