Object-oriented implementation of the Galerkin finite element method and its application to the numerical study of natural convective flows in enclosures

被引:1
作者
Moreno, R
Ramaswamy, B
机构
[1] Angel Acad Ann Arbor, Dept Mech & Environm Engn, Ann Arbor, MI 48105 USA
[2] Exxon Prod Res Co, Houston, TX USA
关键词
object-oriented programming; object-oriented finite element analysis; preconditioned conjugate gradient; partial differential equations;
D O I
10.1080/1061856031000083495
中图分类号
O3 [力学];
学科分类号
08 ; 0801 ;
摘要
Using object-oriented programming (OOP) techniques and philosophies, a collection of C++ tools for the rapid development of finite element applications has been created. The object-oriented finite element analysis (OOFEA) toolkit provides both the geometrical and mathematical management tools necessary for this task in the form of useful class hierarchies. In particular, the OOFEA toolkit features methods for evaluating arbitrary weak forms provided by the user in order to solve particular problems of interest. A description of the underlying concepts, philosophies and techniques used to develop the toolkit are included. A strong effort has been made to concentrate on its possibly beneficial usage in the computational fluid dynamics area. In order to demonstrate the toolkit capabilities of managing complex projects, a simulator for laminar and turbulent natural convective flows in enclosures has been developed and a numerical study of some of these flows has been conducted. Using a primitive variable approach, the Galerkin FEM is used to obtain the weak form of the coupled unsteady Navier-Stokes and energy equations for incompressible, viscous, Newtonian fluids in two and three dimensions. By including a k-epsilon turbulence model in the governing equations, the analysis of both laminar and turbulent convective flows in enclosures is possible. With the help of a semi-implicit time stepping scheme, combined with a projection scheme, the resulting systems of equations are solved iteratively using the preconditioned conjugate gradient (PCG) algorithm. Time accurate two-dimensional simulations have been performed for a differentially heated square cavity in the laminar and turbulent regimes, for air with a Prandtl number of 0.71, and values of the Rayleigh number ranging between 10(3) and 10(10). Consistency tests show that the simulator correctly implements the k-epsilon turbulence model, and the numerical results compare well with results reported in the literature. The resulting simulator demonstrates the flexibility of the object-oriented implementation when the short implementation period involved in its development is considered together with its compactness.
引用
收藏
页码:39 / 60
页数:22
相关论文
共 36 条
[1]  
[Anonymous], 2004, COMPUTATIONAL FLUID
[2]  
AUNG W, 1985, NATURAL CONVECTION F, P1155
[3]   NATURAL-CONVECTION FLOW IN A SQUARE CAVITY REVISITED - LAMINAR AND TURBULENT MODELS WITH WALL FUNCTIONS [J].
BARAKOS, G ;
MITSOULIS, E ;
ASSIMACOPOULOS, D .
INTERNATIONAL JOURNAL FOR NUMERICAL METHODS IN FLUIDS, 1994, 18 (07) :695-719
[4]  
Barrett R., 1994, Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods, V2nd ed.
[5]  
BARTON JJ, 1994, SCI ENG C PLUS PLUS
[6]  
CHIPPADA S, THESIS RICE U HOUSTO
[7]  
DAVIS GD, 1983, INT J NUMER METH FL, V3, P249
[8]   LAMINAR AND TURBULENT NATURAL-CONVECTION IN THE ANNULUS BETWEEN HORIZONTAL CONCENTRIC CYLINDERS [J].
FAROUK, B ;
GUCERI, SI .
JOURNAL OF HEAT TRANSFER-TRANSACTIONS OF THE ASME, 1982, 104 (04) :631-636
[9]   OBJECT-ORIENTED FINITE-ELEMENT ANALYSIS [J].
FORDE, BWR ;
FOSCHI, RO ;
STIEMER, SF .
COMPUTERS & STRUCTURES, 1990, 34 (03) :355-374
[10]  
FRAIKIN MP, 1980, 19 ASME AICHE NAT HE