针对协同仿真环境集成框架的需求及ANSYS软件的特点,在ANSYS10.0基础上综合利用TCL/TK、APDL和UIDL三种二次开发工具将其功能组件化,实现主菜单栏动态修改,组件数据自动提取和保存功能,并创建友好美观的界面。采用Socket技术建立ANSYS软件与协同仿真环境之间的通信,实现仿真组件的自动调用。最后利用齿轮箱的静力学分析实例说明了该二次开发方法实现协同仿真环境对ANSYS集成的可行性,同时也证明此方法能方便仿真人员使用,大大提高工作效率。
According to the needs of integrated framework for collaborative simulation environment and the characteristics of ANSYS software,the functionality of ANSYS 10.0 is modularized by utilizing three kinds of secondary development tools TCL/TK,APDL and UIDL.The dynamic change of the main menu bar,the auto-acquire and auto-save of module data are realized,a beautiful friendly interface is also established.Socket technology is used to build the communication between ANSYS and collaborative simulation environment and consequently make simulation modules be automatically called.Finally,the feasibility of using secondary development technology to realize integration of ANSYS and collaborative simulation environment is illustrated by an instance of static analysis on gearbox.Meanwhile,this method is proved to be convenient and high efficient to its users.