Solving PDEs with the FFT [Python]

  Рет қаралды 49,292

Steve Brunton

Steve Brunton

4 жыл бұрын

This video describes how to solve PDEs with the Fast Fourier Transform (FFT) in Python.
Book Website: databookuw.com
Book PDF: databookuw.com/databook.pdf
These lectures follow Chapter 2 from:
"Data-Driven Science and Engineering: Machine Learning, Dynamical Systems, and Control" by Brunton and Kutz
Amazon: www.amazon.com/Data-Driven-Sc...
Brunton Website: eigensteve.com
This video was produced at the University of Washington

Пікірлер: 73
@pradiptahafid
@pradiptahafid 2 жыл бұрын
0:29. Is he writing with the mirror effect? I thought he writes normally and during the editing, he mirrors the video. Anyway, Trully blessed the modern era because of you. For someone who does not come from a math background, this video is a gem. I have been spending 2 weeks on your books and videos. They are amazing.
@fzigunov
@fzigunov 4 жыл бұрын
Dr. Brunton, I just would like to thank you. I'm towards the end of my PhD in fluid mechanics and your lectures have been an integral part of it. You're an awesome presenter and teacher!!
@Eigensteve
@Eigensteve 4 жыл бұрын
Awesome, glad these helped!
@funkygenesis
@funkygenesis 3 жыл бұрын
@@Eigensteve could you tell me what advantage does fft offer over contemporary methods (e.g. finite difference etc. etc.) While solving pdes? Thanks!
@mohammadumair7778
@mohammadumair7778 4 жыл бұрын
Dr. Brunton, you have played a cruel trick, a cruel trick indeed! 😅
@nezv71
@nezv71 4 жыл бұрын
I've always wanted to make a video series like these. So many students feel like there is a big mystical gap between these concepts and the hands-on of coding and using them. Your videos do a great job of demystifying, keep up the good work!
@flaguser4196
@flaguser4196 2 жыл бұрын
I had always thought that the videos are mirrored in post production. But after seeing Steve write a mirrored "FFT" by mistake at the start, I'm not sure anymore. So he actually trained to write mirrored after all. I'm really thankful!
@huaiyizhao8896
@huaiyizhao8896 Жыл бұрын
Same. Can't imagine how he managed to write mirrored.
@huaiyizhao8896
@huaiyizhao8896 Жыл бұрын
And I'm not sure if he writes with his left hand...
@AkamiChannel
@AkamiChannel 7 ай бұрын
Haha I think that was a little tongue-in-cheek trolling
@mathieug6136
@mathieug6136 4 жыл бұрын
That was a good lecture! I didn't look at those math in like 10 years.
@pierrestemmettmusic
@pierrestemmettmusic 4 жыл бұрын
My new favourite youtube channel of all time! Thank you Steve Brunton you're a hero. The sole reason I am passing my degree.
@Eigensteve
@Eigensteve 4 жыл бұрын
Awesome!!
@leilikheirkhah6203
@leilikheirkhah6203 3 жыл бұрын
Thanks Dr. Brunton, your teaching style is incredibly great! The video helped me alot.
@felipegabriel9220
@felipegabriel9220 4 жыл бұрын
Nice lecture, those plots were awesome!
@qiguosun129
@qiguosun129 8 ай бұрын
Dr.Brunton's lecture just like art.
@DeonMitton
@DeonMitton 3 жыл бұрын
That trick was very clever... I bet people were thinking hard about that one !
@apostoloskountouris5144
@apostoloskountouris5144 4 жыл бұрын
Hi ambidextrous mirror magician Steve! Your videos are outstanding and you are a real teacher! However I must say that you are a very sneaky individual for doing this inverse writing FFT (3 letters) in the beginning making this surprised look and then starting all over! Very sneaky indeed! cheers!
@HassanKhan-cs8ho
@HassanKhan-cs8ho 4 жыл бұрын
This video lecture series by you have been a life changing experience for me. you have truly demystified on how to go from complex mathematical concept to coding it and then applying it. the elegance with which you implement the algorithm in code is really motivating for me to apply it myself and test under different applications. Thank you sir and i hope you keep us mesmerized further with your future lectures.
@Eigensteve
@Eigensteve 4 жыл бұрын
Thank you so much!
@alialavib
@alialavib 4 жыл бұрын
Great job posting videos amid all this
@stepanshcherbinin7409
@stepanshcherbinin7409 3 жыл бұрын
It is a great pleasure to watch this lection. Thanks!
@ismaelpour
@ismaelpour 4 жыл бұрын
Thank you, Thank you, Thank you. Truly life-changing ✌
@dypoet
@dypoet 4 жыл бұрын
I have been thinking Steve must been writing the text left to right and flipped the video so that we won't see the text opposite. But at the beginning he wrote the text from right to left accidentally. Does this means he has been writing/drawing in the opposite way all the time?
@dericknganyut.3795
@dericknganyut.3795 3 жыл бұрын
exactly my thoughts. If he has been writing/drawing in the opposite way all this while, then that is even more mind-blowing :)
@psylonmusic5264
@psylonmusic5264 3 жыл бұрын
isn't it just a little joke to fool us ?
@eCabrolify
@eCabrolify 3 жыл бұрын
@@psylonmusic5264 I think so, yes. Director's cut :)
@danielprol1115
@danielprol1115 3 жыл бұрын
In older videos you can watch some of his university lectures. He is left handed, so this video is clearly mirrored.
@yuanhu6031
@yuanhu6031 2 жыл бұрын
Amazing content! Great work!
@pipertripp
@pipertripp 3 жыл бұрын
ha. First time I've ever seen someone write "backwards" on a lightboard. It's such cool tech. Probably makes teaching a lot more engaging for the presenter since they can look at the class the entire time.
@AJ-et3vf
@AJ-et3vf 2 жыл бұрын
Awesome video! Thank you!
@ing.erickosorio2887
@ing.erickosorio2887 4 жыл бұрын
Awesome video
@williamcoggins8336
@williamcoggins8336 8 ай бұрын
Amazing content! Do you think this approach can be use to solve the time - independent Schrodinger eqn?
@LucasDimoveo
@LucasDimoveo 4 жыл бұрын
I'm a stay-at-home parent on the journey of self-learning mathematics until I can go to university. Knowing that I'll be able to approach interesting and difficult applied problems with Python and PDEs is a huge motivator. Thank you for making your material public! Other than a background in Scientific Computing, Calculus and ODEs, and (introductory) Linear Algebra, what else would you recommend as preparation for your book?
@Eigensteve
@Eigensteve 4 жыл бұрын
Thanks so much for your comment! Really glad you like the material and that you are finding it useful! I think the background you mentioned would be a great start. Most of the book relies on linear algebra and ODEs. Taylor series are also good. A good course in statistics and another in optimization will never hurt anything.
@prasanthkumar1770
@prasanthkumar1770 4 жыл бұрын
Hello Steve, awesome lectures. Great work. Can you please let me know how were you able to display the computer screen and preconstructed graphs on the glass board. This would be really helpful to me please guide me. Thank you in advance. 😊
@onlinepradeep
@onlinepradeep 4 жыл бұрын
Great lecture Sir. Please upload a video for solving of non linear partial differential equations like Navier stock equations.
@Eigensteve
@Eigensteve 4 жыл бұрын
Thanks for the suggestion -- it is on my list, but might take a while.
@teddyregrets8384
@teddyregrets8384 2 жыл бұрын
taking a class on this rn with THE Leslie Greengard
@kristiantorres1080
@kristiantorres1080 3 жыл бұрын
Amazing video! Why is a 2*pi multiplying de fft in the kappa calculation?
@TURALOWEN
@TURALOWEN 4 жыл бұрын
Dr. Brunton, I have learned a lot from you in the last couple of years by watching your videos. Thank you so much! I have a question on the Python code for solving PDEs using FFT. In the notebook of solving heat equation with FFT, it says that 'odeint' does not play well with complex numbers, and that is why you extended uhat that vector into real and imaginary parts. But in the 'Burgers' code, you actually use np.fft.fft() and np.fft.ifft() within the RHS function, and odeint still works. Why would odeint work in one scenario but not in another when both have complex numbers in them? I tried to add few other terms such as dispersion (u_xxx), and I get results that do not make sense (I should have energy preserved but code gives me 0's after one-time step). In particular, whenever I try (1j) * (kappa**3)*uhat for the Fourier transform of u_xxx, it seems that odeint fails. Could you please help me understand what is going on? Thank you. Tural Sadigov
@CHAMPION-1-Winner
@CHAMPION-1-Winner Күн бұрын
The 🐐 PERIOD!
@funkygenesis
@funkygenesis 3 жыл бұрын
So could anybody tell me what advantage does this algorithm offer over contemporary methods (e.g. finite difference etc. etc.)? Thanks!
@thiernomamadoubalde686
@thiernomamadoubalde686 3 жыл бұрын
very interesting course. Could we have a PDF version?
@Rudolf-ul1zh
@Rudolf-ul1zh Жыл бұрын
What is the advantage of integrating in the frequency domain if we could also just integrate the heat equation in the space domain?
@ashutoshsingh-et7vm
@ashutoshsingh-et7vm 2 жыл бұрын
Hello Dr. Burton thank you for all theses content. Cant we solve navierstokes equation from this approach and this may be better than discretization of diff eq and way faster than it. But still ITS more famous and used mostly by every commercial package
@hemanthHK45
@hemanthHK45 4 жыл бұрын
The presentation was excellent.... Good Explanation.... What about PDE solving in OpenFOAM Simulation?
@Eigensteve
@Eigensteve 4 жыл бұрын
Thanks! There are absolutely lots of other good environments to solve complex PDEs with non-trivial boundary conditions. OpenFOAM is a really cool open platform for fluids simulations.
@navsquid32
@navsquid32 3 жыл бұрын
Anyone have any idea what integrator odeint uses? Documentation says it uses the LSODA algo from FORTRAN, but I couldn't an overview anywhere. I programmed a 4th-order Runge-Kutta integrator to solve this system, and needed a time-step of 1 millisecond in order for the solution to be stable. Obviously here the time step of 0.1 seconds is sufficient for odeint, and it's boggling my mind.
@eduardofontanalazzari9498
@eduardofontanalazzari9498 3 жыл бұрын
Professor Brunton, thank you for the awesome lecture! Besides initial conditions, is there anyway to impose boundary conditions in this problem? For example, if there was a heat source in x = -L/2, how to describe it in the algorithm? Thank you a lot again.
@federicogasparv
@federicogasparv 3 жыл бұрын
There is a boundary condition. I cite his book: When solving this PDE using the FFT, we are implicitly assuming that the solution domain is periodic, so that the right and left boundaries are identified and the domain forms a ring. However, if the domain is large enough, then the effect of the boundaries is small.
@hubstrangers3450
@hubstrangers3450 4 жыл бұрын
Thank you for the content, just a simple query, is there a git repos, or just have use the book?
@Eigensteve
@Eigensteve 4 жыл бұрын
Everything is at: github.com/dynamicslab/databook_python
@shahul3464
@shahul3464 2 жыл бұрын
I am a bit confused. to solve a PDE consisting of second order derivative in space, should have two boundary conditions specified. What are the boundary conditions assumed here? any help? thanks in advance.
@ouni127
@ouni127 8 ай бұрын
Does anyone know what magic this blackboard has? Can it automatically mirror the words written by the teacher, or does the teacher need to judge the writing method of the mirror when writing, which may be a bit too difficult.
@jakubmosinski6383
@jakubmosinski6383 4 жыл бұрын
Thank you for the series. By your mistake at 0:26 I acknowledged that you write from right to left to counter the mirror effect! Wouldn't it be easier for you to write normally and then just flip the video vertically? Or you just enjoy the mental exercise ;)
@fnegnilr
@fnegnilr 3 жыл бұрын
Magic is created through misdirection.....
@cunningham.s_law
@cunningham.s_law 4 жыл бұрын
any uses for the z transform?
@devargyachakraborty9068
@devargyachakraborty9068 3 жыл бұрын
Can any body tell me the line after the odient command is used. I am not getting it
@randomness2622
@randomness2622 3 жыл бұрын
Joke's on you, I was watching from the back of my screen when you started 😊
@Fonzie2909
@Fonzie2909 3 жыл бұрын
Is the Jupyter script available online?
@keeperofthelight9681
@keeperofthelight9681 Жыл бұрын
How to do this on 2D surface.
@jdsahr
@jdsahr Жыл бұрын
Nice presentation. But all real scientists know that n starts at 0 and goes to N-1. When we meet our Maker, those who use Matlab/FORTRAN array indexing will be severely frowned at.
@bgaskin
@bgaskin 4 жыл бұрын
Oh, partial differential equations. I see :)
@sciaeil4917
@sciaeil4917 3 жыл бұрын
Steve "EigenSteve" Brunton
@HakanTheUltimateHoca
@HakanTheUltimateHoca 2 жыл бұрын
0:25 what
@biswarajpalit
@biswarajpalit 2 жыл бұрын
where can I find the python codes ?
@kunvin
@kunvin 29 күн бұрын
On the screen!
@likestomeasurestuff3554
@likestomeasurestuff3554 2 жыл бұрын
ok wow thats interesting
@robbiewilliamson9783
@robbiewilliamson9783 2 ай бұрын
I love you
@AkamiChannel
@AkamiChannel 7 ай бұрын
No link to a git repo 😭😭😭 Are we just monkeys that have to type everything out? And then make a typo and spend an hour troubleshooting? Then realize the problem is that we are using a newer version of python? Is that what you wish of us?
@shakirullah9434
@shakirullah9434 3 жыл бұрын
ODE convert to PDE is posibal.
@PaulKorir
@PaulKorir 6 ай бұрын
Did you just fake that you can write in reverse?!? 😂😂😂 I’m curious how many people noticed that.
Solving PDEs with the FFT, Part 2 [Matlab]
16:09
Steve Brunton
Рет қаралды 16 М.
Solving PDEs with the FFT, Part 2 [Python]
15:23
Steve Brunton
Рет қаралды 17 М.
Каха ограбил банк
01:00
К-Media
Рет қаралды 10 МЛН
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 6 МЛН
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 21 МЛН
Denoising Data with FFT [Python]
10:03
Steve Brunton
Рет қаралды 168 М.
Plotting the Fourier Transform in Python (DFT/FFT)
10:46
Signal Processing with Paul
Рет қаралды 16 М.
The Laplace Transform: A Generalized Fourier Transform
16:28
Steve Brunton
Рет қаралды 292 М.
Laplace Transforms and Differential Equations
18:11
Steve Brunton
Рет қаралды 43 М.
Extract Musical Notes from Audio in Python with FFT
10:26
Jeff Heaton
Рет қаралды 21 М.
Solving PDEs with the FFT [Matlab]
16:23
Steve Brunton
Рет қаралды 31 М.
The Math Behind Fourier Transforms & Music
3:01
Amy Liu
Рет қаралды 26 М.
What is a Discrete Fourier Transform? | Week 14 | MIT 18.S191 Fall 2020 | Grant Sanderson
34:48
Understanding the Discrete Fourier Transform and the FFT
19:20
Ждёшь обновление IOS 18? #ios #ios18 #айоэс #apple #iphone #айфон
0:57
Lid hologram 3d
0:32
LEDG
Рет қаралды 9 МЛН
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,2 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,2 МЛН