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

thomas algorithm

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2009, 08:14
Default thomas algorithm
  #1
New Member
 
C.V.Keshav
Join Date: Mar 2009
Posts: 2
Rep Power: 0
cvkeshav is on a distinguished road
Hey, im working on a tridiagonal solver, aka the Thomas Algorithm to solve boundary value problems for my graduate course in cfd at the university of arizona. I am writing my codes in c++. the problem with my code is that my solution oscillates at every point, one a negative value and the next being a positive value, all through my domain. this is very weird to me and i dont know what to do...
Thanks for your help in advance.
C.V.Keshav
cvkeshav is offline   Reply With Quote

Old   March 28, 2009, 09:48
Default
  #2
Member
 
MrFluent
Join Date: Mar 2009
Posts: 33
Rep Power: 17
mr_fluent is on a distinguished road
take a look at the algo given at our wiki reference. That algorithm works well because i am using it now a days without any problems. In fact my new solver works heavly around it and it performs beautifully.

Check your coefficients carefully by printing them, or use this algo to validate small test problem first.
mr_fluent is offline   Reply With Quote

Old   March 29, 2009, 06:37
Default
  #3
New Member
 
C.V.Keshav
Join Date: Mar 2009
Posts: 2
Rep Power: 0
cvkeshav is on a distinguished road
Hey, I found the error in my code. It is working fine now. Thanks.
cvkeshav 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
About Phase Coupled SIMPLE (PC-SIMPLE) algorithm Yan Kai Main CFD Forum 0 April 18, 2007 04:48
About Phase Coupled SIMPLE (PC-SIMPLE) algorithm Yan Kai FLUENT 0 April 14, 2007 00:17
mach-uniform algorithm for LES/DNS ilyas Main CFD Forum 0 February 22, 2007 11:53
Thomas Algorithm Testing Out of Ideas Main CFD Forum 3 February 8, 2001 23:45
Why Thomas Algorithm for tridiagonal systems? Yogesh Talekar Main CFD Forum 6 July 15, 1999 14:56


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