MATLAB Matlab program using implicit Finite Difference

  • Thread starter tactical
  • Start date
6
0
Hello,

I need help writing a matlab program to solve a heat transfer problem implicitly. For some reason this is very confusing to me. The problem is stated below. Any help is greatly appriciated. Let me know if you need a little more info.

I need to write a program to solve this problem. I want to solve for a temperature T(i,n) using the temperature at the 3 nodes ahead of it. Essentially it's going to be a tridiagonal matrix in which you can solve using Thomas Algorithm. I just need help writing a program to get this tridiagonal matrix.
2h2leud.jpg


Edit: Also, all variable are dimensionless, therefore time goes from 0 to 1 and x also goes from 0 to 1. time is broken up into Δn parts and x is broken up into Δi parts. λ = Δt/Δx2
 
6
0
I guess this might help some:

This what the PDE that was discretized

xdv71l.png
 

Related Threads for: Matlab program using implicit Finite Difference

Replies
28
Views
79K
Replies
0
Views
8K
Replies
3
Views
2K
Replies
1
Views
782
Replies
1
Views
8K
Replies
0
Views
4K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top