CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Inverse of a matrix

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2002, 17:54
Default Inverse of a matrix
  #1
Sathe
Guest
 
Posts: n/a
Hi all, I want to find the inverse of a matrix which will be diagonal for most part of it and blocked in the rest. Does anyone know any LAPACK routine or a numerical recipe to find this inverse. Sunil.
  Reply With Quote

Old   April 29, 2002, 20:02
Default Re: Inverse of a matrix
  #2
Sebastien Perron
Guest
 
Posts: n/a
Why do you want to find the inverse of your matrice?

The work to be done is of the same order as solving it with the gauss-jordan algorithm. Furthermore, the exact inverse will be possibly full.
  Reply With Quote

Old   April 30, 2002, 01:53
Default Re: Inverse of a matrix
  #3
Paul
Guest
 
Posts: n/a
There are many subroutines in NETLIB.org for the inversion of different types of matrix. Try to find one fitting your matrix. Good luck!
  Reply With Quote

Old   April 30, 2002, 10:20
Default Re: Inverse of a matrix
  #4
Sathe
Guest
 
Posts: n/a
I have to find the inverse of this matrix because I want to use the inverse as a preconditioner for solving another linear equation system. I therefore need the exact inverse. The exact inverse should not be fully populated because the matrix is mostly diagonal and is blocked diagonal else where. So do you know any storage scheme and inversion algorithm for such a matrix?
  Reply With Quote

Old   April 30, 2002, 19:14
Default Re: Inverse of a matrix
  #5
Sebastien Perron
Guest
 
Posts: n/a
As Paul said, try looking for a free code in www.netlib.org. But I have some advices:

1) The inverse of a matrice is unique. Hence, the inverse you will be computing for a system won't apply to the other systems.

2) Be careful with preconditioners, they can have a bad effect on the condittioning of your system. The only one that works everytime is the diagonal preconditioner for weakly or strongly diagonal systems..
  Reply With Quote

Old   May 15, 2002, 16:01
Default Re: Inverse of a matrix
  #6
ananda himansu
Guest
 
Posts: n/a
generally, you do not need to explicitly know the inverse of a matrix in order to use it as a preconditioner. usually, a knowledge of its LU decomposition is sufficient. usually, you need only to invert the ACTION of the matrix on an unknown vector, for which purpose the LU decomposition is sufficient. the L and U matrices are not as full as the inverse may be.
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Force can not converge colopolo CFX 13 October 4, 2011 22:03
How to find the product of A+ matrix and A- matrix arjun shanker Main CFD Forum 0 November 12, 2010 22:12
OpenFOAM version 1.6 details lakeat OpenFOAM Running, Solving & CFD 42 August 26, 2009 21:47
Block-Block tridiagonal matrix inverse Abdulhafid Elfaghi Main CFD Forum 3 September 16, 2007 02:55
Elemtary matrix to CSR global matrix xueying Main CFD Forum 2 September 24, 2002 09:44


All times are GMT -4. The time now is 14:23.