# TDMA in Matlab

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 March 23, 2011, 11: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, 15:23 #2 Member   Artem Shaklein Join Date: Feb 2010 Location: Russia, Izhevsk Posts: 43 Rep Power: 9 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:
 Originally Posted by zamet63 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

 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: 13 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post moo Main CFD Forum 6 May 16, 2010 14:48 abe_cooldude Main CFD Forum 2 May 3, 2010 16:58 HaKu Main CFD Forum 0 July 16, 2009 15:35 Ally Main CFD Forum 4 July 12, 2007 03:51 prapanj Main CFD Forum 9 August 10, 2006 19:16

All times are GMT -4. The time now is 01:32.

 Contact Us - CFD Online - Privacy Statement - Top