用于单元刚度计算的矩阵类程序的设计与开发
|
英文标题:Design and exploitation for matrix class procedure in element stiffness calculation |
作者:汪继勇 兰箭 华林 王德清 |
单位:武汉理工大学材料学院 |
关键词:有限元 面向对象 矩阵类 C++ |
分类号:TP311.11 |
出版年,卷(期):页码:2008,33(4):154-156 |
摘要:
|
在有限元软件开发中,程序模块的重用和执行效率是影响软件性能的两个关键问题。运用面向对象语言开发有限元软件中的单元刚度矩阵计算程序,可有效解决其重用问题;运用引用变量、内存动态分配函数——calloc函数和内联函数,可有效地提高单元矩阵计算效率,从而提高有限元软件执行效率。本文开发的单元刚度矩阵计算程序是用C++语言编写。与传统的面向过程语言编制的有限元程序相比,该法编制的程序执行速度快、重用性好,易于实现多种类型单元共存的情况,是解决大型有限元程序编制的有效方法。文中通过应用实例比较,说明了此矩阵类的高效性。
|
In finite element software exploitation,the reuse and the efficiency of program modules are two key issues which affect the software performance.In order to resolve reuse problems,object-oriented language can be used to develop finite element stiffness matrix calculation procedures.Using reference variable,dynamic memory allocation function-calloc function and inline function can increase the efficiency of element matrix calculation.Element stiffness matrix which was compiled by using C++ language was introduced.Compared with finite element program with traditional fortran language,the program with OOP has predominance of high speed in program running,convenience in maintenance and easily realizing coexisting of various kinds of elements.It is effective for large scale finite element program design.Finally,through the use of comparative examples,the efficiency of this kind of matrix was illustrated.
|
基金项目:
|
|
作者简介:
|
|
参考文献:
|
[1]Shiro Kobayashi.Metal Forming and the Finite ElementMethed[M].Oxford:Oxford University Press,1989.
[2]俞铭华,吴剑国.有限元法与面向对象编程[M].北京:科学出版社,2003.
[3]张国峰.面向对象的程序设计与C++教程[M].北京:电子工业出版社,1995.
[4]Stephen Prata.孙建春,韦强译.C++Primer Plus[M].5版.中文版.北京:人民邮电出版社,2005.
[5]朱衡君.Matlab语言及实践教程[M].北京:清华大学出版社,2005.
|
服务与反馈:
|
【文章下载】【加入收藏】
|
|
|