Тёмный

Laplace's Equation with Arbitrary Boundary Conditions in PYTHON 

Подписаться
Просмотров 21 тыс.
% 855

LINK TO TUTORIAL SERIES: ru-vid.com/group/PLkdGijFCNuVnIwo7ZC9pR1CjgZTtrtCfL
In this video we use the python package NUMBA to solve for the electric potential under any boundary conditions. While this includes conditions at the edges, it also include places of fixed potential within the boundaries: this is impossible to tackle analytically. By the end of the video. I show how one can create their own image of a potential configuration (for example, a complicated geometrical plate capacitor, such as the accordion geometry seen in ATLAS), and how one can the compute the potential, and electric field everywhere.
Code located in the link below. Go to "Python Metaphysics tutorials" and then "Vid 8"
github.com/lukepolson/youtube_channel

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

 

8 апр 2021

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 51   
@danielgitlin2711
@danielgitlin2711 3 года назад
i can't believe the quanity and quality of your content, truly awesome
@csjfd1764
@csjfd1764 8 месяцев назад
I remembered the MIT physics course, with Prof. Walter Lewis! Your lessons using Python and the anaconda package are excellent! I´m from Brasil, Aracaju-SE.
@znswanderer
@znswanderer 3 года назад
Wow! This is quite impressive. Even more impressive is the sheer number of high quality videos in the last couple of days you have posted. Keep up the good work!
@danwhalen3182
@danwhalen3182 3 года назад
You've posted like 8 awesome videos in a week. I love them, keep it up!
@tomasprejda4165
@tomasprejda4165 Год назад
Hi, Mr. P Solver, I just want to say - your Python video are the best on RU-vid in terms of quality, though a bit focused. At least for people, who already know a bit about what they are doing.
@munozariasjm
@munozariasjm 2 года назад
Again, these videos are the most interesting ones I have seen on computational methods. Thanks!
@AJ-et3vf
@AJ-et3vf 2 года назад
Commenting again, man I really have to thank you so much for your solving of an elliptic PDE here. It's a surprisingly very simple but effective method of solving this PDE. It turns out that your method of solving the PDE here, an iterative finite difference method, is actually the Gauss Seidel method for elliptic PDEs, which is guaranteed to converge because it's diagonally dominant. I thought that this may be useful to solve 2nd order boundary value problems, linear and nonlinear, and it works! After all, BVP ODEs can be thought of as elliptic PDEs too with only one independent variable. Again, thanks man! Now, I feel ready for getting into solving PDEs because of the added intuition and overwhelming effectiveness of this iterative finite difference method, which you demonstrated in this video.
@gcslksd
@gcslksd 3 года назад
Dude you've taught me so much it's insane, i'm flying through my numerical methods class
@kekskekskeks112
@kekskekskeks112 3 года назад
Sick rhymes and even sicker video! Really love the image -> BCs approach!
@moskova100
@moskova100 3 года назад
What a brilliant tutorial, well presented and methodical - the diss track in its own right is a work of art! XD This has really helped me with a project I'm working on investigating eddy current levitation - thanks man!
@AJ-et3vf
@AJ-et3vf 2 года назад
This is awesome! I only now got to watch these and am surprised you actually dealt with and solved PDEs, one of the few numerical methods topics that I haven't dived in yet. And also nice for using Numba here. I tried to learn Numba weeks ago, but there aren't much tutorials and examples to learn Numba so I gave up on it. Again, thanks very much.
@morbi_ipynb
@morbi_ipynb Год назад
Thanks for all this inspiration, your channel is one of my favorites! :)
@ShinjiCarlos
@ShinjiCarlos Год назад
Watching this tuto I just realized: there is only one Mr P Solver. Period.
@niescho6093
@niescho6093 Год назад
Thank you!I really love your style.
@obliquesealray2188
@obliquesealray2188 2 года назад
thank you for all the wonderful videos.
@iridium1118
@iridium1118 3 года назад
Cool stuff. I recommend simulating a swing up of a cart pendulum system.
@diegocarrera7520
@diegocarrera7520 3 года назад
Awesome video, Learning a lot :) Thanks
@dPhi_dTau
@dPhi_dTau 3 года назад
Wow!! Great video!
@tanmaysinha8138
@tanmaysinha8138 3 года назад
Really great work! Could you do one on the Helmholtz equation i.e finding the eigenvalues and eigenvectors of the Laplacian?
@zadejoh
@zadejoh 3 года назад
Really cool video! I haven't watched the whole thing yet so this may be answered/fixed later on in the video, but does it matter that you are modifying the potential array in-place during the triple for loop?
@markchadwick77
@markchadwick77 Год назад
Pardon me for a "Boomer moment." This was EXACTLY the assignment for my electrodynamics course 40 years ago! 😮 We programmed it in FORTRAN (the Python of the day) on a VAX mainframe with ASCII output for the plots. Of course, it took me about 25 hours of effort instead of 25 minutes.
@valeriusevanligasetiawan6967
Hi Luke! Thanks for the great video! I am really into this to reference my scientific computing problems. I want to know if you are going to solve the maxwell equation or maybe the landau lifshitz gilbert equation in the video or maybe solve it using the finite element method, rather than finite difference. It's going to be awesome.
@bingodeagle
@bingodeagle 3 года назад
Laplace's is such a beautiful equation
@Piipolinoo
@Piipolinoo 3 года назад
Amazing!
@Puddelpai
@Puddelpai 3 года назад
Awesome!
@Louis-ml1zr
@Louis-ml1zr 2 года назад
amazing really thank you
@tripp8833
@tripp8833 3 года назад
Awesome thanks
@Omgtired
@Omgtired Год назад
Dude you have zero right to diss analytical solutions that bad 😭 Great vid!
@guillermobarrio55
@guillermobarrio55 Год назад
One doubt I have: could you have used a 2D convolution as you did in the 3D Laplace vid? Outstanding job, as always.
@aliexpress.official
@aliexpress.official 3 года назад
ok but why is the rap such a bop tho also can you upload the code to your git? There's only 1-7 there currently
@sthohstholokuhle9755
@sthohstholokuhle9755 2 года назад
damn thats was nice introduction song
@GK-lf1ll
@GK-lf1ll Год назад
Excellent, can we do this for surface temperature gradients of non-homogenous surfaces?
@TheJinyee
@TheJinyee 2 года назад
Hello, Mr. Solver. Thank you for your tutoring vid. I followed it step by step using Visual Studio Code. However, I can't create the Accordion shape image. Please could you give me more explanations about that?
@thh1010
@thh1010 4 месяца назад
Hi, how to implement no-slip condition for the square? for fluids
@user-dv8id8vd7g
@user-dv8id8vd7g Год назад
In the image section, what size of png file shall be produced for the coding to execute? What are the two colors shall be used to produce the image? Thanks a million
@GauravGupta-by1ml
@GauravGupta-by1ml 8 месяцев назад
I was wondering, is there any way I can put streamlines over the potential plot ?
@niko-yarey
@niko-yarey 2 года назад
Great videos!, but It’s been hard to understand why you set those boundaries conditions (at least for me), can anyone explain what’s going on there? I would appreciate it
@kkkanishkkk
@kkkanishkkk 3 года назад
LOVE THE RAP!!!!!!!!!!!!
@MrPSolver
@MrPSolver 3 года назад
Thank you! (Just don't show Griffiths)
@chrisnassar
@chrisnassar 2 года назад
How do you set Efield=0 boundary condition?
@googlegoogle1610
@googlegoogle1610 2 года назад
please, can you solve Nernst-Planck equation in python when it is coupled with Poisson equation? :)
@nicolocantaluppi5572
@nicolocantaluppi5572 2 года назад
I tried checking the tutorial playlist but the link doesn't work..
@matthewkinahan3945
@matthewkinahan3945 3 года назад
Diss track legend
@ameerbaloch9894
@ameerbaloch9894 3 года назад
please upload the next tutorial video
@mrmaple
@mrmaple 2 года назад
In step 12, you're modifying in-place as you go. Some of the numbers you're using as the previous state have been modified and are in their final state. I think you need to have two 2D arrays, potential and potential_prime (your next state.)
@bskull3232
@bskull3232 Год назад
Both will work. The method shown here converges faster (called Gauss-Sidel method), while using 100% old data converges slower (called Jacobi method).
@anweshbhattacharyya7763
@anweshbhattacharyya7763 2 года назад
Brother I couldn't find you in linkedin
@NTC
@NTC 2 года назад
hey man, the link is dead, could you please double check?
@naztar4323
@naztar4323 6 месяцев назад
Ama be real with i solved Poisson's Equation with out even having an ideal about this sort of math , i think that algorithms are more natural way of solving
@angelchurros747
@angelchurros747 2 года назад
how about doing it in 3D???
@azgamer2429
@azgamer2429 Год назад
i have some doubts can someone help?