如何使用Abaqus的PDE
PDE即Python development environment,可以通過PDE對Abaqus腳本進行創建、編輯、測試和執行。
Abaqus的PDE是一個分離的應用程序,可以執行與Abaqus相關的Python腳本,同時也可以執行與Abaqus不相關的Python程序。
Abaqus的PDE主界面如圖1所示。
圖1
PDE Control能夠完成的任務如下:
1)Open .guiLog, .py, and other Python scripts
2)Designate an open file or open another file as the main file for testing
3)Open recently used files, including modules called by the main file
4)Edit scripts
5)Reload modules after editing a plug-in
6)Record .guiLog files from Abaqus/CAE
7)Run scripts that use the Abaqus/CAE user interface, the Abaqus scripting commands, or general Python commands
8)Add (or ignore) breakpoints in a script
9)Add a breakpoint in any Python code executed in Abaqus/CAE, such as plug-ins
10)Add a delay between executing steps
11)Step through scripts (trace the execution), including plug-in modules and custom startup modules
12)Change options for recording .guiLog scripts and animating (highlighting) traced files
PDE如何啟動?
打開Abaqus/CAE界面,通過File—Abaqus PDE打開,如圖2
圖2
打開之後,可以通過PDE打開已經編寫好的Python腳本文件,之後可以通過Play進行運行,運行過程中如果某句代碼有問題,會很明顯的看到提示,這個是非常有用的。
還能通過設置Breaks定點執行。
在PDE主界面,可以自行編寫Python並在Abaqus的GUI界面執行。
PDE另外一個功能是記錄Abaqus/CAE界面的所有操作,記錄文件是guiLog.
如何記錄guiLog Files?
先通過主菜單的Files新建一個,然後點擊如圖3所示的錄製按鈕,之後所有在Abaqus界面進行的操作都會再界面被記錄,完成錄製後可以執行。
圖3
更多內容詳見原帖http://www.jishulink.com/content/post/296573
推薦閱讀: