Linear Systems of Equations Iterative and Relaxation Methods Ax = b Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und.

Slides:



Advertisements
Similar presentations
Programming Tips: While Loops and Comparisons 1Daniel Baur / Numerical Methods for Chemical Engineerse Daniel Baur ETH Zurich, Institut für Chemie- und.
Advertisements

Numerical Solution of Linear Equations
Maria Ugryumova Direct Solution Techniques in Spectral Methods CASA Seminar, 13 December 2007.
Fixed point iterations and solution of non-linear functions
Partial Differential Equations (PDEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE Daniel Baur ETH Zurich, Institut für Chemie-
Numerical Differentiation and Quadrature (Integration) 1Daniel Baur / Numerical Methods for Chemical Engineers / Numerical Quadrature Daniel Baur ETH Zurich,
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
Nonisothermal case: adiabatic approach Prof. Dr. Marco Mazzotti - Institut für Verfahrenstechnik.
MATH 685/ CSI 700/ OR 682 Lecture Notes
Linear Systems of Equations
Solving Linear Systems (Numerical Recipes, Chap 2)
Systems of Linear Equations
Table of Contents Solving Linear Systems of Equations - Triangular Form Consider the following system of equations... The system is easily solved by starting.
Linear Systems of Equations Ax = b Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und Bioingenieurwissenschaften ETH Hönggerberg/
Special Matrices and Gauss-Siedel
Counter-current cascade of ideal stages Prof. Dr. Marco Mazzotti - Institut für Verfahrenstechnik.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 19 Solution of Linear System of Equations - Iterative Methods.
Response Surfaces max(S(  )) Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und Bioingenieurwissenschaften ETH Hönggerberg/
Representation on the x-y plane Prof. Dr. Marco Mazzotti - Institut für Verfahrenstechnik.
Thomas algorithm to solve tridiagonal matrices
Non Linear Regression Y i = f(  x i ) +  i Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und Bioingenieurwissenschaften.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
17 Jul 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 2 – Systems of Linear Equations 17 July am – 9.00 am.
Linear Regression Y i =  0 +  1 x i +  i Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und Bioingenieurwissenschaften.
1 Systems of Linear Equations Error Analysis and System Condition.
Ordinary Differential Equations (ODEs)
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Scientific Computing Matrix Norms, Convergence, and Matrix Condition Numbers.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
ITERATIVE TECHNIQUES FOR SOLVING NON-LINEAR SYSTEMS (AND LINEAR SYSTEMS)
Systems of Linear Equations Iterative Methods
24 Nov 2011Prof. R. Shanthini1 Course content of Mass transfer section LTA Diffusion Theory of interface mass transfer Mass transfer coefficients, overall.
Solving Scalar Linear Systems Iterative approach Lecture 15 MA/CS 471 Fall 2003.
Iterative Methods for Solving Linear Systems Leo Magallon & Morgan Ulloa.
Scientific Computing Partial Differential Equations Poisson Equation.
Boundary Value Problems and Least Squares Minimization
Unit 3: Matrices.
Linear Systems Iterative Solutions CSE 541 Roger Crawfis.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Chapter 2 System of Linear Equations Sensitivity and Conditioning (2.3) Solving Linear Systems (2.4) January 19, 2010.
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Elliptic PDEs and the Finite Difference Method
Quadrature rules 1Michael Sokolov / Numerical Methods for Chemical Engineers / Numerical Quadrature Michael Sokolov ETH Zurich, Institut für Chemie- und.
Numerical Differentiation and Quadrature (Integration)
Solution of Nonlinear Functions
Linear Systems – Iterative methods
Ordinary Differential Equations (ODEs) 1Michael Sokolov / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Michael Sokolov ETH Zurich, Institut.
Introduction to Scientific Computing II Multigrid Dr. Miriam Mehl Institut für Informatik Scientific Computing In Computer Science.
Principal Component Analysis (PCA)
Lecture 6 - Single Variable Problems & Systems of Equations CVEN 302 June 14, 2002.
Solving Scalar Linear Systems A Little Theory For Jacobi Iteration
Special Matrices Banded matrices Solutions to problems that depend on their neighbours eg 1D T i = f(T i-1,T i+1 ) 2D T i,j = f(T i-1,j,T i+1,j,T i,j -1,T.
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Numerical Analysis Lecture12.
Instruction of Chapter 8 on
Iterative Methods Good for sparse matrices Jacobi Iteration
Zero of a Nonlinear Function f(x) = 0
Zero of a Nonlinear System of Algebraic Equations f(x) = 0
Use Inverse Matrices to Solve Linear Systems
Metode Eliminasi Pertemuan – 4, 5, 6 Mata Kuliah : Analisis Numerik
Numerical Analysis Lecture14.
Numerical Analysis Lecture13.
Numerical Analysis Lecture10.
Numerical Analysis Lecture11.
Linear Algebra Lecture 16.
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Linear Systems of Equations Iterative and Relaxation Methods Ax = b Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und Bioingenieurwissenschaften ETH Hönggerberg/ HCI F135 – Zürich (Switzerland) Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und Bioingenieurwissenschaften ETH Hönggerberg/ HCI F135 – Zürich (Switzerland)

Marco Lattuada – Statistical and Numerical Methods for Chemical Engineers Iterative and Relaxation Methods for Linear Systems – Page # 2 Gas/Liquid Adsorption Column For more info on adsorption columns: Aim: To adsorb a dilute component in the gas (G) phase (e.g. ammonia) into the liquid (L) phase Hypotheses: 1.Steady state conditions are reached 2.The column can be described as a series of N equilibrium stages (plates) 3.The liquid and the gas fluxes are constant along the column

Marco Lattuada – Statistical and Numerical Methods for Chemical Engineers Iterative and Relaxation Methods for Linear Systems – Page # 3 Gas/Liquid Adsorption Column Adsorption Plate n Lx n-1 Gy n Lx n Gy n+1 Legend L = liquid flow rate G = gas flow rate x i = liquid conc. in i-th plate y i = gas conc. in i-th plate Mass balance on n-th plate Equilibrium condition Final Mass Balance 1 n N Tridiagonal System

Marco Lattuada – Statistical and Numerical Methods for Chemical Engineers Iterative and Relaxation Methods for Linear Systems – Page # 4 Gas/Liquid Adsorption Column 1 n N Final System of Linear Equations: Where: x 0 = liquid solute conc. in the fresh liquid (typically = 0) x N+1 = liquid solute conc. in the exhaust y N+1 = initial (bottom) gas solute conc. y 0 = residual (top) gas solute conc. = (1-  ) y N+1  = fraction of adsorbed solute N= number of plates

Marco Lattuada – Statistical and Numerical Methods for Chemical Engineers Iterative and Relaxation Methods for Linear Systems – Page # 5 Iterative Methods The use of these methods is particularly advantageous if the matrix has a dominant structure (A ~ S) Hypothesis: S is a structured matrix which is particularly easy/fast to factorize/solve (e.g. diagonal, tridiagonal, triangular) and which can be consider as constant. Solution: I proceed iteratively, until the method converges.

Marco Lattuada – Statistical and Numerical Methods for Chemical Engineers Iterative and Relaxation Methods for Linear Systems – Page # 6 Let us re-write the convergence loop as: If x is the solution, the error at the k-th iteration is: Then, it follows that (remember the properties of norms): Let us re-write the convergence loop as: If x is the solution, the error at the k-th iteration is: Then, it follows that (remember the properties of norms): Convergence of Iterative Methods Spectral radius of M: max(| (M)|) < 1

Marco Lattuada – Statistical and Numerical Methods for Chemical Engineers Iterative and Relaxation Methods for Linear Systems – Page # 7 1 st case: S is diagonal Detailed procedure: Conditions: matrix A is diagonally dominant  1 st case: S is diagonal Detailed procedure: Conditions: matrix A is diagonally dominant  Jacobi’s Method Method of Jacobi For more infos about the Jacobi method:

Marco Lattuada – Statistical and Numerical Methods for Chemical Engineers Iterative and Relaxation Methods for Linear Systems – Page # 8 2 nd case: S is right (lower) triangular Detailed procedure: 2 nd case: S is right (lower) triangular Detailed procedure: Seidel-Gauss Methods Method of Gauss-Seidel For more infos about the Gauss-Seidel method:

Solution procedure In both cases, one needs to solve: (1) The formal solution is given by: This does not mean that one has to compute the matrix S -1. It means that the right hand side of (1) has to be treated as a known vector. Naming: One need to solve In solving this system, take advantage of the special form of S (diagonal or triangular). In both cases, one needs to solve: (1) The formal solution is given by: This does not mean that one has to compute the matrix S -1. It means that the right hand side of (1) has to be treated as a known vector. Naming: One need to solve In solving this system, take advantage of the special form of S (diagonal or triangular). Marco Lattuada – Statistical and Numerical Methods for Chemical Engineers Iterative and Relaxation Methods for Linear Systems – Page # 9