ANSYS教程Word文档格式.docx
- 文档编号:17599247
- 上传时间:2022-12-07
- 格式:DOCX
- 页数:24
- 大小:19.93KB
ANSYS教程Word文档格式.docx
《ANSYS教程Word文档格式.docx》由会员分享,可在线阅读,更多相关《ANSYS教程Word文档格式.docx(24页珍藏版)》请在冰豆网上搜索。
ETABLE,FCMX,NMISC,2
ETABLE,FCLN,NMISC,3
ETABLE,ILMX,NMISC,4
ETABLE,ILLN,NMISC,5
PRETAB,NX,ILLN,ILMX
PRETAB,FC,FCLN,FCMX
ETABLE,SXZ,S,XZ
ETABLE,ILSXZ,SMISC,11
获取单元结果数据
*GET,SIGXZ1,ELEM,4,ETAB,SXZ
*GET,SIGXZ2,ELEM,1,ETAB,ILSXZ
*GET,SIGXZ3,ELEM,1,ETAB,ILMX
*GET,FC3,ELEM,1,ETAB,FCMX
*DIM,LABEL,CHAR,4,2
*DIM,VALUE,,4,3
LABEL(1,1)='
SIGXZ,ps'
'
FC3MAX('
LABEL(1,2)='
i(Z=H/2)'
i(Z=H/4)'
i(Z=0)'
FCMX)'
*VFILL,VALUE(1,1),DATA,0,5625,7500,225
*VFILL,VALUE(1,2),DATA,SIGXZ1,SIGXZ2,SIGXZ3,FC3
*VFILL,VALUE(1,3),DATA,0,ABS(SIGXZ2/5625),ABS(SIGXZ3/7500),ABS(FC3/225)
/OUT,beam,vrt
7.3.3命令流模式
/TITLE,NATURALFREQUENCYOFAPIEZOELECTRICTRANSDUCER
ET,1,SOLID5,3!
选择单元
设定材料属性
MP,DENS,3,7500
MP,PERX,3,804.6
MP,PERZ,3,659.7
定义表格
TB,PIEZ,3
TBDATA,16,10.5
TBDATA,14,10.5
TBDATA,3,-4.1
TBDATA,6,-4.1
TBDATA,9,14.1
TB,ANEL,3
TBDATA,1,13.2E10,7.1E10,7.3E10
TBDATA,7,13.2E10,7.3E10
TBDATA,12,11.5E10
TBDATA,16,3.0E10
TBDATA,19,2.6E10
TBDATA,21,2.6E10
建模
L=10E-3
W=10E-3
H=20E-3
K,1
K,2,L
K,3,L,W
K,4,,W
KGEN,2,1,4,1,,,H
L,1,5
LESIZE,1,,,4!
设定单元尺寸
ESIZE,,2
MSHK,1
MSHA,0,3D
V,1,2,3,4,5,6,7,8
VMESH,1!
划分单元
NSEL,S,LOC,X,0
施加约束
DSYM,SYMM,X
NSEL,S,LOC,Y,0
DSYM,SYMM,Y
ANTYP,MODAL
MODOPT,LANB,10,50000,150000!
设置提取模态方式
MXPAND,10!
扩展模态
/COM,
NSEL,S,LOC,Z,0
D,ALL,VOLT,0
NSEL,S,LOC,Z,H
*GET,F1,MODE,2,FREQ
*GET,F2,MODE,5,FREQ
/VIEW,1,1,1,1
/VUP,,Z
/TYPE,,4
*DO,I,1,10
SET,LS,I
PLDISP,1!
显示模态
*ENDDO
ANTYPE,MODAL
MODOPT,LANB,10,50000,150000
MXPAND,10
DDELE,ALL,VOLT!
删除VOLT约束
CP,1,VOLT,ALL!
耦合VOLT约束
*GET,F3,MODE,4,FREQ
*GET,F4,MODE,8,FREQ
*DO,I,1,10
显示响应模态形状
Finish
8.3.3命令流模式
/PREP7
/TITLE,HARMONICRESPONSEOFASPRING-MASSSYSTEM
ANTYPE,MODAL!
定义分析类型
MODOPT,REDUC,2,,,2!
打印前两阶模态形状
ET,1,COMBIN40,,,2!
定义单元
R,1,6,,2!
定义实常数
R,2,16,,2!
N,2,0,1
N,3,0,2
REAL,1
E,1,2
REAL,2
E,2,3
M,1,UY,2!
定义主自由度
OUTPR,,ALL
D,3,ALL
ANTYPE,HARMIC!
谐响应分析
HROPT,MSUP,2!
模态叠加法
HARFRQ,0.1,1.0!
频率变化范围为0.1~1.0
F,1,FY,50
KBC,1!
阶跃边界和载荷
NSUBST,50
OUTPR,,NONE
OUTRES,,1
/POST26
FILE,,rfrq!
读入数据文件
NSOL,2,1,U,Y,UY1
NSOL,3,2,U,Y,UY2
/GRID,1
/AXLAB,Y,DISP
PLVAR,2,3!
显示变量
PRVAR,2,3
9.3.3命令流模式
/TITLE,FREEVIBRATIONWITHCOULOMBDAMPING
ET,1,COMBIN40,,,,,,2!
定义单元类型
R,1,1E4,,(10/386),,1.875,30!
N,2,1
SOLCONTROL,0
ANTYPE,TRANS!
D,1,UX
IC,2,UX,-1,0!
定义初始条件
阶跃载荷和边界条件
CNVTOL,F,1,0.001!
力收敛准则
TIME,.2025
NSUBST,404!
定义子步数
NSOL,2,2,U,X,UX!
定义节点变量
ESOL,3,1,,SMISC,1,F1!
定义单元变量
PRVAR,2,3
/GRID,1!
设置坐标
/AXLAB,Y,DISP
/GTHK,CURVE,2
PLVAR,2!
/AXLAB,Y,FORCE
PLVAR,3
10.3.3命令流模式
/VERIFY,SPECTRUM
/TITLE,DYNAMICLOADEFFECTONSIMPLY-SUPPORTEDTHICKSQUAREPLATE
ET,1,SHELL93,,,,,1!
MP,EX,1,200E9!
定义材料属性
MP,NUXY,1,0.3
MP,ALPX,1,0.1E-5
MP,DENS,1,8000
R,1,1!
N,1,0,0,0!
定义模型
N,9,0,10,0
NGEN,5,40,1,9,1,2.5
N,21,1.25,0,0
N,29,1.25,10,0
FILL,21,29,3
NGEN,4,40,21,29,2,2.5
EN,1,1,41,43,3,21,42,23,2
EGEN,4,2,1
EGEN,4,40,1,4
/SOLU
ANTYPE,MODAL!
定义分析类型为模态分析
MODOPT,REDUC
MXPAND,16,,,YES
SFE,ALL,,PRES,,-1E6!
施加面载荷
D,ALL,UX,0,,,,UY,ROTZ!
施加约束
D,1,UZ,0,0,9,1,ROTX
D,161,UZ,0,0,169,1,ROTX
D,1,UZ,0,0,161,20,ROTY
D,9,UZ,0,0,169,20,ROTY
NSEL,S,LOC,X,.1,9.9
NSEL,R,LOC,Y,.1,9.9
M,ALL,UZ!
选择主自由度
*GET,F,MODE,1,FREQ
ANTYPE,SPECTR!
SPOPT,PSD,2,ON!
利用前两阶模态并计算应力
PSDUNIT,1,PRES!
定义功率谱为面载荷谱
DMPRAT,0.02
PSDFRQ,1,1,1.0,80.0
PSDVAL,1,1.0,1.0
LVSCALE,1!
比例使用载荷因子
PFACT,1,NODE
PSDRES,DISP,REL
PSDCOM
SET,3,1!
读取位移
/VIEW,1,2,3,4
PLNSOL,U,Z
PRNSOL,U,Z
/SOLUTION
ANTYPE,HARMIC!
重新定义求解类型
HROPT,MSUP!
利用模态叠加法
HROUT,OFF,ON
KBC,1
HARFRQ,1,80
NSUBSTEP,10
FILE,,rfrq
PRCPLX,1
NSOL,2,85,U,Z!
定义变量
PSDDAT,6,1,1.0,80,1.0
PSDTYP,2
PSDCAL,7,2
PSDPRT
PRVAR,2,7!
绘制变量曲线
*GET,P,VARI,7,EXTREM,VMAX
*status,parm
/VIEW
/AXLAB,Y,PSD(M^2/HZ)
PLVAR,7
11.3.3命令流模式
/VERIFY,CREEP
/TITLE,CREEP,STRESSRELAXATIONOFABOLTDUETOCREEP
C***STR.OFMATL.,TIMOSHENKO,PART2,3RDED.,PAGE531
ET,1,LINK1!
定义杆单元
R,1,1,(1/30000)!
定义初始应变
TB,CREEP,1
TBDATA,1,4.8E-30,7!
定义蠕变属性
N,2,10
BFUNIF,TEMP,900!
环境温度
TIME,1000
D,ALL,ALL!
约束端部
NSUBST,100
OUTPR,BASIC,10!
每隔10步打印基本结果
OUTRES,ESOL,1!
保存每步结果的数据
ESOL,2,1,,LS,1,SIG!
定义杆单元轴向应力变量
PRVAR,2!
打印杆单元轴向应力随时间变化值
12.3.3命令流模式
步骤一前处理
/TITLE,bucklingofaframe
ET,1,BEAM4
R,1,2.83e-5,2.89e-10,2.89e-10,0.01,0.01,,
RMORE,,,,,,,
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,EX,1,,1e11
MPDATA,PRXY,1,,0.35
RPR4,3,0,0,86.6025e-3,
VOFFST,1,1,,
/VIEW,1,1,1,1
/ANG,1
/REP,FAST
VDELE,1
FLST,2,5,5,ORDE,2
FITEM,2,1
FITEM,2,-5
ADELE,P51X
LPLOT
FLST,5,3,4,ORDE,2
FITEM,5,7
FITEM,5,-9
CM,_Y,LINE
LSEL,,,,P51X
CM,_Y1,LINE
CMSEL,,_Y
LESIZE,_Y1,,,20,,,,,0
FLST,5,6,4,ORDE,2
FITEM,5,1
FITEM,5,-6
LESIZE,_Y1,,,3,,,,,0
FLST,3,6,4,ORDE,2
FITEM,3,4
FITEM,3,-9
LGEN,15,P51X,,,,,1,,0
/PLOPTS,INFO,3
/PLOPTS,LEG1,1
/PLOPTS,LEG2,1
/PLOPTS,LEG3,1
/PLOPTS,FRAME,1
/PLOPTS,TITLE,1
/PLOPTS,MINM,1
/PLOPTS,FILE,0
/PLOPTS,LOGO,1
/PLOPTS,WINS,1
/PLOPTS,WP,0
/PLOPTS,DATE,2
/TRIAD,LTOP
/REPLOT
NUMMRG,KP,,,,LOW
NUMCMP,KP
NUMCMP,LINE
FLST,2,93,4,ORDE,2
FITEM,2,-93
LMESH,P51X
FINISH
步骤二获得静力解
/SOL
ANTYPE,0
NLGEOM,0
NROPT,AUTO,,
LUMPM,0
EQSLV,,,0,
PRECISION,0
MSAVE,0
PIVCHECK,1
PSTRES,ON
TOFFST,0,
/PNUM,KP,0
/PNUM,LINE,0
/PNUM,AREA,0
/PNUM,VOLU,0
/PNUM,NODE,1
/PNUM,TABN,0
/PNUM,SVAL,0
/NUMBER,0
/PNUM,ELEM,0
/ZOOM,1,SCRN,1.332160,0.608101,1.398657,0.533799
FLST,2,3,1,ORDE,3
FITEM,2,-2
FITEM,2,5
/GO
D,P51X,,,,,,ALL,,,,,
/AUTO,1
/ZOOM,1,SCRN,-0.654929,-0.576816,-0.635371,-0.619832
FITEM,2,934
FITEM,2,-935
FITEM,2,938
F,P51X,FZ,-1
/PNUM,NODE,0
/STATUS,SOLU
SOLVE
步骤三获得特征值屈曲解
ANTYPE,1
BUCOPT,LANB,10,0,0
步骤四扩展解
EXPASS,1
MXPAND,10,0,0,1,0.001,
步骤五后处理
/POST1
SET,LIST
SET,FIRST
PLDISP,2
/VIEW,1,1
SET,LIST,999
SET,,,,,,,3
SET,,,,,,,5
SET,,,,,,,7
SET,,,,,,,9
AVPRIN,0,,
ETABLE,,LS,1
PRETAB,LS1
PLETAB,LS1,NOAV
SAVE
/EXIT,NOSAV
14.3.3命令流模式
/BATCH
/TITLE,OptimizationofaFrameStructure!
/TRIAD,OFF
*SET,d1,0.1!
定义参数
*SET,d2,0.1
MPDATA,EX,1,,10e10!
定义材料属性
MPDATA,PRXY,1,,0.3
ET,1,BEAM3!
选择单元
*SET,d1cb,d1**3
*SET,d2cb,d2**3
*SET,k,825000
R,1,d1**2/2,d1*d1cb/24,d1,,,,
R,2,d2**2/2,d2*d2cb/24,d2,0,0,0,
生成节点
N,1,0,0,0,,,,
N,2,0,2.5,0,,,,
N,3,2.16506,3.75,0,,,,
FLST,2,2,1
FITEM,2,2
E,P51X
TYPE,1
MAT,1
REAL,2
ESYS,0
SECNUM,
TSHAP,LINE
FITEM,2,3
求解
FLST,2,1,1,ORDE,1
F,P51X,FY,-2000
NSEL,S,LOC,X,2.1,2.2
DSYM,SYMM,X,,
ALLSEL,ALL
GPLOT
SAVE,frame_resu,db,D:
\ANSYSE~1\aa\
后处理POST1
ETABLE,evol,VOLU,
ETABLE,mi,SMISC,6
ETABLE,mj,SMISC,12
*GET,m11,ELEM,1,ETAB,MI
*GET,m21,ELEM,1,ETAB,MJ
*GET,m12,ELEM,2,ETAB,MI
*GET,m22,ELEM,2,ETAB,MJ
*SET,lim1,d1cb*k
*SET,lim2,d2cb*k
*SET,m11,lim1-abs(m11)
*SET,m21,lim1-abs(m21)
*SET,m12,lim2-abs(m12)
*SET,m22,lim2-abs(m22)
SSUM
*GET,vtot,SSUM,,ITEM,EVOL
/SHRINK,0
/ESHAPE,2
/EFACET,1
/RATIO,1,1,1
/CFORMAT,32,0
/VIEW,1,1,1,1
/ANG,1
/AUTO,1
/REP
保持LGWRITE,frame,lgw文件到D:
\ANSYSE~1\aa\,COMMENT
优化处理
/OPT
OPANL,'
frame'
lgw'
'
OPVAR,D1,DV,0.05,0.5,,
OPVAR,D2,DV,0.05,0.5,,
OPVAR,M1
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANSYS 教程
![提示](https://static.bdocx.com/images/bang_tan.gif)