Тёмный

Numerical Heat Equation: Cooking a Turkey in Python | Python Metaphysics #9 

Mr. P Solver
Подписаться 136 тыс.
Просмотров 14 тыс.
50% 1

In this video, we solve the heat equation in 2 dimensions and simulate cooking a turkey. We use the NUMBA package to speed up the computation time as we will use forloops to implement the algorithm.
All code located here:
github.com/luk...

Опубликовано:

 

13 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 50   
@dishasawant4385
@dishasawant4385 3 года назад
So underrated! This guy deserves more appreciation
@rtensor
@rtensor 3 года назад
How does this guy only have 800 followers? That is a crime!
@MrPSolver
@MrPSolver 3 года назад
Hahahahaha spread the word my dude
@SubhodeepSarkar
@SubhodeepSarkar 3 года назад
Can't wait to code along with the video. You're doing a really amazing job, friend!
@Louis-ml1zr
@Louis-ml1zr 2 года назад
man I just discovered your channel and your work is really awesome, you really deserve more followers
@anettsimon-zsok3943
@anettsimon-zsok3943 2 месяца назад
Your videos are so good. Keep up the good work!
@ArthurPasqualottoakak
@ArthurPasqualottoakak 3 года назад
Dude i just love your content, you're inspiring me to try science comunicating
@MrPSolver
@MrPSolver 3 года назад
Do it!!!
@ArthurPasqualottoakak
@ArthurPasqualottoakak 3 года назад
@@MrPSolver Oh god YOU'RE MY HERO
@markushaysnielsen4885
@markushaysnielsen4885 3 года назад
What a great video! Where was this when I was taking my numerics courses?! Have you thought about making a video on cellular automata | lattice gas system | lattice Boltzmann models? I would love to see a video on any one of these topics :-)
@AJ-et3vf
@AJ-et3vf 3 года назад
This is so awesome! Very motivating and the background music makes it pleasant and calming yo listen to, too. I really love and appreciate the use of numba to solve this. Would there be a Numba tutorial in the future?
@manuelpena3988
@manuelpena3988 9 месяцев назад
adding a colorbar didn't hurt (very nice video, love your videos) PS: I've seen you add them at last
@matejivanek2013
@matejivanek2013 3 года назад
Do you realise that eventually we will need those masterpieces like "turkey in an oven" or "LHC accordion" on a shirt or something...
@Puddelpai
@Puddelpai 3 года назад
saving this for thanksgiving
@abcd-gp6is
@abcd-gp6is 3 года назад
😭😭😭😭😭 you deserve soo much moreee❤️❤️❤️❤️
@RameezRaja-qc9fi
@RameezRaja-qc9fi Год назад
Great work brother p solver!
@JonathonRiddell
@JonathonRiddell 3 года назад
Loved this example! Great video :).
@MrPSolver
@MrPSolver 3 года назад
Thank you :) . I'll be staying updated with your statistical mechanics videos!
@koraybudak8425
@koraybudak8425 2 года назад
with love from turkey
@akashbhurke4559
@akashbhurke4559 3 года назад
Just brilliant!!
@rifatmasud
@rifatmasud 3 года назад
I'm not sure if this guy is another Siraj Raval for another niche which is not ML, but kudos to him picking an interesting one. So tired of seeing python only in ML, automation, Web Development etc in youtube.
@bean_mhm
@bean_mhm Год назад
Great video!
@markusheimerl8735
@markusheimerl8735 3 года назад
loved the vid man! Gotcha self a new sub btw whats ur degree?
@MrPSolver
@MrPSolver 3 года назад
BSc in physics. Currently doing master's degree. Video on that soon
@ganstabreakincity
@ganstabreakincity 3 года назад
In this case the oven has fixed temperature, what would happen if we turn off the oven? Can you just apply Heat Eq. to the whole picture "supposing there is some outside temperature"? How would you choose thermal diffusivity in that chase (two termal diffusions one for chicken and one for the oven machine?) Thanks for your time.
@MapMakingNL
@MapMakingNL Год назад
You would use the thermal diffusivity of air and update the temperature for all grid cells in the for loop. Initialization would still be the same since you start with a heated oven.
@lassebillejrgensen3227
@lassebillejrgensen3227 10 месяцев назад
What is the purpose of the meshgrid you create in the beginning? It is not used anywhere in the code, is it?
@johnwu5908
@johnwu5908 3 года назад
Brilliant
@googlegoogle1610
@googlegoogle1610 2 года назад
Please, Please we need to solve Nernst-Planck equation coupled with Poisson equation
@atanjacket
@atanjacket 9 месяцев назад
I think you would want to avoid cutting the turkey in half due to the loss in moisture content.
@obliquesealray2188
@obliquesealray2188 2 года назад
nice!
@aliexpress.official
@aliexpress.official 3 года назад
Amazing! But physical turkeys are 3d and therefore every point on the turkey is exposed to more heat (since there are more neighbors) how would the added 3rd dimension affect turkey cooking?
@MrPSolver
@MrPSolver 3 года назад
While it's true that turkeys are 3D and exposed to more heat, they also have more volume they heat up. Think about arclength->surface area: (2D case) vs surface area-> volume (3D case). The reason why the turkey heats up faster in 3D is likely because it has a higher surface area to volume ratio (in 2D you can only capture the cross section that maximizes the cross sectional area).
@MrPSolver
@MrPSolver 3 года назад
I was thinking about possibly doing a 3D simulation at some point in the future, but the most difficult part would be obtaining the 3D turkey array. If I had that, then it would be a relatively simple modification to the python code.
@aliexpress.official
@aliexpress.official 3 года назад
@@MrPSolver look for DICOM files of CT scans of turkeys. You can probably extract the matrix using pydicom or something.
@benjorino
@benjorino 3 года назад
@@MrPSolver I can get you that 3d turkey array, I wrote you some instructions but I think the comment got auto removed because I had several external links in it... I'll DM you, I want to see the 3d turkey video! Your videos are great so far, very helpful.
@benjorino
@benjorino 3 года назад
@@MrPSolver Okay so it seems you can't DM someone on youtube? Bah. Okay so google this: cooked-turkey-v1--511939 You should find a free 3d turkey. its a .obj file which is a super simple format, it contains lists of vertices and normals, I'm sure you could get the boolean array you want from that yourself with a lot of dot products etc. Or you can use an online converter (easy to find on google) to make that into an stl and then use code someone else has stuck on github - search for marmakoide / inside-3d-mesh
@robertoparreiras2369
@robertoparreiras2369 2 года назад
Wonderful work. Could you please post the turkey.png file? Thanks a lot.
@marcelsmolik9469
@marcelsmolik9469 2 года назад
Is there some book for this kind of stuffs in python?
@dudiek12
@dudiek12 3 года назад
Man, why in equation for rearanging for m+1 term deltay^2 dissapeeared and deltax^2 appears?
@dudiek12
@dudiek12 3 года назад
Ok, I got it. They are the same in value so no need to differentiate deltax from deltay, let them be the same
@chromax1619
@chromax1619 2 года назад
Real physicists approximate the chicken as a sphere
@robertstathers2905
@robertstathers2905 2 года назад
Lets talk turkey. Seems to me that turkeys cook faster than this simulation. Perhaps that is because the diffusivity is too low. Or perhaps, real turkeys are not solid throughout and the heat transfer also occurs by radiation and convection through the hollow air gap in the center of the turk. Nice programming though, Thanks.
@bolei6840
@bolei6840 2 года назад
where is the code?
@matthewkinahan3945
@matthewkinahan3945 3 года назад
Bro you solve so many problems can you figure out why my wife cheated on me?
@yashthakre
@yashthakre 2 года назад
kind sir please provide turkey.png
Далее
Turkey Cooking in PYTHON
5:13
Просмотров 7 тыс.
Eigenstates of ANY 1D Potential in PYTHON
19:41
Просмотров 36 тыс.
Дежавю, прескевю и жамевю!
00:59
Просмотров 562 тыс.
БЕЛКА РОЖАЕТ?#cat
00:28
Просмотров 387 тыс.
Solving the heat equation | DE3
14:13
Просмотров 1,3 млн
Make Python code 1000x Faster with Numba
20:33
Просмотров 443 тыс.
I'm Coding an Entire Physics Engine from Scratch
9:19
1st Year Calculus, But in PYTHON
32:13
Просмотров 125 тыс.
Fourier Optics in Python
29:22
Просмотров 21 тыс.