- how to take my equations and boundary conditions from paper
2-D conduction in a aluminum plate
3 次查看(过去 30 天)
显示 更早的评论
I have a large matrix from a 2-D heated plate with each point in the matrix giving a temperature. I want to use second order central finite difference method to numerically compute what the heat flux is at each point and then create a 2D contour plot. I am new to using finite difference method and how to take my equations and boundary conditions from paper and write the code in matlab to solve for the heat flux. Any help would be great.
Thanks
2 个评论
采纳的回答
darova
2020-2-17
Your equation: ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/272241/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/272241/image.png)
Can be re-written as (difference scheme): ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/272242/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/272242/image.png)
You should express ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/272243/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/272243/image.png)
while 1 % loop until tolerance
for i = 2:m-1 % loop rows matrix
for j = 2:n-1 % loop columns matrix
T(i,j) = long_expression
end
end
if tolerance < 0.1
break;
end
end
Found a mistake in your boundary conditions:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/272244/image.png)
I also attached similar script for another scheme. Look
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Thermal Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!