ansys 同時(shí)顯示多階模態(tài)

2017-01-16  by:CAE仿真在線  來源:互聯(lián)網(wǎng)

!在前期已有計(jì)算結(jié)果的基礎(chǔ)上,輸入以下代碼,可實(shí)現(xiàn)4個(gè)子窗口,同時(shí)顯示不同階模態(tài)振型圖;并輸出到硬盤。以下實(shí)現(xiàn)1-7階模態(tài)顯示,輸出為2個(gè)圖片文件分別為modal_1-3.bmp和modal_4-7.bmp,同理可自行擴(kuò)展代碼實(shí)現(xiàn)更多階模態(tài)輸出。

ansys 同時(shí)顯示多階模態(tài)


ansys 同時(shí)顯示多階模態(tài)


!__________________________________________________________

!調(diào)節(jié)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
!設(shè)置窗口1:位于左上角
/WINDOW,1,LTOP


/REPLOT

!設(shè)置窗口2:位于右上角
/WINDOW,2,RTOP,,,,1


/REPLOT

!設(shè)置窗口3:位于左下角
/WINDOW,3,LBOT,,,,1


/REPLOT

!設(shè)置窗口4:位于右下角
/WINDOW,4,RBOT,,,,1


/REPLOT

/erase !重顯示時(shí)從屏幕上刪除原來的顯示內(nèi)容,為默認(rèn)值
/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 !重顯示時(shí)保留屏幕上原來的顯示內(nèi)容
/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階模態(tài)
PLNSOL, U,SUM, 0,1.0 !顯示第1階模態(tài)振型

/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階模態(tài)
PLNSOL, U,SUM, 0,1.0 !顯示第2階模態(tài)振型

/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階模態(tài)
PLNSOL, U,SUM, 0,1.0 !顯示第3階模態(tài)振型

!輸出圖片為
/image,save,'model3-modal_1-3.bmp'

!------第二幅圖片------
/erase !重顯示時(shí)從屏幕上刪除原來的顯示內(nèi)容,為默認(rèn)值
/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階模態(tài)
PLNSOL, U,SUM, 0,1.0 !顯示第4階模態(tài)振型




/noerase !重顯示時(shí)保留屏幕上原來的顯示內(nèi)容
/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階模態(tài)
PLNSOL, U,SUM, 0,1.0 !顯示第5階模態(tài)振型

/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階模態(tài)
PLNSOL, U,SUM, 0,1.0 !顯示第6階模態(tài)振型

/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階模態(tài)
PLNSOL, U,SUM, 0,1.0 !顯示第7階模態(tài)振型

!輸出圖片為modal.bmp
/image,save,'model3-modal_4-7.bmp'


!恢復(fù)為當(dāng)前窗口樣式
/win,all,on
/erase
/PLOPTS, DEFA

!調(diào)節(jié)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



開放分享:優(yōu)質(zhì)有限元技術(shù)文章,助你自學(xué)成才

相關(guān)標(biāo)簽搜索:ansys 同時(shí)顯示多階模態(tài) Ansys有限元培訓(xùn) Ansys workbench培訓(xùn) ansys視頻教程 ansys workbench教程 ansys APDL經(jīng)典教程 ansys資料下載 ansys技術(shù)咨詢 ansys基礎(chǔ)知識(shí) ansys代做 Fluent、CFX流體分析 HFSS電磁分析 Abaqus培訓(xùn) 

編輯
在線報(bào)名:
  • 客服在線請(qǐng)直接聯(lián)系我們的客服,您也可以通過下面的方式進(jìn)行在線報(bào)名,我們會(huì)及時(shí)給您回復(fù)電話,謝謝!
驗(yàn)證碼

全國(guó)服務(wù)熱線

1358-032-9919

廣州公司:
廣州市環(huán)市中路306號(hào)金鷹大廈3800
電話:13580329919
          135-8032-9919
培訓(xùn)QQ咨詢:點(diǎn)擊咨詢 點(diǎn)擊咨詢
項(xiàng)目QQ咨詢:點(diǎn)擊咨詢
email:kf@1cae.com