CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Wiki > LU decomposition

LU decomposition

From CFD-Wiki

(Difference between revisions)
Jump to: navigation, search
(towards a uniform notation for linear systems : A*Phi = B)
Line 1: Line 1:
== LU Solvers ==
== LU Solvers ==
-
For the system of equations '''Ax=b'''. <br>
+
For the system of equations <math>A\cdot\phi=B</math>. <br>
The solvers based on factorization are widely popular. The factorization of a non singular matrix '''A''' in two matrices '''L''' and '''U''', called lower and upper matrices, leads to a direct procedure for the evaluation of the inverse of the matrix. Thus making it possible to calculate the solution vector with given source vector.
The solvers based on factorization are widely popular. The factorization of a non singular matrix '''A''' in two matrices '''L''' and '''U''', called lower and upper matrices, leads to a direct procedure for the evaluation of the inverse of the matrix. Thus making it possible to calculate the solution vector with given source vector.
It now remains a two step process: a forward substitution followed by a backward substitution.  
It now remains a two step process: a forward substitution followed by a backward substitution.  
Line 7: Line 7:
:  Calculate '''LU''' factors of '''A'''
:  Calculate '''LU''' factors of '''A'''
-
:: '''Ax = (LU)x = L(Ux) = Ly = b'''
+
::<math> A\cdot \phi = (LU)\cdot \phi = L(U\cdot\phi)=LY=B</math>
-
:  Solve '''Ly = b''' by <i>forward substitution</i>
+
:  Solve <math>LY=B</math> by <i>forward substitution</i>
-
:: '''y = L<sup>-1</sup>b'''
+
:: <math> Y = L^{-1} B</math>
-
:  Solve '''Ux=y''' by <i>backward substitution</i>  
+
:  Solve <math>U\phi =Y</math> by <i>backward substitution</i>  
-
:: '''x = U<sup>-1</sup>y'''
+
:: <math> \phi = U^{-1}Y</math>
 +
{{stub}}
----
----

Revision as of 20:42, 15 December 2005

LU Solvers

For the system of equations A\cdot\phi=B.
The solvers based on factorization are widely popular. The factorization of a non singular matrix A in two matrices L and U, called lower and upper matrices, leads to a direct procedure for the evaluation of the inverse of the matrix. Thus making it possible to calculate the solution vector with given source vector. It now remains a two step process: a forward substitution followed by a backward substitution.

Algorithm

Calculate LU factors of A
 A\cdot \phi = (LU)\cdot \phi = L(U\cdot\phi)=LY=B
Solve LY=B by forward substitution
 Y = L^{-1} B
Solve U\phi =Y by backward substitution
 \phi = U^{-1}Y





Return to Numerical Methods

My wiki