The purpose of this book is to introduce and study numerical methods basic and advanced ones for scientific computing. This last refers to the implementation of appropriate approaches to the treatment of a scientific problem arising from physics (meteorology, pollution, etc.) or of engineering (mechanics of structures, mechanics of fluids, treatment signal, etc.). Each chapter of this book recalls the essence of the different methods resolution and presents several applications in the field of engineering as well as programs developed under Matlab software.
Table of Contents
Preface ix
Part 1. Solving Equations 1
Chapter 1. Solving Nonlinear Equations 3
1.1 Introduction 3
1.2 Separating the roots 3
1.3 Approximating a separated root 4
1.3.1 Bisection method (or dichotomy method) 4
1.3.2 Fixed-point method 6
1.3.3 First convergence criterion 7
1.3.4 Iterative stopping criteria.8
1.3.5 Second convergence criterion (local criterion) 9
1.3.6 Newton’s method (or the method of tangents) 10
1.3.7 Secant method 12
1.3.8 Regula falsi method (or false position method) 17
1.4 Order of an iterative process.19
1.5 Using Matlab 19
1.5.1 Finding the roots of polynomials 19
1.5.2 Bisection method 21
1.5.3 Newton’s method 22
Chapter 2. Numerically Solving Differential Equations 25
2.1 Introduction 25
2.2 Cauchy problem and discretization 27
2.3 Euler’s method 30
2.3.1 Interpretation 30
2.3.2 Convergence 30
2.4 One-step Runge–Kutta method 31
2.4.1 Second-order Runge–Kutta method 32
2.4.2 Fourth-order Runge–Kutta method 33
2.5 Multi-step Adams methods 36
2.5.1 Open Adams methods 36
2.5.2 Closed Adams formulas 39
2.6 Predictor–Corrector method.41
2.7 Using Matlab 43
Part 2. Solving PDEs 47
Chapter 3. Finite Difference Methods 49
3.1 Introduction 49
3.2 Presentation of the finite difference method 51
3.2.1 Convergence, consistency and stability 53
3.2.2 Courant–Friedrichs–Lewy condition 56
3.2.3 Von Neumann stability analysis 57
3.3 Hyperbolic equations 58
3.3.1 Key results 59
3.3.2 Numerical schemes for solving the transport equation 63
3.3.3 Wave equation 66
3.3.4 Burgers equation 68
3.4 Elliptic equations 72
3.4.1 Poisson equation 72
3.5 Parabolic equations 74
3.5.1 Heat equation 74
3.6 Using Matlab 76
Chapter 4. Finite Element Method 83
4.1 Introduction 83
4.2 One-dimensional finite element methods 83
4.3 Two-dimensional finite element methods 88
4.4 General procedure of the method 93
4.5 Finite element method for computing elastic structures 93
4.5.1 Linear elasticity 93
4.5.2 Variational formulation of the linear elasticity problem 97
4.5.3 Planar linear elasticity problems 99
4.5.4 Applying the finite element method to planar problems 101
4.5.5 Axisymmetric problems.105
4.5.6 Three-dimensional problems 107
4.6 Using Matlab 107
4.6.1 Solving Poisson’s equation 108
4.6.2 Solving the heat equation.111
4.6.3 Computing structures 112
Chapter 5. Finite Volume Methods 117
5.1 Introduction 117
5.2 Finite volume method (FVM) 118
5.2.1 Conservation properties of the method 118
5.2.2 The stages of the method.119
5.2.3 Convergence 120
5.2.4 Consistency 120
5.2.5 Stability 120
5.3 Advection schemes 121
5.3.1 Two-dimensional FVM. 126
5.3.2 Convection-diffusion equation 129
5.3.3 Central differencing scheme 131
5.3.4 Upwind (decentered) scheme 133
5.3.5 Hybrid scheme 136
5.3.6 Power-law scheme 136
5.3.7 QUICK scheme 137
5.3.8 Higher-order schemes 139
5.3.9 Unsteady one-dimensional convection-diffusion Equation 140
5.3.10 Explicit scheme 142
5.3.11 Crank–Nicolson scheme.142
5.3.12 Implicit scheme 143
5.4 Using Matlab 144
Chapter 6. Meshless Methods. 147
6.1 Introduction 147
6.2 Limitations of the FEM and motivation of meshless methods 148
6.3 Examples of meshless methods148
6.3.1 Advantages of meshless methods 149
6.3.2 Disadvantages of meshless methods150
6.3.3 Comparison of the finite element method and meshless methods 151
6.4 Basis of meshless methods 151
6.4.1 Approximations 151
6.4.2 Kernel (weight) functions.152
6.4.3 Completeness 152
6.4.4 Partition of unity 152
6.5 Meshless method (EFG) 153
6.5.1 Theory 153
6.5.2 Moving Least-Squares Approximation 153
6.6 Application of the meshless method to elasticity 163
6.6.1 Formulation of static linear elasticity 163
6.6.2 Imposing essential boundary conditions 165
6.7 Numerical examples 170
6.7.1 Fixed-free beam 170
6.7.2 Compressed block 171
6.8 Using Matlab 173
Part 3. Appendices 179
Appendix 1181
Appendix 2189
Bibliography 195
Index 199