Docsity

Computational Engineering - Introdution to Numerical Methods By Michael Schafer, Notas de estudo de Engenharia Mecânica

Pré-visualização parcial do texto

Baixe Computational Engineering - Introdution to Numerical Methods By Michael Schafer e outras Notas de estudo em PDF para Engenharia Mecânica, somente na Docsity!

Michael Schäfer

Computational Engineering – Introduction to Numerical Methods

Michael Schäfer

Computational Engineering –

Introduction to

Numerical Methods

With 204 Figures

Preface

Due to the enormous progress in computer technology and numerical methods that have been achieved in recent years, the use of numerical simulation meth- ods in industry gains more and more importance. In particular, this applies to all engineering disciplines. Numerical computations in many cases offer a cost effective and, therefore, very attractive possibility for the investigation and optimization of products and processes. Besides the need for developers of corresponding software, there is a strong

  • and still rapidly growing – demand for qualified specialists who are able to efficiently apply numerical simulation tools to complex industrial problems. The successful and efficient application of such tools requires certain basic knowledge about the underlying numerical methodologies and their possibil- ities with respect to specific applications. The major concern of this book is the impartation of this knowledge in a comprehensive way. The text gives a practice oriented introduction in modern numerical meth- ods as they typically are applied in engineering disciplines like mechanical, chemical, or civil engineering. In corresponding applications the by far most frequent tasks are related to problems from heat transfer, structural mechan- ics, and fluid mechanics, which, therefore, constitute a thematical focus of the text. The topic must be seen as a strongly interdisciplinary field in which aspects of numerical mathematics, natural sciences, computer science, and the corre- sponding engineering area are simultaneously important. As a consequence, usually the necessary information is distributed in different textbooks from the individual disciplines. In the present text the subject matter is presented in a comprehensive multidisciplinary way, where aspects from the different fields are treated insofar as it is necessary for general understanding. Following this concept, the text covers the basics of modeling, discretiza- tion, and solution algorithms, whereas an attempt is always made to estab- lish the relationships to the engineering relevant application areas mentioned above. Overarching aspects of the different numerical techniques are empha- sized and questions related to accuracy, efficiency, and cost effectiveness, which

VI Preface

are most relevant for the practical application, are discussed. The following subjects are addressed in detail:

Modelling: simple field problems, heat transfer, structural mechanics, fluid mechanics. Discretization: connection to CAD, numerical grids, finite-volume meth- ods, finite-element methods, time discretization, properties of discrete sys- tems. Solution algorithms: linear systems, non-linear systems, coupling of vari- ables, adaptivity, multi-grid methods, parallelization. Special applications: finite-element methods for elasto-mechanical prob- lems, finite-volume methods for incompressible flows, simulation of turbu- lent flows.

The topics are presented in an introductory manner, such that besides basic mathematical standard knowledge in analysis and linear algebra no further prerequisites are necessary. For possible continuative studies hints for corre- sponding literature with reference to the respective chapter are given. Important aspects are illustrated by means of application examples. Many exemplary computations done “by hand” help to follow and understand the numerical methods. The exercises for each chapter give the possibility of re- viewing the essentials of the methods. Solutions are provided on the web page www.fnb.tu-darmstadt.de/ceinm/. The book is suitable either for self-study or as an accompanying textbook for corresponding lectures. It can be useful for students of engineering disciplines, but also for computational engineers in industrial practice. Many of the methods presented are integrated in the flow simulation code FASTEST, which is available from the author. The text evolved on the basis of several lecture notes for different courses at the Department of Numerical Methods in Mechanical Engineering at Darm- stadt University of Technology. It closely follows the German book Numerik im Maschinenbau (Springer, 1999) by the author, but includes several modi- fications and extensions. The author would like to thank all members of the department who have supported the preparation of the manuscript. Special thanks are addressed to Patrick Bontoux and the MSNM-GP group of CNRS at Marseille for the warm hospitality at the institute during several visits which helped a lot in com- pleting the text in time. Sincere thanks are given to Rekik Alehegn Mekonnen for proofreading the English text. Last but not least the author would like to thank the Springer-Verlag for the very pleasant cooperation.

Darmstadt Spring 2006 Michael Sch¨afer

1

Introduction

In this introductory chapter we elucidate the value of using numerical methods in engineering applications. Also, a brief overview of the historical develop- ment of computers is given, which, of course, are a major prerequisite for the successful and efficient use of numerical simulation techniques for solving complex practical problems.

1.1 Usefulness of Numerical Investigations

The functionality or efficiency of technical systems is always determined by certain properties. An ample knowledge of these properties is frequently the key to understanding the systems or a starting point for their optimization. Numerous examples from various engineering branches could be given for this. A few examples, which are listed in Table 1.1, may be sufficient for the motivation.

Table 1.1. Examples for the correlation of properties with functionality and efficiency of technical systems

Property Functionality/Efficiency

Aerodynamics of vehicles Fuel consumption Statics of bridges Carrying capacity Crash behavior of vehicles Chances of passenger survival Pressure drop in vacuum cleaners Sucking performance Pressure distribution in brake pipes Braking effect Pollutants in exhaust gases Environmental burden Deformation of antennas Pointing accuracy Temperature distributions in ovens Quality of baked products

2 1 Introduction

In engineering disciplines in this context, in particular, solid body and flow properties like

deformations or stresses, flow velocities, pressure or temperature distributions, drag or lift forces, pressure or energy losses, heat or mass transfer rates,...

play an important role. For engineering tasks the investigation of such prop- erties usually matters in the course of the redevelopment or enhancement of products and processes, where the insights gained can be useful for different purposes. To this respect, exemplarily can be mentioned:

improvement of efficiency (e.g., performance of solar cells), reduction of energy consumption (e.g., current drain of refrigerators), increase of yield (e.g., production of video tapes), enhancement of safety (e.g., crack propagation in gas pipes, crash behavior of cars), improvement of durability (e.g., material fatigue in bridges, corrosion of exhaust systems), enhancement of purity (e.g., miniaturization of semi-conductor devices), pollutants reduction (e.g., fuel combustion in engines), noise reduction (e.g., shaping of vehicle components, material for pavings), saving of raw material (e.g., production of packing material), understanding of processes,...

Of course, in the industrial environment in many instances the question of cost reduction, which may arise in one way or another with the above im- provements, takes center stage. But it is also often a matter of obtaining a general understanding of processes, which function as a result of long-standing experience and trial and error, but whose actual operating mode is not ex- actly known. This aspect crops up and becomes a problem particularly if improvements (e.g. as indicated above) should be achieved and the process

  • under more or less changed basic conditions – does not function anymore or only works in a constricted way (e.g., production of silicon crystals, noise generation of high speed trains,... ). There are fields of application for the addressed investigations in nearly all branches of engineering and natural sciences. Some important areas are, for instance:

automotive, aircraft, and ship engineering, engine, turbine, and pump engineering, reactor and plant construction, ventilation, heating, and air conditioning technology, coating and deposition techniques, combustion and explosion processes,

4 1 Introduction

by means of numerical methods on computers. The advantages of numerical simulations compared to purely experimental investigations are quite obvious:

Numerical results often can be obtained faster and at lower costs. Parameter variations on the computer usually are easily realizable (e.g., aerodynamics of different car bodies). A numerical simulation often gives more comprehensive information due to the global and simultaneous computation of different problem-relevant quantities (e.g., temperature, pressure, humidity, and wind for weather forecast).

An important prerequisite for exploiting these advantages is, of course, the reliability of the computations. The possibilities for this have significantly improved in recent years due developments which have contributed a great deal to the “booming” of numerical simulation techniques (this will be briefly sketched in the next section). However, this does not mean that experimen- tal investigations are (or will become) superfluous. Numerical computations surely will never completely replace experiments and measurements. Com- plex physical and chemical processes, like turbulence, combustion, etc., or non-linear material properties have to be modelled realistically, for which as near to exact and detailed measuring data are indispensable. Thus, both ar- eas, numerics and experiments, must be further developed and ideally used in a complementary way to achieve optimal solutions for the different require- ments.

1.2 Development of Numerical Methods

The possibility of obtaining approximative solutions via the application of finite-difference methods to the partial differential equations, as they typically arise in the engineering problems of interest here, was already known in the 19th century (the mathematicians Gauß and Euler should be mentioned as pioneers). However, these methods could not be exploited reasonably due to the too high number of required arithmetic operations and the lack of computers. It was with the development of electronic computers that these numerical approaches gained importance. This development was (and is) very fast-paced, as can be well recognized from the maximally possible number of floating point operations per second (Flops) achieved by the computers which is indicated in Table 1.2. Comparable rates of improvement can be observed for the available memory capacity (also see Table 1.2). However, not only the advances in computer technology have had a crucial influence on the possibilities of numerical simulation methods, but also the continuous further development of the numerical algorithms has contributed significantly to this. This becomes apparent when one contrasts the develop- ments in both areas in recent years as indicated in Fig. 1.1. The improved

1.2 Development of Numerical Methods 5

Table 1.2. Development of computing power and memory capacity of electronic computers

Floating point operations Memory space Year Computer per second (Flops) in Bytes

1949 EDSAC 1 1 · 102 2 · 103 1964 CDC 6600 3 · 106 9 · 105 1976 CRAY 1 8 · 107 3 · 107 1985 CRAY 2 1 · 109 4 · 109 1997 Intel ASCI 1 · 1012 3 · 1011 2002 NEC Earth Simulator 4 · 1013 1 · 1013 2005 IBM Blue Gene/L 3 · 1014 5 · 1013 2009 IBM Blue Gene/Q 3 · 1015 5 · 1014

capabilities with respect to a realistic modeling of the processes to be investi- gated also have to be mentioned in this context. An end to these developments is not yet in sight and the following trends are on the horizon for the future:

Computers will become ever faster (higher integrated chips, higher clock rates, parallel computers) and the memory capacity will simultaneously increase. The numerical algorithms will become more and more efficient (e.g., by adaptivity concepts). The possibilities of a realistic modeling will be further improved by the allocation of more exact and detailed measurement data.

One can thus assume that the capabilities of numerical simulation techniques will greatly increase in the future. Along with the achieved advances, the application of numerical simulation methods in industry increases rapidly. It can be expected that this trend will be even more pronounced in the future. However, with the increased possibilities the demand for simulations of more and more complex tasks also rises. This in turn means that the complexity of the numerical methods and the corresponding software further increases. Therefore, as is already the case in recent years, the field will be an area of active research and development in the foreseeable future. An important aspect in this context is that developments frequently undertaken at universities are rapidly made available for efficient use in industrial practice. Based on the aforementioned developments, it can be assumed that in the future there will be a continuously increasing demand for qualified specialists, who are able to apply numerical methods in an efficient way for complex industrial problems. An important aspect here is that the possibilities and also the limitations of numerical methods and the corresponding computer software for the respective application area are properly assessed.

1.3 Characterization of Numerical Methods 7

Validation

Verification

Algebraic equation systems

Grid generation Discretization

Differential equations Boundary conditions

Experimental data Math. models

Engineering problem Problem solution

Analysis Interpretation

Visual information Derived quantities

Visualization Evaluation

Numerical solution

Algorithms Computers

?

Fig. 1.2. Procedure for the application of numerical simulation techniques for the solution of engineering problems

number of values. This process, which is called discretization, mainly involves two tasks:

the discretization of the problem domain, the discretization of the equations.

The discretization of the problem domain, which is addressed in Chap. 3, ap- proximates the continuous domain (in space and time) by a finite number of subdomains (see Fig. 1.3), in which then numerical values for the unknown quantities are determined. The set of relations for the computation of these values are obtained by the discretization of the equations, which approximates the continuous systems by discrete ones. In contrast to an analytical solution, the numerical solution thus yields a set of values related to the discretized problem domain from which the approximation of the solution can be con- structed. There are primarily three different approaches available for the discretiza- tion procedure:

the finite-difference method (FDM), the finite-volume method (FVM), the finite-element method (FEM).

8 1 Introduction

Fig. 1.3. Example for the dis- cretization of a problem domain (surface grid of dispersion stirrer)

In practice nowadays mainly FEM and FVM are employed (the basics are addressed in detail in Chaps. 4 and 5). While FEM is predominantly used in the area of structural mechanics, FVM dominates in the flow mechanical area. Because of the importance of these two application areas in combination with the corresponding discretization technique, we will deal with them separately in Chaps. 9 and 10. For special puposes, e.g., for the time discretization, which is the topic of Chap. 6, or for special approximations in the course of FVM and FEM, FDM is often also applied (the corresponding basics are recalled where needed). It should be noted that there are other discretization methods, e.g., spectral methods or meshless methods, which are used for special purposes. However, since these currently are not in widespread use we do not consider them further here. The next step in the course of the simulation consists in the solution of the algebraic equation systems (the actual computation), where one frequently is faced with equations with several millions of unknowns (the more unknowns, the more accurate the numerical result will be). Here, algorithmic questions and, of course, computers come into play. The most relevant aspects in this regard are treated in Chaps. 7 and 12. The computation in the first instance results in a usually huge amount of numbers, which normally are not intuitively understood. Therefore, for the evaluation of the computed results a suitable visualization of the results is important. For this purpose special software packages are available, which meanwhile have reached a relatively high standard. We do not address this topic further here.

10 1 Introduction

Numerical simulation

Engineering science

Numerical mathematics

Physics Chemistry

Computer science

Fig. 1.5. Interdisciplinarity of numerical simulation of engineering problems

numerical simulation methods is, in particular, the efficient interaction of the different methodologies from the different areas.

2

Modeling of Continuum Mechanical Problems

A very important aspect when applying numerical simulation techniques is the “proper” mathematical modeling of the processes to be investigated. If there is no adequate underlying model, even a perfect numerical method will not yield reasonable results. Another essential issue related to modeling is that frequently it is possible to significantly reduce the computational effort by certain simplifications in the model. In general, the modeling should follow the principle already formulated by Albert Einstein: as simple as possible, but not simpler. Because of the high relevance of the topic in the context of the practical use of numerical simulation methods, we will discuss here the most essential basics for the modeling of continuum mechanical problems as they primarily occur in engineering applications. We will dwell on continuum mechanics only to the extent as it is necessary for a basic understanding of the models.

2.1 Kinematics

For further considerations some notation conventions are required, which we will introduce first. In the Euclidian space IR^3 we consider a Cartesian coor- dinate system with the basis unit vectors e 1 , e 2 , and e 3 (see Fig. 2.1). The continuum mechanical quantities of interest are scalars (zeroth-order tensors), vectors (first-order tensors), and dyads (second-order tensors), for which we will use the following notations:

scalars with letters in normal font: a, b,... , A, B,... , α, β,... , vectors with bold face lower case letters: a, b,... , dyads with bold face upper case letters: A, B,...

The different notations of the tensors are summarized in Table 2.1. We denote the coordinates of vectors and dyads with the corresponding letters in normal font (with the associated indexing). We mainly use the coordinate notation, which usually also constitutes the basis for the realization of a model within a