|
[Sponsors] |
[Urgent] Develop a numerical code to solve steady state 1d heat cond eq | with TDMA |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 7, 2020, 00:51 |
[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 |
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 ) |
|
December 7, 2020, 13:19 |
|
#2 |
Senior Member
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8 |
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. |
|
December 8, 2020, 04:27 |
|
#3 | |
New Member
Josh Night
Join Date: Dec 2020
Posts: 3
Rep Power: 6 |
Quote:
|
||
December 8, 2020, 19:45 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
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. |
|
Tags |
1d heat conduction, heat equation, tdma |
|
|
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 |