|
[Sponsors] |
March 23, 2011, 10:47 |
TDMA in Matlab
|
#1 |
New Member
zamet
Join Date: Mar 2011
Posts: 2
Rep Power: 0 |
hi everyone i m studying the computational fluid dynamics book of VERSTEEG AND MALALASEKERA i am trying to write a code i matlab that will generate the equations in example 4.2 page 92 can anyone help me with solving tridiagonal matrix in matlab
|
|
March 26, 2011, 14:23 |
|
#2 |
Member
Artem Shaklein
Join Date: Feb 2010
Location: Russia, Izhevsk
Posts: 43
Rep Power: 16 |
Hello, zamet63.
What exactly you need? You have some troubles with interpretation tdma or matlab syntax? Or you want to fill matrices A & b (from equation Ax = b) with necessary coefficients? Artem. |
|
April 17, 2011, 17:29 |
|
#3 | |
New Member
aidin zarif
Join Date: Apr 2011
Posts: 1
Rep Power: 0 |
Quote:
you're joking!!!!!!!!!!!!! it's easy!!!!!!!!!!!!! go to chapter 7 |
||
May 4, 2011, 07:37 |
|
#4 |
New Member
zamet
Join Date: Mar 2011
Posts: 2
Rep Power: 0 |
i dont need the solutions i need a fortran or matlab code that will solve it i mean i dont want solving by hand i want solving with computer
|
|
May 4, 2011, 08:31 |
|
#5 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 19 |
Try to use some of the Matlab specialized functions for solving tri-diagonal systems (use spdiags to generate your sparse matrix and simply solve this with the slash operator).
Or ... use Google to find this link (you have C, Matlab and Fortran implementations of TDMA here): http://en.wikipedia.org/wiki/Tridiag...trix_algorithm Do |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is TDMA used for pressure solver? | moo | Main CFD Forum | 6 | May 16, 2010 14:48 |
Pohlhausen energy equation MATLAB help | abe_cooldude | Main CFD Forum | 2 | May 3, 2010 16:58 |
caling matlab in Fortran | HaKu | Main CFD Forum | 0 | July 16, 2009 15:35 |
MATLAB FORTRAN | Ally | Main CFD Forum | 4 | July 12, 2007 03:51 |
is matlab enough? | prapanj | Main CFD Forum | 9 | August 10, 2006 19:16 |