摘 要:在對MSC.Patran進行二次開發時,通常需要編寫自定義的圖形界面,以實現開發者所需的一些特殊功能。由于Patran軟件讀取部分格式文件功能比較繁瑣,要通過手動輸入一些參數才能進行數據的讀入。針對這些不足,特進行Patran界面的二次開發,使得預先設置好的參數,通過界面函數與系統調用,可以直接進行數據讀取,大大提高了效率。最后給出開發后的界面實例進行驗證。關鍵詞:MSC.Patran; PCL語言二次開發; 用戶界面; 數據讀取
中圖分類號:TN911-33文獻標識碼:A
文章編號:1004-373X(2010)16-0017-03
PCL Secondary Development Based on MSC Patran Interface
ZHANG Jun-yan, LI Chang-hua, LI Xiao-hui
(Information and Control Engineering College, Xi’an University of Architecture and Technology, Xi’an 710055, China)
Abstract: When MSC Patran is redeveloped, the compiling of the self-defined graphical interfaces are usually needed to achieve some special functions needed by developers. As it is relatively more complicated for Patran software to read the part of the format-file function, some parameters should be input manually for reading into the data. Aming at these shortcomings, the redevelopment for Patran interface is adopted to pre-set the parameters. The data can be directly read by the interface functions and the system calls. It greatly improves the efficiency. The instance of the developed interface is offered for the authentication.Keywords: MSC Patran; PCL redevelopment; user interface; read data
0 引 言
隨著造船技術的發展,船舶建造向大型化和經濟化方向發展。MSC.Patran是MSC公司開發的大型有限元通用軟件,廣泛地應用于航空、航天、船舶、建筑、橋梁等行業的工程設計、工程分析中。Patran可以用來對建筑物進行各種分析,例如:混凝土實體結構有限元分析以及超高層建筑物的氣壓波動分析等。MSC.Patran具有齊全的前、后處理功能,以MSC.Pantran為平臺,應用PCL語言并結合會話文件對MSC.Patran進行二次開發,實現結構建模與分析的參數化。PCL(Patran Command Language)是一個高級、模塊化結構編程語言和用戶自定義工具,類似于C語言和Fortran語言,可用于生成應用程序或特定的用戶界面,顯示自定義圖形、讀寫Patran數據庫,建立新的功能或增強功能。同時通過PCL的二次開發,其他商品化的或自編分析程序可被集成到Patran中。
目前,幾乎所有的分析仿真軟件都采用PCL語言作為工具,它們與Patran建立了直接集成關系或直接將Patran作為分析系統的前后處理器。該PCL語言被業界公認為標準工具。……