Numerical Methods Due to the increasing complexities encountered in the development of modern technology, analytical solutions usually are not available.

Slides:



Advertisements
Similar presentations
Computational Modeling for Engineering MECN 6040
Advertisements

Chapter 8 Elliptic Equation.
Parabolic Partial Differential Equations
Finite Element Method (FEM) Different from the finite difference method (FDM) described earlier, the FEM introduces approximated solutions of the variables.
By S Ziaei-Rad Mechanical Engineering Department, IUT.
Chapter 3 Steady-State Conduction Multiple Dimensions
Special Matrices and Gauss-Siedel
1 Systems of Linear Equations Iterative Methods. 2 B. Iterative Methods 1.Jacobi method and Gauss Seidel 2.Relaxation method for iterative methods.
SOLVING ALGEBRAIC EQUATIONS. Review of Matrix Form Representation of System of Linear Equations Solution Method Matrix Inversion Adjoint of a Matrix Determinant.
CHE/ME 109 Heat Transfer in Electronics LECTURE 12 – MULTI- DIMENSIONAL NUMERICAL MODELS.
1 Systems of Linear Equations Iterative Methods. 2 B. Direct Methods 1.Jacobi method and Gauss Seidel 2.Relaxation method for iterative methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 20 Solution of Linear System of Equations - Iterative Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 19 Solution of Linear System of Equations - Iterative Methods.
Special Matrices and Gauss-Siedel
CHE/ME 109 Heat Transfer in Electronics LECTURE 11 – ONE DIMENSIONAL NUMERICAL MODELS.
NAE C_S2001 FINAL PROJECT PRESENTATION LASIC ISMAR 04/12/01 INSTRUCTOR: PROF. GUTIERREZ.
Systems of Non-Linear Equations
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
Partial differential equations Function depends on two or more independent variables This is a very simple one - there are many more complicated ones.
Iterative Methods for Solving Linear Systems of Equations ( part of the course given for the 2 nd grade at BGU, ME )
Differential Equations and Boundary Value Problems
Chapter 5 NUMERICAL METHODS IN HEAT CONDUCTION
ITERATIVE TECHNIQUES FOR SOLVING NON-LINEAR SYSTEMS (AND LINEAR SYSTEMS)
GENERALIZATION OF THE METHOD OF FINITE DIFFERENCES GENERALIZATION OF THE METHOD OF FINITE DIFFERENCES ARYASSOV, Gennady BARASKOVA, Tatjana GORNOSTAJEV,
Elliptic Partial Differential Equations - Introduction
Newton's Method for Functions of Several Variables Joe Castle & Megan Grywalski.
Scientific Computing Partial Differential Equations Poisson Equation.
Computational Physics Introduction 3/30/11. Goals  Calculate solutions to physics problems  All physics problems can be formulated mathematically. 
Two-Dimensional Conduction: Finite-Difference Equations and Solutions
6. Introduction to Spectral method. Finite difference method – approximate a function locally using lower order interpolating polynomials. Spectral method.
Module 4 Multi-Dimensional Steady State Heat Conduction.
Elliptic PDEs and the Finite Difference Method
Chapter 5: Numerical Methods in Heat Transfer
Transient Conduction: Finite-Difference Equations and Solutions Chapter 5 Section 5.9  
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Introduction Course Outline.
Boundary Value Problems l Up to this point we have solved differential equations that have all of their initial conditions specified. l There is another.
An Introduction to Heat Transfer Morteza Heydari.
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Circuits Theory Examples Newton-Raphson Method. Formula for one-dimensional case: Series of successive solutions: If the iteration process is converged,
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 271 Boundary-Value.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 27.
Discretization for PDEs Chunfang Chen,Danny Thorne Adam Zornes, Deng Li CS 521 Feb., 9,2006.
Variational and Weighted Residual Methods
Elliptic PDEs and Solvers
Partial Derivatives Example: Find If solution: Partial Derivatives Example: Find If solution: gradient grad(u) = gradient.
1/30/ Elliptic Partial Differential Equations – Lieberman Method – Part 1 of 2 Elliptic Partial Differential.
Part 3 Chapter 12 Iterative Methods
MULTIDIMENSIONAL HEAT TRANSFER  This equation governs the Cartesian, temperature distribution for a three-dimensional unsteady, heat transfer problem.
Finite-Difference Solutions Part 2
Linear Systems Numerical Methods. 2 Jacobi Iterative Method Choose an initial guess (i.e. all zeros) and Iterate until the equality is satisfied. No guarantee.
3/23/05ME 2591 Numerical Methods in Heat Conduction Reference: Incropera & DeWitt, Chapter 4, sections Chapter 5, section 5.9.
ERT 216 HEAT & MASS TRANSFER Sem 2/ Dr Akmal Hadi Ma’ Radzi School of Bioprocess Engineering University Malaysia Perlis.
An Introduction to Computational Fluids Dynamics Prapared by: Chudasama Gulambhai H ( ) Azhar Damani ( ) Dave Aman ( )
FINITE DIFFERENCE In numerical analysis, two different approaches are commonly used: The finite difference and the finite element methods. In heat transfer.
Part 8 - Chapter 29.
Finite Element Application
Solving Systems of Linear Equations: Iterative Methods
بسم الله الرحمن الرحيم.
Numerical Analysis Lecture12.
FEM : Finite Element Method 2017.
PDEs and Examples of Phenomena Modeled
Numerical Analysis Lecture 45.
Chapter 27.
Numerical Examples Example: Find the system of finite difference equations for the following problem. Steady state heat conduction through a plane wall.
Numerical Analysis Lecture13.
Numerical Computation and Optimization
Programming assignment #1 Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Numerical Analysis Lecture11.
Home assignment #3 (1) (Total 3 problems) Due: 12 November 2018
Presentation transcript:

Numerical Methods Due to the increasing complexities encountered in the development of modern technology, analytical solutions usually are not available. For these problems, numerical solutions obtained using high-speed computer are very useful, especially when the geometry of the object of interest is irregular, or the boundary conditions are nonlinear. In numerical analysis, two different approaches are commonly used: the finite difference and the finite element methods. In heat transfer problems, the finite difference method is used more often and will be discussed here. The finite difference method involves:  Establish nodal networks  Derive finite difference approximations for the governing equation at both interior and exterior nodal points  Develop a system of simultaneous algebraic nodal equations  Solve the system of equations using numerical schemes

The Nodal Networks The basic idea is to subdivide the area of interest into sub-volumes with the distance between adjacent nodes by  x and  y as shown. If the distance between points is small enough, the differential equation can be approximated locally by a set of finite difference equations. Each node now represents a small region where the nodal temperature is a measure of the average temperature of the region. Example: m,n m,n+1 m,n-1 m+1, n m-1,n yy xx m-½,n intermediate points m+½,n x=m  x, y=n  y

Finite Difference Approximation

Finite Difference Approximation (cont.)

A System of Algebraic Equations The nodal equations derived previously are valid for all interior points satisfying the steady state, no generation heat equation. For each node, there is one such equation. For example: for nodal point m=3, n=4, the equation is T 2,4 + T 4,4 + T 3,3 + T 3,5 - 4T 3,4 =0 T 3,4 =(1/4)(T 2,4 + T 4,4 + T 3,3 + T 3,5 ) Nodal relation table for exterior nodes (boundary conditions) can be found in standard heat transfer textbooks. (ex. F.P. Incropera & D.P. DeWitt, “Introduction to Heat Transfer”.)Nodal relation table Derive one equation for each nodal point (including both interior and exterior points) in the system of interest. The result is a system of N algebraic equations for a total of N nodal points.

Matrix Form A total of N algebraic equations for the N nodal points and the system can be expressed as a matrix formulation: [A][T]=[C]

Numerical Solutions Matrix form: [A][T]=[C]. From linear algebra: [A] -1 [A][T]=[A] -1 [C], [T]=[A] -1 [C] where [A] -1 is the inverse of matrix [A]. [T] is the solution vector. Matrix inversion requires cumbersome numerical computations and is not efficient if the order of the matrix is high (>10) Gauss elimination method and other matrix solvers are usually available in many numerical solution package. For example, “Numerical Recipes” by Cambridge University Press or their web source at For high order matrix, iterative methods are usually more efficient. The famous Jacobi & Gauss-Seidel iteration methods will be introduced in the following.

Iteration (k) - specify the level of the iteration, (k-1) means the present level and (k) represents the new level. An initial guess (k=0) is needed to start the iteration. By substituting iterated values at (k-1) into the equation, the new values at iteration (k) can be estimated The iteration will be stopped when max  T i (k) -T i (k-1) , where  specifies a predetermined value of acceptable error Replace (k) by (k-1) for the Jacobi iteration

Example Solve the following system of equations using (a) the Jacobi methos, (b) the Gauss Seidel iteration method. (a) Jacobi method: use initial guess X 0 =Y 0 =Z 0 =1, stop when max  X k -X k-1,Y k -Y k-1,Z k -Z k-1   0.1 First iteration: X 1 = (11/4) - (1/2)Y 0 - (1/4)Z 0 = 2 Y 1 = (3/2) + (1/2)X 0 = 2 Z 1 = 4 - (1/2) X 0 - (1/4)Y 0 = 13/4

Example (cont.) Second iteration: use the iterated values X 1 =2, Y 1 =2, Z 1 =13/4 X 2 = (11/4) - (1/2)Y 1 - (1/4)Z 1 = 15/16 Y 2 = (3/2) + (1/2)X 1 = 5/2 Z 2 = 4 - (1/2) X 1 - (1/4)Y 1 = 5/2 Final solution [1.014, 2.02, 2.996] Exact solution [1, 2, 3]

Example (cont.) (b) Gauss-Seidel iteration: Substitute the iterated values into the iterative process immediately after they are computed. Immediate substitution