Solving the Heat Diffusion Equation (1D PDE) in Matlab

  Рет қаралды 137,271

Kody Powell

Kody Powell

Күн бұрын

Пікірлер
@anjalibhattarai2812
@anjalibhattarai2812 7 жыл бұрын
Great tutoring!! You saved me in graduate project
@kedarshete3131
@kedarshete3131 2 жыл бұрын
Thank you Kody for this video. Very clearly shows how a finite difference method works, and is different from other techniques like finite volume. Conservation is not imposed in finite difference, as the video shows, Temperature at previous timestep is used to predict fluxes.
@sarahgayot4393
@sarahgayot4393 5 жыл бұрын
Thanks a lot for this, a colleague forwarded it to me and it is really great :)
@johangoethe2472
@johangoethe2472 8 ай бұрын
Thank you very much. It was so , so useful !!!
@tapasbhattacharya9590
@tapasbhattacharya9590 7 жыл бұрын
Wonderful tutorial. Very nicely presented.
@baacademy1166
@baacademy1166 5 жыл бұрын
quite educative, thanks. please further with 2D HEAT DIFFUSION.
@jeppelarsen7862
@jeppelarsen7862 4 жыл бұрын
Hey this is a fantastic Video!! You just simply helped me solving a PDE without ever having to touch Fourier series!!! Thank you!!! But what if your starting condition at x=0 is a heat input of q_convek = 400W, and you know the temperatur far away from the surface T(x=-0.5*L, t=0) = 2000K, but you don't know T(0, 0). Basicly I want to simulate wall temperture in a combustion engine cylinder, and I know T(L,0)=0, T(-0.5*L, 0)~2000, qdot(0, t=0:t_final) = 400W
@e-skills2120
@e-skills2120 4 жыл бұрын
@jeppe larsen if oyu still have a doubt I can help you out
@Twolf-gaming
@Twolf-gaming 4 жыл бұрын
thankyou so much sir..love from india
@스제임-x9r
@스제임-x9r 2 ай бұрын
should we consider boudnary condition T1s, T2s before loop ?
@chapkovichdima
@chapkovichdima 6 жыл бұрын
what kind of sorcery is that?
@mariadelafuenteruiz4628
@mariadelafuenteruiz4628 3 жыл бұрын
How does the analytical solution looks like when having a flux in the east boundary condition?
@sohaibkhan779
@sohaibkhan779 5 жыл бұрын
great tutorial... very helpful... thankyou
@nodddyyyy
@nodddyyyy 6 жыл бұрын
Is it possible to have T2s not be set as constant with these equations? Also can this be modified to use a non constant specific heat value ie varying with temperature?
@chucknorris9511
@chucknorris9511 4 жыл бұрын
Kody, excellent video. How would the equations change if we were to look at a triangular section? It has been years since I took this course.
@luciagerman6389
@luciagerman6389 4 жыл бұрын
great video!!! thank you. i wrote figure instead of figure(1) and ended with Matlab making 5001 plots though lmao
@stefanbailie3126
@stefanbailie3126 5 жыл бұрын
So cool!
@AXEGAMINGHDH
@AXEGAMINGHDH 6 жыл бұрын
you have not used the j loop at the end for the final temp why ???? at the last u just multiplied with dt which is 0.1 could u please explain that to me thanks
@chucknorris9511
@chucknorris9511 4 жыл бұрын
I was about to ask him the same question. The reason he is multiplying by the dt is to cancel the times so it's adding temperature over each loop. Looks like you commented two years ago so I am sure you figured it out. :)
@hellsing48
@hellsing48 3 жыл бұрын
How would you include heat exchange with environment? Have a bar at constant temperature (e.g. 400C) and and instead of surface temperature give outside temperature (20C). How would you calculate heat exchange with environment in this case?
@krishnendupaul9592
@krishnendupaul9592 6 жыл бұрын
can we plot t vs T here? if possible then please tell me how. thank you
@DailyLifeGermany
@DailyLifeGermany 4 жыл бұрын
Thanks for the video. I want to use this code for concentration diffusion in a film is that possible? Because when i put my values for concentrations instead of Temparatures is starts to explode and its not working as nice as here.
@pedrovinicius3621
@pedrovinicius3621 3 жыл бұрын
Hey, Im trying to do the same process but with two different materials any advise?
@onionking1523
@onionking1523 3 жыл бұрын
Im not an expert, but you could try solving the first material, with the aim of finding T2_material1. Then solve for the second material using T1_material2 = T2_material1 and repeat the process.
@felipeanime1999
@felipeanime1999 3 жыл бұрын
caramba, to tentando fazer a mesma coisa!
@onionking1523
@onionking1523 3 жыл бұрын
@@felipeanime1999 I've been giving it some thought. You could try making the alpha term into a matrix equal in size to your grid, then assign the material specific value to that matrix, then iterate through your alpha matrix within your loop.
@saeedR86
@saeedR86 3 жыл бұрын
thx a lot. it was perfect. i have a question. when we have three insulations layers, how we should write the code?
@yem.t.3930
@yem.t.3930 6 жыл бұрын
thanks so much! nice tutorial
@sarkiskazandjian8886
@sarkiskazandjian8886 6 жыл бұрын
Hey, Yemane! I just watched this video too!
@ruturajshinde9175
@ruturajshinde9175 6 жыл бұрын
hey @Yemanebirhan Tadesse, can you help me to solve the problem in which i have to find heat distribution in a tapered cylinder.cylinder is trapezoidal; with small diameter 4 cm and large diameter 8 cm; length of cylinder is 20 cm. temperature at the right hand side is 200 degrees and temp at LHS is 100 degree. Temp of the bar itself is 25 degrees. and i want to find out heat distribution after 10 seconds. I want to do it on matlab. If you could guide me that will be great.
@nsi279
@nsi279 4 жыл бұрын
What unit is alpha in?
@farukkilic6010
@farukkilic6010 5 жыл бұрын
super
@baacademy1166
@baacademy1166 5 жыл бұрын
Good day sir, I will like to show my appreciation for your efforts. My question please how can I plot Temperature against time thanks
@e-skills2120
@e-skills2120 4 жыл бұрын
@BA ACADEMY Do you still have a doubt
@baacademy1166
@baacademy1166 4 жыл бұрын
No longer, thanks for the reply
@alip6001
@alip6001 4 жыл бұрын
@@e-skills2120 i need
@alip6001
@alip6001 4 жыл бұрын
@@baacademy1166 can you help?
@e-skills2120
@e-skills2120 4 жыл бұрын
@@alip6001 okay kindly mail me you can find my email id on my channel about section.
@dashti.behrouz
@dashti.behrouz 5 жыл бұрын
can you tell me how to plot the iteration vs error in a figure? thank you .
@Racailloudu59
@Racailloudu59 7 жыл бұрын
How we can check the convergence?
@naziabinte5091
@naziabinte5091 3 жыл бұрын
In line 7, dx should be l/(n-1), no?
@manishkala6292
@manishkala6292 4 жыл бұрын
Thank you sir. In this code wanted to plot surface plot of x,t and T. But it is showing error. Can anyone give suggestion.
@gohteikwei1289
@gohteikwei1289 4 жыл бұрын
Hi do u have 1D elliptic matlab code?
@abdel-gq9po
@abdel-gq9po 4 жыл бұрын
in lines 26 and 27, I think the first derivative near the walls should be divided by dx*(dx/2) and not dx^2. the distance between each wall and its adjacent node is dx/2.
@PollonPollow
@PollonPollow 3 жыл бұрын
no it's correct because delta x it's the space over we make the derivative. Each node is at delta x/2 from the boundary of each control area, but we make the derivative over the entire delta x
@AJ-et3vf
@AJ-et3vf 3 жыл бұрын
Thank you
@utaritokn
@utaritokn 7 жыл бұрын
implicit solutıon do you have?
@utaritokn
@utaritokn 7 жыл бұрын
Hassan Saleem hard
@abdullahiabdullahi4023
@abdullahiabdullahi4023 6 жыл бұрын
I would be quite interested to see this please
@jiunyeek2606
@jiunyeek2606 7 жыл бұрын
hello,Kody. Can i have the coding?
@yem.t.3930
@yem.t.3930 6 жыл бұрын
so easy, you can just pause the video and write it down, I just did and it runs well.
@Roberto70ism
@Roberto70ism 6 жыл бұрын
Hi Kody, is possible to have a code, for example in ".m" form? Thanks
@yem.t.3930
@yem.t.3930 6 жыл бұрын
so easy, you can just pause the video and write it down, I just did and it runs well.
@natasharodriguez2279
@natasharodriguez2279 2 жыл бұрын
Creo que es exacto lo que necesito pero en español 😭
@JamesVestal-dz5qm
@JamesVestal-dz5qm 8 ай бұрын
I have more coding experience in Matlab than python. Fouriers law says q=-kAdT/dx. Donald trump set a boundary condition on the southern border! Zero flux boundary condition! Sophisticated code like paul smiths laboratory!
Solving the Heat Diffusion Equation (1D PDE) in Python
25:42
Kody Powell
Рет қаралды 74 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Frontend developer roadmap
9:11
Aryan Singh
Рет қаралды 728
Solving the heat equation | DE3
14:13
3Blue1Brown
Рет қаралды 1,3 МЛН
Solving Heat equation PDE using Explicit method in Python
15:38
Shameel Abdulla
Рет қаралды 49 М.
Oxford Calculus: How to Solve the Heat Equation
35:02
Tom Rocks Maths
Рет қаралды 74 М.
Ch.18 How to Use Matlab's PDEPE Solver
19:51
Camp Hope
Рет қаралды 89 М.
The diffusion equation | Week 12 | MIT 18.S191 Fall 2020 | Grant Sanderson
21:30
The Julia Programming Language
Рет қаралды 158 М.
Lab10_3: Diffusion Eq 2D with Source
14:39
Haroon Sahotra
Рет қаралды 31 М.
Euler method | Lecture 48 | Numerical Methods for Engineers
7:03
Jeffrey Chasnov
Рет қаралды 35 М.