1 Solving the algebraic equations A x = B =. 2 Direct solution x = A -1 B = = Applicable only to small problems For the vertical in the spectral technique.

Slides:



Advertisements
Similar presentations
systems of linear equations
Advertisements

Chapter: 3c System of Linear Equations
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
1 Iterative Solvers for Linear Systems of Equations Presented by: Kaveh Rahnema Supervisor: Dr. Stefan Zimmer
Geometric (Classical) MultiGrid. Hierarchy of graphs Apply grids in all scales: 2x2, 4x4, …, n 1/2 xn 1/2 Coarsening Interpolate and relax Solve the large.
Linear Systems of Equations
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Numerical Algorithms Matrix multiplication
Refresher: Vector and Matrix Algebra Mike Kirkpatrick Department of Chemical Engineering FAMU-FSU College of Engineering.
Linear Transformations
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.
1 Systems of Linear Equations Iterative Methods. 2 B. Direct Methods 1.Jacobi method and Gauss Seidel 2.Relaxation method for iterative methods.
Special Matrices and Gauss-Siedel
ECIV 520 Structural Analysis II Review of Matrix Algebra.
Geometric (Classical) MultiGrid. Linear scalar elliptic PDE (Brandt ~1971)  1 dimension Poisson equation  Discretize the continuum x0x0 x1x1 x2x2 xixi.
6 1 Linear Transformations. 6 2 Hopfield Network Questions.
Eigen-decomposition of a class of Infinite dimensional tridiagonal matrices G.V. Moustakides: Dept. of Computer Engineering, Univ. of Patras, Greece B.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Ch. 10: Linear Discriminant Analysis (LDA) based on slides from
Partial differential equations Function depends on two or more independent variables This is a very simple one - there are many more complicated ones.
Numerical Methods Due to the increasing complexities encountered in the development of modern technology, analytical solutions usually are not available.
Chapter 8 Objectives Understanding matrix notation.
1 The Spectral Method. 2 Definition where (e m,e n )=δ m,n e n = basis of a Hilbert space (.,.): scalar product in this space In L 2 space where f * :
Computer Engineering Majors Authors: Autar Kaw
ITERATIVE TECHNIQUES FOR SOLVING NON-LINEAR SYSTEMS (AND LINEAR SYSTEMS)
Systems of Linear Equations Iterative Methods
Row Reduction Method Lesson 6.4.
1 Iterative Solution Methods Starts with an initial approximation for the solution vector (x 0 ) At each iteration updates the x vector by using the sytem.
Scientific Computing Partial Differential Equations Poisson Equation.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 11.
10/17/ Gauss-Siedel Method Industrial Engineering Majors Authors: Autar Kaw
Chapter 3 Solution of Algebraic Equations 1 ChE 401: Computational Techniques for Chemical Engineers Fall 2009/2010 DRAFT SLIDES.
Linear Systems Iterative Solutions CSE 541 Roger Crawfis.
SOLVING SYSTEMS ALGEBRAICALLY SECTION 3-2. SOLVING BY SUBSTITUTION 1) 3x + 4y = 12 STEP 1 : SOLVE ONE EQUATION FOR ONE OF THE VARIABLES 2) 2x + y = 10.
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
Elliptic PDEs and the Finite Difference Method
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.
CSE 245: Computer Aided Circuit Simulation and Verification Matrix Computations: Iterative Methods I Chung-Kuan Cheng.
Algorithms 2005 Ramesh Hariharan. Algebraic Methods.
Linear Systems – Iterative methods
Introduction to Scientific Computing II Multigrid Dr. Miriam Mehl Institut für Informatik Scientific Computing In Computer Science.
Discretization for PDEs Chunfang Chen,Danny Thorne Adam Zornes, Deng Li CS 521 Feb., 9,2006.
Arab Open University Faculty of Computer Studies M132: Linear Algebra
Signal & Weight Vector Spaces
1 Chapter 7 Numerical Methods for the Solution of Systems of Equations.
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.
Computational Physics (Lecture 7) PHY4061. Eigen Value Problems.
CS246 Linear Algebra Review. A Brief Review of Linear Algebra Vector and a list of numbers Addition Scalar multiplication Dot product Dot product as a.
7.3 Linear Systems of Equations. Gauss Elimination
Iterative Solution Methods
Chapter: 3c System of Linear Equations
Solving Linear Systems Ax=b
Numerical Analysis Lecture12.
Iterative Methods Good for sparse matrices Jacobi Iteration
CHE 391 T. F. Edgar Spring 2012.
Introduction to Multigrid Method
CSE 245: Computer Aided Circuit Simulation and Verification
Solve Systems of Equations by Elimination
Metode Eliminasi Pertemuan – 4, 5, 6 Mata Kuliah : Analisis Numerik
CSE 245: Computer Aided Circuit Simulation and Verification
One dimensional Poisson equation
Numerical Analysis Lecture14.
Numerical Analysis Lecture13.
Numerical Analysis Lecture10.
Example 2B: Solving Linear Systems by Elimination
Numerical Analysis Lecture11.
Presentation transcript:

1 Solving the algebraic equations A x = B =

2 Direct solution x = A -1 B = = Applicable only to small problems For the vertical in the spectral technique where x is a one-column vector (decoupled equations in the horizontal)

3 Gauss elimination Tridiagonal matrices: Large one-dimensional problems substitute in the 2 nd equation extract x2 substitute in the 3 rd equation …. and so on we arrive at a single equation for x n solve and substitute in the (n-1) th eq. solve for x n-1 and substitute in the (n-2) th eq. etc …….. Pivots: a 11, a 22 -a 21 /a 11, … not too small (might need to rearrange order)

4 Iterative methods Guess a solution - Correct from the value of - continue until is small enough The method converges if

5 General iterative procedure pre-condition system add and substract ifis the true solution Convergence * continuous equivalent of * the general solution of this equation is: where the λ’s are the eigenvalues of matrix it approaches the stationary solution k if Re(λ) < 0 (elliptic problem)

6 Example of iterative procedure Helmholtz equation in finite differences we have taken Δx=1 for simplicity take * then where means all x from iteration n except x i,j from iteration n+1 this is the Jacobi method if we take x i-1,j and x i,j-1 from iteration n+1, we have the Gauss-Seidel method multiplying the correction in * by a factor μ>1, we have the overrelaxation method

7 The overrelaxation method R x j x x x

8 Multigrid methods An iterative scheme is slow if the corrections from the initial guess are long-range corrections but very fast if they are local Multigrid methods first relax on a subset of the grid (therefore long-range corrections cover a lesser number of grid-points and are seen as more local) and then refine, relaxing on the original grid (or an intermediate one …) and the switching between grids is iterated This procedure is much more efficient than the straightforward relaxation and can compete with direct methods It is even more efficient in multiprocessor machines Adaptive multigrid methods only refine in the areas where the error is larger than a given threshold

9 Multigrid methods (2) R xx R x xx short-range errors long-range errors and sampling

10 Decoupling the equations Assume we have a 3-D problem Simplest case that is tensor product auxiliary vectors solve for each (m,n). Then solve for each (i,n). Finally solve for each (i,j). Total O(I.J.K) 3 operations

11 Decoupling the equations (cont) Use of the eigenvector matrix Consider the Poisson equation in 3 dimensions Using centered finite diff. In the vertical: where Is a matrix of rank K (N o of levels)

12 Decoupling the equations (cont) Let be the eigenvectors of callingthe matrix formed by the eigenvectors being the diagonal matrix of eigenvalues The discretized equation can then be written as: K decoupled equations projections of φ along the eigenvectors

13 Fourier transform method Consider the 2-dimensional Poisson equation in finite-differences or where here U n : grid-point values of U in row n

14 Fourier transform method (cont) A is a tridiagonal symmetric matrix whose eigenvalues are j=1, 2, …, M and the eigenvectors are the Fourier basis functions The same holds for any other matrix of the form (Helmholtz equation)

15 Fourier transform method (cont2) Call and The original system may be written as follows: Discrete Fourier transform of vector of grid-points at row k+1 decoupled system of equations for the Fourier components (k=row number) The projection to Fourier space and back can be done by FFT

16 Thank you Any question?