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

Abstract

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 detailed description of the underlying concepts, philosophies and techniques used to develop the toolkit, as well as description of its contents and usage are included. A strong effort has been made to concentrate on its possibly beneficial usage in the computational fluid dynamics area. Hence, a number of sample CFD and heat transfer applications of increasing difficulty and interests are thoroughly discussed. Moreover, 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$\sp3$ and 10$\sp{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. Furthermore, three-dimensional simulations have been performed for a differentially heated cubic cavity in the laminar regime for air with a Prandtl number of 0.71, and values of the Rayleigh number ranging from 10$\sp3$ to 10$\sp6$. The results obtained compare well with other results in the literature, and characterize some of the three-dimensional effects that are ignored in two-dimensional simulations. In particular, it can be observed that the three-dimensional effects can change the predicted dimensionless heat transfer rate by as much as 10%

Similar works

Full text

thumbnail-image

DSpace at Rice University

Full text is not available
oai:scholarship.rice.edu:1911/19189Last time updated on 6/11/2012

This paper was published in DSpace at Rice University.

Having an issue?

Is data on this page outdated, violates copyrights or anything else? Report the problem now and we will take corresponding actions after reviewing your request.