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

[Urgent] Develop a numerical code to solve steady state 1d heat cond eq | with TDMA

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By aerosayan
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2020, 00:51
Default [Urgent] Develop a numerical code to solve steady state 1d heat cond eq | with TDMA
  #1
New Member
 
Josh Night
Join Date: Dec 2020
Posts: 3
Rep Power: 6
LearnerJosh is on a distinguished road
Develop a numerical code to solve steady state 1d heat conduction equation with source term using the TDMA algorithm
(a) Solve a 1d conduction problem with a point heat source at the centre and constant temperature boundary conditions.
(b) Compare the results with the analytical solution for the same case on the same plot (Temperature vs x )
LearnerJosh is offline   Reply With Quote

Old   December 7, 2020, 13:19
Default
  #2
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
Is this a homework question?


It's easy to solve, however if it is a homework question, the instructor should have provided you with proper tutorials on solving the heat conduction using explicit formulation first, then he/she should have taught you how to code the TDMA algorithm, then he/she should've taught you how to form the implicit form of the heat conduction equation and then solve the resultant matrix using your previously developed TDMA algorithm.


For the implicit formulation of the 1D heat conduction equation, you can refer Vertsteeg's book (I think somewhere between chapter 5 to 7. I can't recall correctly). In those chapters, the discretization procedure is shown and proper results are given so that you can verify your own calculations.
ships26 and LearnerJosh like this.
aerosayan is offline   Reply With Quote

Old   December 8, 2020, 04:27
Default
  #3
New Member
 
Josh Night
Join Date: Dec 2020
Posts: 3
Rep Power: 6
LearnerJosh is on a distinguished road
Quote:
Originally Posted by aerosayan View Post
Is this a homework question?


It's easy to solve, however if it is a homework question, the instructor should have provided you with proper tutorials on solving the heat conduction using explicit formulation first, then he/she should have taught you how to code the TDMA algorithm, then he/she should've taught you how to form the implicit form of the heat conduction equation and then solve the resultant matrix using your previously developed TDMA algorithm.


For the implicit formulation of the 1D heat conduction equation, you can refer Vertsteeg's book (I think somewhere between chapter 5 to 7. I can't recall correctly). In those chapters, the discretization procedure is shown and proper results are given so that you can verify your own calculations.
Yes, it is a homework question. Thank you for your help.
LearnerJosh is offline   Reply With Quote

Old   December 8, 2020, 19:45
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
TDMA pseudo code is on wikipedia.

You can just google TDMA + whatever software you are using and quickly find a working TDMA. Then it's just applying the constraints given, i.e. setting up the right matrix. But actually, only certain discretizations results in a tridiagonal matrix which can then efficiently be solved using the TDMA. And although we can more-or-less guess what discretization is being applied, that really should be part of the problem definition.
aerosayan likes this.
LuckyTran is offline   Reply With Quote

Reply

Tags
1d heat conduction, heat equation, tdma


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
steady state FSI - error code 3840 alinik CFX 3 August 13, 2013 04:15
c code to solve 2D heat transfer K.M. BAZEETH AHAMED Main CFD Forum 4 February 6, 2003 15:58
I need a Finite elements code to solve the heat eq Matt Main CFD Forum 3 January 27, 2003 07:39
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 16:56
About the difference between steady and unsteady problems Lisa Main CFD Forum 11 July 5, 2000 15:37


All times are GMT -4. The time now is 20:44.