fluent批量處理——多點、線、面的設定與監控
瀏覽:163306 評論:4 收藏:3
在以往的兩個帖子中,已經提到了采用journal文件進行計算前的
模型
參數設置、連續計算以及批量后處理,想必大家在此基礎上有一些別的想法,是的,本人結合自身經歷,發現在一些計算中,需要大規模的創建點、線乃至于面,并且還需要將這些監控起來,假如按照我們手工去操作的話,那工作量還是很大的,說不定還容易出現錯誤。因此,為減少失誤以及提高工作效率,
本次,將繼續介紹journal的另外一些別的用途:多點、線、面的設定與監控。
1、點、線、面的設定
當N多的點,線,面需要你一個一個敲進去的話,想必你已經麻木了。不過有了下面的命令,相信一切都會變得簡單。
開始的步驟見帖子” http://forums.caenet.cn/showtopic-532623.aspx “
(1)點:
(cx-gui-do cx-activate-item "MenuBar*SurfaceMenu*Point...")
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry1(x0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry2(y0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry3(z0)" '( 0))
(cx-gui-do cx-activate-item "Point Surface*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry1(x0)" '( 1))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry2(y0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry3(z0)" '( 0))
(cx-gui-do cx-activate-item "Point Surface*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry1(x0)" '( 2))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry2(y0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry3(z0)" '( 0))
(cx-gui-do cx-activate-item "Point Surface*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Stop Journal")
將“(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry1(x0)" '( 2))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry2(y0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry3(z0)" '( 0))
(cx-gui-do cx-activate-item "Point Surface*PanelButtons*PushButton1(OK)")”
這四行重復就行,注意更改里頭的坐標值。
(2)線:
(cx-gui-do cx-activate-item "MenuBar*SurfaceMenu*Line/Rake...")
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry1(x0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry4(x1)" '( 20))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry2(y0)" '( 10))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry5(y1)" '( 10))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry3(z0)" '( 10))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry6(z1)" '( 10))
(cx-gui-do cx-activate-item "Line/Rake Surface*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry1(x0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry4(x1)" '( 20))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry2(y0)" '( 20))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry5(y1)" '( 20))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry3(z0)" '( 10))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry6(z1)" '( 10))
(cx-gui-do cx-activate-item "Line/Rake Surface*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Stop Journal")
同樣重復上面坐標那幾行命令就OK。
(3)面的話,同樣的操作,這里就不再敘述了。
2、點、線、面的監控
前面已經把需要監控的點、線、面已經設定好了,現在就進行監控。
(1)點:
(cx-gui-do cx-activate-item "MenuBar*MonitorsSubMenu*Surface...")
(cx-gui-do cx-set-integer-entry "Surface Monitors*IntegerEntry1(Surface Monitors)" 1)
(cx-gui-do cx-activate-item "Surface Monitors*IntegerEntry1(Surface Monitors)")
(cx-gui-do cx-set-integer-entry "Surface Monitors*IntegerEntry1(Surface Monitors)" 2)
(cx-gui-do cx-activate-item "Surface Monitors*IntegerEntry1(Surface Monitors)")
(cx-gui-do cx-set-toggle-button "Surface Monitors*Frame2*Table2*CheckButton10" #f)
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*CheckButton10")
(cx-gui-do cx-set-integer-entry "Surface Monitors*Frame2*Table2*IntegerEntry11" 2)
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*IntegerEntry11")
(cx-gui-do cx-set-list-selections "Surface Monitors*Frame2*Table2*DropDownList12" '( 1))
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*DropDownList12")
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*PushButton13(Define)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame1*DropDownList2(Report Type)" '( 7))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame1*DropDownList2(Report Type)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame1*DropDownList3(X Axis)" '( 2))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame1*DropDownList3(X Axis)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Table2*DropDownList1(Report of)" '( 0))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Table2*DropDownList1(Report of)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Table2*DropDownList2" '( 0))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Table2*DropDownList2")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame3*List3(Surfaces)" '( 7))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame3*List3(Surfaces)")
(cx-gui-do cx-set-text-entry "Define Surface Monitor*TextEntry2(File Name)" "point-1")
(cx-gui-do cx-activate-item "Define Surface Monitor*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-toggle-button "Surface Monitors*Frame2*Table2*CheckButton17" #f)
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*CheckButton17")
(cx-gui-do cx-set-integer-entry "Surface Monitors*Frame2*Table2*IntegerEntry18" 2)
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*IntegerEntry18")
(cx-gui-do cx-set-list-selections "Surface Monitors*Frame2*Table2*DropDownList19" '( 1))
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*DropDownList19")
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*PushButton20(Define)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame1*DropDownList2(Report Type)" '( 7))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame1*DropDownList2(Report Type)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame1*DropDownList3(X Axis)" '( 2))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame1*DropDownList3(X Axis)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Table2*DropDownList1(Report of)" '( 0))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Table2*DropDownList1(Report of)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Table2*DropDownList2" '( 0))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Table2*DropDownList2")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame3*List3(Surfaces)" '())
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame3*List3(Surfaces)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame3*List3(Surfaces)" '( 8))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame3*List3(Surfaces)")
(cx-gui-do cx-set-text-entry "Define Surface Monitor*TextEntry2(File Name)" "point-2")
(cx-gui-do cx-activate-item "Define Surface Monitor*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "Surface Monitors*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Stop Journal")
線和面的監控類似,就不再列出了。
這樣的話,基本能保證所需要的點、線、面的設定與監控。
還是挺省事的。
這些是個人在應用中的一些經驗和體會,期待與大家學習交流!
1、點、線、面的設定
當N多的點,線,面需要你一個一個敲進去的話,想必你已經麻木了。不過有了下面的命令,相信一切都會變得簡單。
開始的步驟見帖子” http://forums.caenet.cn/showtopic-532623.aspx “
(1)點:
(cx-gui-do cx-activate-item "MenuBar*SurfaceMenu*Point...")
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry1(x0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry2(y0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry3(z0)" '( 0))
(cx-gui-do cx-activate-item "Point Surface*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry1(x0)" '( 1))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry2(y0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry3(z0)" '( 0))
(cx-gui-do cx-activate-item "Point Surface*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry1(x0)" '( 2))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry2(y0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry3(z0)" '( 0))
(cx-gui-do cx-activate-item "Point Surface*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Stop Journal")
將“(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry1(x0)" '( 2))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry2(y0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Point Surface*Frame2(Coordinates)*Table1*RealEntry3(z0)" '( 0))
(cx-gui-do cx-activate-item "Point Surface*PanelButtons*PushButton1(OK)")”
這四行重復就行,注意更改里頭的坐標值。
(2)線:
(cx-gui-do cx-activate-item "MenuBar*SurfaceMenu*Line/Rake...")
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry1(x0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry4(x1)" '( 20))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry2(y0)" '( 10))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry5(y1)" '( 10))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry3(z0)" '( 10))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry6(z1)" '( 10))
(cx-gui-do cx-activate-item "Line/Rake Surface*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry1(x0)" '( 0))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry4(x1)" '( 20))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry2(y0)" '( 20))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry5(y1)" '( 20))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry3(z0)" '( 10))
(cx-gui-do cx-set-real-entry-list "Line/Rake Surface*Frame4(End Points)*Table1*RealEntry6(z1)" '( 10))
(cx-gui-do cx-activate-item "Line/Rake Surface*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Stop Journal")
同樣重復上面坐標那幾行命令就OK。
(3)面的話,同樣的操作,這里就不再敘述了。
2、點、線、面的監控
前面已經把需要監控的點、線、面已經設定好了,現在就進行監控。
(1)點:
(cx-gui-do cx-activate-item "MenuBar*MonitorsSubMenu*Surface...")
(cx-gui-do cx-set-integer-entry "Surface Monitors*IntegerEntry1(Surface Monitors)" 1)
(cx-gui-do cx-activate-item "Surface Monitors*IntegerEntry1(Surface Monitors)")
(cx-gui-do cx-set-integer-entry "Surface Monitors*IntegerEntry1(Surface Monitors)" 2)
(cx-gui-do cx-activate-item "Surface Monitors*IntegerEntry1(Surface Monitors)")
(cx-gui-do cx-set-toggle-button "Surface Monitors*Frame2*Table2*CheckButton10" #f)
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*CheckButton10")
(cx-gui-do cx-set-integer-entry "Surface Monitors*Frame2*Table2*IntegerEntry11" 2)
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*IntegerEntry11")
(cx-gui-do cx-set-list-selections "Surface Monitors*Frame2*Table2*DropDownList12" '( 1))
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*DropDownList12")
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*PushButton13(Define)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame1*DropDownList2(Report Type)" '( 7))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame1*DropDownList2(Report Type)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame1*DropDownList3(X Axis)" '( 2))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame1*DropDownList3(X Axis)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Table2*DropDownList1(Report of)" '( 0))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Table2*DropDownList1(Report of)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Table2*DropDownList2" '( 0))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Table2*DropDownList2")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame3*List3(Surfaces)" '( 7))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame3*List3(Surfaces)")
(cx-gui-do cx-set-text-entry "Define Surface Monitor*TextEntry2(File Name)" "point-1")
(cx-gui-do cx-activate-item "Define Surface Monitor*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-toggle-button "Surface Monitors*Frame2*Table2*CheckButton17" #f)
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*CheckButton17")
(cx-gui-do cx-set-integer-entry "Surface Monitors*Frame2*Table2*IntegerEntry18" 2)
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*IntegerEntry18")
(cx-gui-do cx-set-list-selections "Surface Monitors*Frame2*Table2*DropDownList19" '( 1))
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*DropDownList19")
(cx-gui-do cx-activate-item "Surface Monitors*Frame2*Table2*PushButton20(Define)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame1*DropDownList2(Report Type)" '( 7))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame1*DropDownList2(Report Type)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame1*DropDownList3(X Axis)" '( 2))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame1*DropDownList3(X Axis)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Table2*DropDownList1(Report of)" '( 0))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Table2*DropDownList1(Report of)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Table2*DropDownList2" '( 0))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Table2*DropDownList2")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame3*List3(Surfaces)" '())
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame3*List3(Surfaces)")
(cx-gui-do cx-set-list-selections "Define Surface Monitor*Frame1*Frame3*List3(Surfaces)" '( 8))
(cx-gui-do cx-activate-item "Define Surface Monitor*Frame1*Frame3*List3(Surfaces)")
(cx-gui-do cx-set-text-entry "Define Surface Monitor*TextEntry2(File Name)" "point-2")
(cx-gui-do cx-activate-item "Define Surface Monitor*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "Surface Monitors*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Stop Journal")
線和面的監控類似,就不再列出了。
這樣的話,基本能保證所需要的點、線、面的設定與監控。
還是挺省事的。
這些是個人在應用中的一些經驗和體會,期待與大家學習交流!
技術鄰APP
工程師必備
工程師必備
- 項目客服
- 培訓客服
- 平臺客服
TOP
2
4
3




















