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.

Slides:



Advertisements
Similar presentations
Numerical Solution of Linear Equations
Advertisements

Chapter: 3c System of Linear Equations
Basic FEA Procedures Structural Mechanics Displacement-based Formulations.
Linear Systems of Equations
Solving Linear Systems (Numerical Recipes, Chap 2)
Rayan Alsemmeri Amseena Mansoor. LINEAR SYSTEMS Jacobi method is used to solve linear systems of the form Ax=b, where A is the square and invertible.
Numerical Algorithms Matrix multiplication
CS 584. Review n Systems of equations and finite element methods are related.
Mar Numerical approach for large-scale Eigenvalue problems 1 Definition Why do we study it ? Is the Behavior system based or nodal based? What are.
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.
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.
Conceptual Model A descriptive representation of a groundwater system that incorporates an interpretation of the geological & hydrological conditions.
Special Matrices and Gauss-Siedel
Systems of Non-Linear Equations
Thomas algorithm to solve tridiagonal matrices
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 )
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Chapter 8 Objectives Understanding matrix notation.
Computer Engineering Majors Authors: Autar Kaw
ITERATIVE TECHNIQUES FOR SOLVING NON-LINEAR SYSTEMS (AND LINEAR SYSTEMS)
© Fluent Inc. 9/5/2015L1 Fluids Review TRN Solution Methods.
Taylor Series.
Lecture Objectives Review SIMPLE CFD Algorithm SIMPLE Semi-Implicit Method for Pressure-Linked Equations Define Residual and Relaxation.
Systems of Linear Equations Iterative Methods
Using Adaptive Methods for Updating/Downdating PageRank Gene H. Golub Stanford University SCCM Joint Work With Sep Kamvar, Taher Haveliwala.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 11.
Boundary Value Problems and Least Squares Minimization
10/17/ Gauss-Siedel Method Industrial Engineering Majors Authors: Autar Kaw
Linear Systems Iterative Solutions CSE 541 Roger Crawfis.
10/26/ Gauss-Siedel Method Civil Engineering Majors Authors: Autar Kaw Transforming.
Lecture Objectives: Explicit vs. Implicit Residual, Stability, Relaxation Simple algorithm.
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Elliptic PDEs and the Finite Difference Method
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3- Chapter 12 Iterative Methods.
Lecture Objectives Review Define Residual and Relaxation SIMPLE CFD Algorithm SIMPLE Semi-Implicit Method for Pressure-Linked Equations.
Linear Systems – Iterative methods
Lecture 5 - Single Variable Problems CVEN 302 June 12, 2002.
CS 484. Iterative Methods n Gaussian elimination is considered to be a direct method to solve a system. n An indirect method produces a sequence of values.
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.
Lecture 6 - Single Variable Problems & Systems of Equations CVEN 302 June 14, 2002.
Linear Systems of Equations Iterative and Relaxation Methods Ax = b Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und.
Part 3 Chapter 12 Iterative Methods
Mechanical Engineering Majors Authors: Autar Kaw
2/26/ Gauss-Siedel Method Electrical Engineering Majors Authors: Autar Kaw
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/6/ Gauss-Siedel Method Major: All Engineering Majors Author: دکتر ابوالفضل رنجبر نوعی
Implicit approximation can be solved using: Point iteration (G/S, SOR) Direct (matrix) solution Combination of matrix soln and iteration (used in MODFLOW)
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Part 3 Chapter 12 Iterative Methods
Objective Numerical methods SIMPLE CFD Algorithm Define Relaxation
Solving Systems of Linear Equations: Iterative Methods
Gauss-Siedel Method.
Numerical Analysis Lecture12.
© Fluent Inc. 1/10/2018L1 Fluids Review TRN Solution Methods.
Iterative Methods Good for sparse matrices Jacobi Iteration
Objective Unsteady state Numerical methods Discretization
Matrix Methods Summary
Objective Numerical methods Finite volume.
SKTN 2393 Numerical Methods for Nuclear Engineers
Topic9_Pressure_Correction
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac 4/30/2019
Engineering Analysis ENG 3420 Fall 2009
Chapter 11 Chapter 11.
Numerical Analysis Lecture11.
Linear Algebra Lecture 16.
Presentation transcript:

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 i,j +1 )

Tridiagonal Matrices

Tridiagonal Matrix Algorithm

TDMA procedure

Iterative Methods Often much better on sparse matrices than direct solvers Idea: –guess {x} –use in an approximation of [A] {x}= {b} to get new values of {x} –repeat until {x} is not changing much Pros: –much less effort / faster –less problems with roundoff

Point-Jacobi rearrange equation set so that you get series of x i = fn(other x’s) pick order so that using the x i with the largest coefficient in each equation guess value for x i, then iterate 6 x x 2 + x 3 = 11 x x x 3 = x x x 3 = 5

Jacobi Iteration Rearrange x 1 = 1/6 ( x 2 - x 3 ) x 2 = 1/7 ( x x 3 ) x 3 = 1/5 (1 + x x 2 ) Iterate x 1 n+1 = 1/6 ( x 2 n - x 3 n ) x 2 n+1 = 1/7 ( x 1 n - 2 x 3 n ) x 3 n+1 = 1/5 (1 + x 1 n + 2 x 2 n ) Guess, plugin, repeat n0x10x20x30n0x10x20x30

Importance of diagonal dominance Simple example

Convergence Formally

Stability criteria

Convergence criteria How to judge whether solution is “close enough”

Gauss-Seidal In Point-Jacobi technique, we use “old” values of x i throughout each iteration but we are calculating “new” values all the way through the procedure if we use these “new” values on the RHS’s, this is Gauss-Seidal

Speed-up

Relaxation

Under-relaxation and Over-relaxation x i n = x i n-1 + (x i n - x i n-1 ) New value depends on 0 < < 1 > 1 = 1

Engineering examples Concentrations in a series of connected tanks (steady state) mass balances 1, V1 3, V3 2, V2 Q2in, C2in Q13, C1 Q12, C1 Q21, C2 Q23, C2 Q1in, C1in Q3out, C3

Engineering examples - Forces on truss FcextV a b c Fab Fbc Fac FbextV FbextH FaextV Sum of forces at each node = 0 (both vertical & horizontal)

Trusses Forces on trusses loads: –dead weight –live (train) weight –wind loads –seismic