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

TDMA in Matlab

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2011, 10:47
Default TDMA in Matlab
  #1
New Member
 
zamet
Join Date: Mar 2011
Posts: 2
Rep Power: 0
zamet63 is on a distinguished road
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
zamet63 is offline   Reply With Quote

Old   March 26, 2011, 14:23
Default
  #2
Member
 
Artem Shaklein
Join Date: Feb 2010
Location: Russia, Izhevsk
Posts: 43
Rep Power: 16
ARTem is on a distinguished road
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.
ARTem is offline   Reply With Quote

Old   April 17, 2011, 17:29
Default
  #3
New Member
 
aidin zarif
Join Date: Apr 2011
Posts: 1
Rep Power: 0
a.r.zarif is on a distinguished road
Quote:
Originally Posted by zamet63 View Post
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
Hi
you're joking!!!!!!!!!!!!!
it's easy!!!!!!!!!!!!!
go to chapter 7
a.r.zarif is offline   Reply With Quote

Old   May 4, 2011, 07:37
Default
  #4
New Member
 
zamet
Join Date: Mar 2011
Posts: 2
Rep Power: 0
zamet63 is on a distinguished road
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
zamet63 is offline   Reply With Quote

Old   May 4, 2011, 08:31
Default
  #5
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 19
DoHander is on a distinguished road
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
DoHander is offline   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
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


All times are GMT -4. The time now is 10:40.