摘要
近年来,面向对象的编程技术越来越受到人们的重视,并用来解决和模拟各种物理问题和工程问题,特别是在有限元方法编程和模拟中得到了广泛地应用。介绍了面向对象的程序设计方法和它与有限元程序相结合的原理和优点。在此基础上提出了面向对象有限元方法在油藏多相渗流中的应用实例,并按照面向对象的程序设计方法,基于Windows XP平台采用Visual C++.NET语言,建立了有关描述多相渗流的有限元模型的类,给出了类的描述和它的实现方法。建立的相关类及其实现方法主要包括处理矩阵计算的类、节点类、单元类、材料类、形函数类等。据此编制了油藏多相渗流的有限元分析的数值计算程序,并给出了一个数值实例。
Recent developments in software engineering and in the field of object-oriented C++ programming have made it possible to model physical processes and mechanism more expressively than ever before. And an interest in the use of object-oriented programming methods in finite element computing is growing. Specific ideas are provided for the development of object-oriented programming approach to the finite element analysis of multiphase seepage in an oil reservoir. The basic concepts of objects, classes, methods, and inheritance as well as an expandable application framework are introduced. According to the object-oriented programming methods and the equations of the finite element analysis of the multiphase flow in oil reservoir, the classes and their methods, which describe matrix, element, node, material, shape function etc., have been developed and implemented using the object-oriented programming language C++.NET. The program is implemented and a numerical example is simulated to show the programming of finite element method.
出处
《岩土力学》
EI
CAS
CSCD
北大核心
2009年第4期1115-1121,1130,共8页
Rock and Soil Mechanics
基金
国家自然科学基金项目(No.50574059,No.50004002)资助。
关键词
油藏
多相渗流
面向对象
有限元法
数值模拟
oil reservoir
multiphase seepage
object-oriented
finite element method
numerical simulation