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

  Рет қаралды 14,680

Mr. P Solver

Mr. P Solver

Күн бұрын

Пікірлер: 52
@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 3 жыл бұрын
man I just discovered your channel and your work is really awesome, you really deserve more followers
@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
@anettsimon-zsok3943
@anettsimon-zsok3943 6 ай бұрын
Your videos are so good. Keep up the good work!
@manuelpena3988
@manuelpena3988 Жыл бұрын
adding a colorbar didn't hurt (very nice video, love your videos) PS: I've seen you add them at last
@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 :-)
@abcd-gp6is
@abcd-gp6is 3 жыл бұрын
😭😭😭😭😭 you deserve soo much moreee❤️❤️❤️❤️
@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?
@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...
@RameezRaja-qc9fi
@RameezRaja-qc9fi 2 жыл бұрын
Great work brother p solver!
@bean_mhm
@bean_mhm Жыл бұрын
Great video!
@Puddelpai
@Puddelpai 3 жыл бұрын
saving this for thanksgiving
@martinandersen1763
@martinandersen1763 3 ай бұрын
@Mr. P Solver, what if we had internal heat generation and multiple layers? Say you have a radial system of 2 layers with the inner core being a copper wire with an electric current I running through it? Could the "Solve_heat" function be ranged in a manner were such inputs is possible?
@JonathonRiddell
@JonathonRiddell 3 жыл бұрын
Loved this example! Great video :).
@MrPSolver
@MrPSolver 3 жыл бұрын
Thank you :) . I'll be staying updated with your statistical mechanics videos!
@akashbhurke4559
@akashbhurke4559 3 жыл бұрын
Just brilliant!!
@koraybudak8425
@koraybudak8425 3 жыл бұрын
with love from turkey
@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.
@BasOomen
@BasOomen Жыл бұрын
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 Жыл бұрын
What is the purpose of the meshgrid you create in the beginning? It is not used anywhere in the code, is it?
@googlegoogle1610
@googlegoogle1610 2 жыл бұрын
Please, Please we need to solve Nernst-Planck equation coupled with Poisson equation
@obliquesealray2188
@obliquesealray2188 2 жыл бұрын
nice!
@johnwu5908
@johnwu5908 3 жыл бұрын
Brilliant
@marcelsmolik9469
@marcelsmolik9469 3 жыл бұрын
Is there some book for this kind of stuffs in python?
@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.
@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 3 жыл бұрын
Wonderful work. Could you please post the turkey.png file? Thanks a lot.
@chromax1619
@chromax1619 2 жыл бұрын
Real physicists approximate the chicken as a sphere
@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
@atanjacket
@atanjacket Жыл бұрын
I think you would want to avoid cutting the turkey in half due to the loss in moisture content.
@bolei6840
@bolei6840 2 жыл бұрын
where is the code?
@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.
@totallynotjohnstamos1908
@totallynotjohnstamos1908 3 ай бұрын
DYE-FUSIVITY and CALVIN...... good video though
@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
Mr. P Solver
Рет қаралды 7 М.
Laplace's Equation with Arbitrary Boundary Conditions in PYTHON
25:45
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Memoization: The TRUE Way To Optimize Your Code In Python
7:32
Pendulum Motion in PYTHON
23:49
Mr. P Solver
Рет қаралды 17 М.
Billiard Balls and the Boltzmann Distribution in Python
29:50
Mr. P Solver
Рет қаралды 21 М.
Laplace's Equation of Electric Potential (Solved in Python)
27:44
Mr. P Solver
Рет қаралды 20 М.
Massively Speed-Up Python Code With Numba Compilation
16:28
NeuralNine
Рет қаралды 55 М.
Make Python code 1000x Faster with Numba
20:33
Jack of Some
Рет қаралды 448 М.
Solving the heat equation | DE3
14:13
3Blue1Brown
Рет қаралды 1,3 МЛН
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 821 М.
Solving Heat equation PDE using Explicit method in Python
15:38
Shameel Abdulla
Рет қаралды 49 М.