ansys 同時顯示多階模態(tài)
2017-01-16 by:CAE仿真在線 來源:互聯(lián)網(wǎng)
!在前期已有計算結果的基礎上,輸入以下代碼,可實現(xiàn)4個子窗口,同時顯示不同階模態(tài)振型圖;并輸出到硬盤。以下實現(xiàn)1-7階模態(tài)顯示,輸出為2個圖片文件分別為modal_1-3.bmp和modal_4-7.bmp,同理可自行擴展代碼實現(xiàn)更多階模態(tài)輸出。
!__________________________________________________________
!調節(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
!設置窗口1:位于左上角
/WINDOW,1,LTOP
/REPLOT
!設置窗口2:位于右上角
/WINDOW,2,RTOP,,,,1
/REPLOT
!設置窗口3:位于左下角
/WINDOW,3,LBOT,,,,1
/REPLOT
!設置窗口4:位于右下角
/WINDOW,4,RBOT,,,,1
/REPLOT
/erase
!重顯示時從屏幕上刪除原來的顯示內(nèi)容,為默認值
/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
!重顯示時保留屏幕上原來的顯示內(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
!重顯示時從屏幕上刪除原來的顯示內(nèi)容,為默認值
/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
!重顯示時保留屏幕上原來的顯示內(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'
!恢復為當前窗口樣式
/win,all,on
/erase
/PLOPTS, DEFA
!調節(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
相關標簽搜索:ansys 同時顯示多階模態(tài) Ansys有限元培訓 Ansys workbench培訓 ansys視頻教程 ansys workbench教程 ansys APDL經(jīng)典教程 ansys資料下載 ansys技術咨詢 ansys基礎知識 ansys代做 Fluent、CFX流體分析 HFSS電磁分析 Abaqus培訓