首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于类模板链表结构的有限元程序设计
引用本文:袁政强,白绍良,等.基于类模板链表结构的有限元程序设计[J].重庆大学学报(自然科学版),2002,25(6):102-105108.
作者姓名:袁政强  白绍良
作者单位:重庆大学土木工程学院 重庆400045 (袁政强,白绍良),重庆大学土木工程学院 重庆400045(李正良)
基金项目:国家自然科学基金 (5 93 783 5 1)
摘    要:传统的有限元程序设计一般采用结构化的程序设计方法和结构化语言(如FORTRAN),其数据存储形式都使用固定的数组结构,使得程序的扩展能力有限,代码的重复利用率低,调试复杂。模板是面向对象的C++语言中相对较新的重要特性,模板能够快速建立类库集合,极大地提高了大型软件的开发速度。采用面向对象的程序设计方法,遵循有限元分析的本质,建立了有关描述有限元模型的类,用链表方式实现结点、单元和材料的数据存放、用多态性实现单元的自由链接,方便地实现了单元增减等用传统语言无法实现的功能。据此编制了有限元分析的数值计算程序,并给出了一个实例。结果表明,程序设计和调试周期较传统设计方法明显缩短,代码的利用率也明显提高。

关 键 词:面向对象  有限元  C++语言  类模板链表结构
文章编号:1000-582X(2002)06-0102-04

Finite Element Programming Based on Template Chain Structure
YUAN Zheng qiang,BAI Shao liang,LI Zheng liang.Finite Element Programming Based on Template Chain Structure[J].Journal of Chongqing University(Natural Science Edition),2002,25(6):102-105108.
Authors:YUAN Zheng qiang  BAI Shao liang  LI Zheng liang
Abstract:Traditional Finite Element Method is the structuralization programming method and the structuralization language (such as FORTRAN). Its data store uses fixed array structure, which makes the expanding ability of program limited, code's reuse ratio low, debugging complex. The template is an opposite new important characteristic of the object-oriented programming language C++. The template can quickly establish class library so as to increase greatly the development speed of the large software. The object-oriented programming concept is applied to finite element method. According to the nature of the finite element analysis, the classes and their methods, which describe virtual element, node, material etc., have been developed and implemented using the object-oriented programming language C++. The elements, nodes and materials are stored by chain. Many type's elements are stored mixedly by polymorphism characteristic. The program is implemented and a instance is given to show the programming of finite element method. The results show that the period of programming and debugging is obviously shorter than that of traditional method; the code's utilization ratio is also increased obviously.
Keywords:object-oriented  finite element method  C++ language  template chain structure
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《重庆大学学报(自然科学版)》浏览原始摘要信息
点击此处可从《重庆大学学报(自然科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号