!ANSYS响应谱分析!响应谱分析实例-平板结构finish/CLEAR/FILENAME,example,1/PREP7/TITLE,DYNAMICLOADEFFECTONSIMPLY-SUPPORTEDTHICKSQUAREPLATE!定义单元类型ET,1,SHELL281!定义厚度SECTYPE,1,SHELLSECDATA,1,1,0,5!定义材料属性MP,EX,1,200E9MP,NUXY,1,0.3MP,ALPX,1,0.1E-5MP,DENS,1,8000!定义模型N,1,0,0,0N,9,0,10,0FILLNGEN,5,40,1,9,1,2.5N,21,1.25,0,0N,29,1.25,10,0FILL,21,29,3NGEN,4,40,21,29,2,2.5EN,1,1,41,43,3,21,42,23,2EGEN,4,2,1EGEN,4,40,1,4FINISH/SOLUANTYPE,MODAL!定义分析类型为模态分析MODOPT,REDUCMXPAND,16,,,YESSFE,ALL,,PRES,,-1E6!施加面载荷D,ALL,UX,0,,,,UY,ROTZ!施加约束D,1,UZ,0,0,9,1,ROTXD,161,UZ,0,0,169,1,ROTXD,1,UZ,0,0,161,20,ROTYD,9,UZ,0,0,169,20,ROTYNSEL,S,LOC,X,.1,9.9NSEL,R,LOC,Y,.1,9.9M,ALL,UZ!选择主自由度NSEL,ALLSOLVE*GET,F,MODE,1,FREQFINISH/SOLUANTYPE,SPECTR!定义分析类型SPOPT,PSD,2,ON!利用前两阶模态并计算应力PSDUNIT,1,PRES!定义功率谱为面载荷谱DMPRAT,0.02PSDFRQ,1,1,1.0,80.0PSDVAL,1,1.0,1.0LVSCALE,1!比例使用载荷因子PFACT,1,NODEPSDRES,DISP,RELPSDCOMSOLVEFINISH/eof/POST1SET,3,1!读取位移/VIEW,1,2,3,4PLNSOL,U,ZPRNSOL,U,ZFINISH/SOLUTIONANTYPE,HARMIC!重新定义求解类型HROPT,MSUP!利用模态叠加法HROUT,OFF,ONKBC,1HARFRQ,1,80DMPRAT,0.02NSUBSTEP,10SOLVEFINISH/POST26FILE,,rfrqPRCPLX,1NSOL,2,85,U,Z!定义变量PSDDAT,6,1,1.0,80,1.0PSDTYP,2PSDCAL,7,2PSDPRTPRVAR,2,7!绘制变量曲线*GET,P,VARI,7,EXTREM,VMAX*status,parm/VIEW/AXLAB,Y,PSD(M^2/HZ)PLVAR,7FINISH