ansys 同时显示多阶模态

2017-01-16  by:CAE仿真在线  来源:互联网

!在前期已有计算结果的基础上,输入以下代码,可实现4个子窗口,同时显示不同阶模态振型图;并输出到硬盘。以下实现1-7阶模态显示,输出为2个图片文件分别为modal_1-3.bmp和modal_4-7.bmp,同理可自行扩展代码实现更多阶模态输出。

ansys 同时显示多阶模态


ansys 同时显示多阶模态


!__________________________________________________________

!调节ANSYS背景为白色
/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


/post1
!设置窗口1:位于左上角
/WINDOW,1,LTOP


/REPLOT

!设置窗口2:位于右上角
/WINDOW,2,RTOP,,,,1


/REPLOT

!设置窗口3:位于左下角
/WINDOW,3,LBOT,,,,1


/REPLOT

!设置窗口4:位于右下角
/WINDOW,4,RBOT,,,,1


/REPLOT

/erase !重显示时从屏幕上删除原来的显示内容,为默认值
/win,1,on
/win,2,off
/win,3,off
/win,4,off

/PLOPTS,INFO,3
/PLOPTS,LEG1,1
/PLOPTS,LEG2,0
/PLOPTS,LEG3,0
/PLOPTS,FRAME,1
/PLOPTS,TITLE,0
/PLOPTS,MINM,0
/PLOPTS,FILE,0
/PLOPTS,LOGO,0
/PLOPTS,WINS,0
/PLOPTS,WP,0
/PLOPTS,DATE,2
/TRIAD,LBOT


EPLOT !显示模型单元


/noerase !重显示时保留屏幕上原来的显示内容
/win,1,off
/win,2,on
/win,3,off
/win,4,off

/PLOPTS,INFO,3
/PLOPTS,LEG1,1
/PLOPTS,LEG2,0
/PLOPTS,LEG3,0
/PLOPTS,FRAME,1
/PLOPTS,TITLE,0
/PLOPTS,MINM,0
/PLOPTS,FILE,0
/PLOPTS,LOGO,0
/PLOPTS,WINS,0
/PLOPTS,WP,0
/PLOPTS,DATE,2
/TRIAD,LBOT



SET,,, ,,, ,1 !读取第1阶模态
PLNSOL, U,SUM, 0,1.0 !显示第1阶模态振型

/noerase
/win,1,off
/win,2,off
/win,3,on
/win,4,off

/PLOPTS,INFO,3
/PLOPTS,LEG1,1
/PLOPTS,LEG2,0
/PLOPTS,LEG3,0
/PLOPTS,FRAME,1
/PLOPTS,TITLE,0
/PLOPTS,MINM,0
/PLOPTS,FILE,0
/PLOPTS,LOGO,0
/PLOPTS,WINS,0
/PLOPTS,WP,0
/PLOPTS,DATE,2
/TRIAD,LBOT


SET,,, ,,, ,2 !读取第2阶模态
PLNSOL, U,SUM, 0,1.0 !显示第2阶模态振型

/noerase
/win,1,off
/win,2,off
/win,3,off
/win,4,on


/PLOPTS,INFO,3
/PLOPTS,LEG1,1
/PLOPTS,LEG2,0
/PLOPTS,LEG3,0
/PLOPTS,FRAME,1
/PLOPTS,TITLE,0
/PLOPTS,MINM,0
/PLOPTS,FILE,0
/PLOPTS,LOGO,0
/PLOPTS,WINS,0
/PLOPTS,WP,0
/PLOPTS,DATE,2
/TRIAD,LBOT


SET,,, ,,, ,3 !读取第3阶模态
PLNSOL, U,SUM, 0,1.0 !显示第3阶模态振型

!输出图片为
/image,save,'model3-modal_1-3.bmp'

!------第二幅图片------
/erase !重显示时从屏幕上删除原来的显示内容,为默认值
/win,1,on
/win,2,off
/win,3,off
/win,4,off


/PLOPTS,INFO,3
/PLOPTS,LEG1,1
/PLOPTS,LEG2,0
/PLOPTS,LEG3,0
/PLOPTS,FRAME,1
/PLOPTS,TITLE,0
/PLOPTS,MINM,0
/PLOPTS,FILE,0
/PLOPTS,LOGO,0
/PLOPTS,WINS,0
/PLOPTS,WP,0
/PLOPTS,DATE,2
/TRIAD,LBOT


SET,,, ,,, ,4 !读取第4阶模态
PLNSOL, U,SUM, 0,1.0 !显示第4阶模态振型




/noerase !重显示时保留屏幕上原来的显示内容
/win,1,off
/win,2,on
/win,3,off
/win,4,off

/PLOPTS,INFO,3
/PLOPTS,LEG1,1
/PLOPTS,LEG2,0
/PLOPTS,LEG3,0
/PLOPTS,FRAME,1
/PLOPTS,TITLE,0
/PLOPTS,MINM,0
/PLOPTS,FILE,0
/PLOPTS,LOGO,0
/PLOPTS,WINS,0
/PLOPTS,WP,0
/PLOPTS,DATE,2
/TRIAD,LBOT


SET,,, ,,, ,5 !读取第5阶模态
PLNSOL, U,SUM, 0,1.0 !显示第5阶模态振型

/noerase
/win,1,off
/win,2,off
/win,3,on
/win,4,off


/PLOPTS,INFO,3
/PLOPTS,LEG1,1
/PLOPTS,LEG2,0
/PLOPTS,LEG3,0
/PLOPTS,FRAME,1
/PLOPTS,TITLE,0
/PLOPTS,MINM,0
/PLOPTS,FILE,0
/PLOPTS,LOGO,0
/PLOPTS,WINS,0
/PLOPTS,WP,0
/PLOPTS,DATE,2
/TRIAD,LBOT


SET,,, ,,, ,6 !读取第6阶模态
PLNSOL, U,SUM, 0,1.0 !显示第6阶模态振型

/noerase
/win,1,off
/win,2,off
/win,3,off
/win,4,on


/PLOPTS,INFO,3
/PLOPTS,LEG1,1
/PLOPTS,LEG2,0
/PLOPTS,LEG3,0
/PLOPTS,FRAME,1
/PLOPTS,TITLE,0
/PLOPTS,MINM,0
/PLOPTS,FILE,0
/PLOPTS,LOGO,0
/PLOPTS,WINS,0
/PLOPTS,WP,0
/PLOPTS,DATE,2
/TRIAD,LBOT

SET,,, ,,, ,7 !读取第7阶模态
PLNSOL, U,SUM, 0,1.0 !显示第7阶模态振型

!输出图片为modal.bmp
/image,save,'model3-modal_4-7.bmp'


!恢复为当前窗口样式
/win,all,on
/erase
/PLOPTS, DEFA

!调节ANSYS背景为黑色
/RGB,INDEX, 0, 0, 0, 0
/RGB,INDEX, 60, 60, 60,13
/RGB,INDEX, 80, 80, 80,14
/RGB,INDEX,100,100,100,15
/REPLOT

/WIND,ALL,OFF
/WIND,1,FULL
EPLOT



开放分享:优质有限元技术文章,助你自学成才

相关标签搜索:ansys 同时显示多阶模态 Ansys有限元培训 Ansys workbench培训 ansys视频教程 ansys workbench教程 ansys APDL经典教程 ansys资料下载 ansys技术咨询 ansys基础知识 ansys代做 Fluent、CFX流体分析 HFSS电磁分析 Abaqus培训 

编辑
在线报名:
  • 客服在线请直接联系我们的客服,您也可以通过下面的方式进行在线报名,我们会及时给您回复电话,谢谢!
验证码

全国服务热线

1358-032-9919

广州公司:
广州市环市中路306号金鹰大厦3800
电话:13580329919
          135-8032-9919
培训QQ咨询:点击咨询 点击咨询
项目QQ咨询:点击咨询
email:kf@1cae.com