摘要
面向对象语言丰富的数据类型及类的继承性为有限元方法提供了更高的数据安全性和设计灵活性,同时也带来了一些传统的面向过程程序设计方法所没有的问题。本文用封装在类里的数据代替Fortran有限元程序中的公用区变量以降低耦合性;用静态变量定义类对象的共同属性以减少冗余性;用单元对象的链表结构取代单元文件以提高单元管理的效率和灵活性。对面向对象有限元程序设计所涉及的数据设计和维护的其它方面也进行了讨论。
he class inheritance and other rich data types of object-oriented languages provide the FEM with high data security and programming fleaibity, while at the same bime bring out problems problems not encountered in the traditional procedural-oriented programming. This peper defines the FEM data members encapelated in C ++ classes in place of the Fortran COMMON variables in other to enhance data hiding and decrease data coupling. To decrease data redundancy, static data members are used for implementing common resources that all objects need. The Fortran element files is replaced by a C+ + lineal element list to gum higher effectiveness and fleaibility of element data management. Some other problems concerning the data deaign and maintenance of object- oriented FEM programming are discussed.
出处
《西南交通大学学报》
EI
CSCD
北大核心
1996年第4期355-360,共6页
Journal of Southwest Jiaotong University
基金
国家自然科学基金
关键词
有限元法
数据结构
面对对象
程序设计
finite element methane
inheritance
data structure
object-oriented programming
data hiding
linked list