How to Solve Coupled Differential Equations ODEs in Python

  Рет қаралды 50,383

Vincent Stevenson

Vincent Stevenson

3 жыл бұрын

I walk through how to use the scipy odeint method within Python to solve coupled Ordinary Differential Equations (ODEs) and plot the results using matplotlib. Link to Python script created in this video: github.com/vastevenson/vs-cou...
Link to the Google Doc containing the problem statement: docs.google.com/document/d/1I...
Content adapted from APMonitor.com: • Simulate Coupled Diffe...

Пікірлер: 50
@dotpio8246
@dotpio8246 Жыл бұрын
This was so helpful. Straightforward, straight to the point, and really easy to understand. Thank you Vincent!!
@joaocruz9048
@joaocruz9048 2 жыл бұрын
Thank you, Vicent! I was with difficult on working with more than one initial conditions and this video is really helpful.
@ospectrum
@ospectrum 2 жыл бұрын
Thank you so much, I am currently working on a paper of population dynamics, and your video literally saved me a ton of time!
@4amoats
@4amoats Жыл бұрын
hey, just checking up on you
@ammarshahzad9627
@ammarshahzad9627 Жыл бұрын
Hello mate, I was searching R_2_score and found your channel. I saw your multi disciplinary videos and I am amazed by your content. You have mastery over alot of fields and have the gift of teaching. Subscribed instantly, hope you will gain the recognition you deserve.
@IKMCDANIEL
@IKMCDANIEL 2 жыл бұрын
Vincent - you have real talent. You explained a tremendous amount of technical content in just 10min. Very well done and very helpful. Thank you so much for creating this content.
@VincentStevenson
@VincentStevenson 2 жыл бұрын
Thank you for your kind words, I appreciate it!
@rajanalexander4949
@rajanalexander4949 Жыл бұрын
Concise and useful; thank you! I would just comment/say that we're assigning each _vector element_ to a _variable_ @ 3:03. The ODEs themselves are represented by the dXdt assignments.
@schrodingergaming7
@schrodingergaming7 Жыл бұрын
That's a very good solution in a small time frame! Great job!
@chasefoxen9393
@chasefoxen9393 4 ай бұрын
Fantastic explanation, this helped me a ton with my numerical analysis homework. Straight to the point and clear!
@michaelhanson5336
@michaelhanson5336 3 жыл бұрын
Very helpful. Thank you!
@pineapple5923
@pineapple5923 Жыл бұрын
Thank you so much. Better than my professor by a mile!
@animeshsinghal3405
@animeshsinghal3405 2 жыл бұрын
Thanks a lot. You got me started with this very quickly.
@yogeshwarthakare8356
@yogeshwarthakare8356 11 ай бұрын
Hi, this was so useful. Would like to see more such videos on solving kinetic model using Python
@raulfuerte5512
@raulfuerte5512 2 жыл бұрын
Hi Vincent. This was an amazing demo of using python's IVP solver. For a school project I was wondering if you could make a video showing how to use python to solve BVPs with a combination of Neumann and Dirichlet boundary conditions.
@hasatamashi
@hasatamashi 2 жыл бұрын
Great video, great voice, really helpful
@fannumber122
@fannumber122 2 жыл бұрын
Perfect explanation thank very much.
@matts2565
@matts2565 4 ай бұрын
This video saved my life, thanks boss!!
@zishanshaikh3029
@zishanshaikh3029 2 жыл бұрын
Very helpful , mate , cheers !!
@user-uu4wg6xq9l
@user-uu4wg6xq9l Жыл бұрын
Thank you for this video, it was extremely well explained. It was incredibly useful to me.
@ibrahimaniakh4447
@ibrahimaniakh4447 2 жыл бұрын
JUST EXCELLENTLY EXPLAINED. EXCELLENT, EXCELLENT, EXCELLENT. I’m immediately subscribing bruh.
@omurwaAfrica
@omurwaAfrica 3 жыл бұрын
This is helpful. Thank you.
@saswatipal7280
@saswatipal7280 2 жыл бұрын
Awesome! thank you. you saved me a big time.
@XboxGamersAndMore
@XboxGamersAndMore 2 жыл бұрын
Great vid, very helpful, thank you
@thickeyebrows1981
@thickeyebrows1981 Жыл бұрын
Wonderful video!
@edholanda5897
@edholanda5897 3 жыл бұрын
Professor how would I solve this system of first order edos numerically by plotting the graph for the different values ​​of (n). the derivatives are in relation to ha (r). a'/r = -e^2*v^2*(g^2 - 1) g' = - a*g/r given the boundary conditions a(0) = n a(inf)=0 g(0) = 0 g(inf)=1 o (n) varies from 1 to 8. where (e)=0.5 and (v)=1 are constant. please give a helping hand there, I looked for and did not find any problems like this on the python website. I'm from Brazil.
@user-ng2jh9hv1u
@user-ng2jh9hv1u 8 ай бұрын
Hi Vincent, thank you for such a nice video, it's extremely useful. I was wondering if you can make a video to calculate the Lyapunov exponents of coupled nonlinear ODEs. Thank you
@h.a.3030
@h.a.3030 2 жыл бұрын
First thank you for this simple well explained video,i'm actually working on the same model dynamics, i am wondering if you can help me for example to see the evolution of just one variable with respect to a changing parameter, i tried to use a loops, but i can't get to the results I'm expecting! TIA for any help.
@carolina2066
@carolina2066 2 жыл бұрын
this is very nice and helpful thanks a lot :))
@mohamedvadhelebnououmar8779
@mohamedvadhelebnououmar8779 2 жыл бұрын
Thanks, very helpful
@Onlinefizik
@Onlinefizik Ай бұрын
Very good,Thanks
@Novoselova.Polina
@Novoselova.Polina 7 ай бұрын
thank you! really helpful
@anandamoymukhopadhyay5158
@anandamoymukhopadhyay5158 4 ай бұрын
Vincent you have explained the code nicely within a short span of time. If the above system contains some arbitrary parameters, then please explain how to deal with it by the help of continuation method? Waiting for your reply.
@Elpidio1000
@Elpidio1000 Жыл бұрын
Thank you so much dude.
@minhtu5059
@minhtu5059 2 жыл бұрын
Thank you so much!!!
@rodrigocesarraimundo3316
@rodrigocesarraimundo3316 7 ай бұрын
Amazing!
@jowadulkader9006
@jowadulkader9006 2 жыл бұрын
thank you sir
@ponho9715
@ponho9715 3 жыл бұрын
Thanks :D
@mehrdadkazemi3969
@mehrdadkazemi3969 2 жыл бұрын
Thank you so much
@MsJennifervelazquez5
@MsJennifervelazquez5 Жыл бұрын
thanks, you awesome
@shivathapa3934
@shivathapa3934 Жыл бұрын
Hi sir. What if there was a second order derivative in the first equation (d^2A/dt^2)? What modification would be needed in the code?
@analuciavillelaloaiza8930
@analuciavillelaloaiza8930 9 ай бұрын
Kinda late, but you would need to do a substitution to make two first order edos instead of one of second order. Like: u=dA/dt & du/dt=d2A/dt2.
@bryanlay5215
@bryanlay5215 3 жыл бұрын
What if there’s an error saying list object not callable?
@VincentStevenson
@VincentStevenson 3 жыл бұрын
I would double check to make sure when you create the class object, you have the () in place before calling the object after.
@AF-ge4pe
@AF-ge4pe 2 жыл бұрын
what if they are coupled odes but with parameters that im asked to define with runge kutta 4th order
@lonemeertens7021
@lonemeertens7021 8 ай бұрын
Hi Vincent, thank you for this video. I have a follow up question :) What if I have (in one of the equations) a parameter (instead of a constant) that is linked to a algebraic equation that itself is also dependend on this parameter. Can some one help me? Thanks!!
@lordyabo9910
@lordyabo9910 11 ай бұрын
guys I tried to copy his code word for word and run the code, but I got nothing. Can someone give me advice on what should I do. Btw im using pydroid 3
@lunthangify
@lunthangify Жыл бұрын
p = odeint(odes,r0,θ0,ϕ0,x0,z0,t) NameError: name 'r0' is not defined
Solve ODEs in Python: Simple to Complex
34:02
APMonitor.com
Рет қаралды 75 М.
pycse - Solving boundary value problems in Python
22:09
John Kitchin
Рет қаралды 3,8 М.
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 14 МЛН
I Built a Shelter House For myself and Сat🐱📦🏠
00:35
TooTool
Рет қаралды 36 МЛН
В ДЕТСТВЕ СТРОИШЬ ДОМ ПОД СТОЛОМ
00:17
SIDELNIKOVVV
Рет қаралды 4,2 МЛН
TRY NOT TO LAUGH 😂
00:56
Feinxy
Рет қаралды 16 МЛН
Coding a Fourth-Order Runge-Kutta Integrator in Python and Matlab
36:52
How to Solve Differential Equations in PYTHON
23:37
Mr. P Solver
Рет қаралды 96 М.
Visualizing Excel Files Easily With Python
15:53
NeuralNine
Рет қаралды 30 М.
Differential equations, a tourist's guide | DE1
27:16
3Blue1Brown
Рет қаралды 3,9 МЛН
Apple 27" Thunderbolt Display Repair
2:02
Awesome Fun Things
Рет қаралды 20 М.
Ordinary Differential Equations - SymPy Tutorial 10
12:42
TM Quest
Рет қаралды 14 М.
Hydrostatic Pressure Test for Plumbing Inspection Drain Lines
1:06
Vincent Stevenson
Рет қаралды 38
Solving Systems Of Equations Using Sympy And Numpy (Python)
15:23
Andrew Dotson
Рет қаралды 76 М.
But what is a partial differential equation?  | DE2
17:39
3Blue1Brown
Рет қаралды 2,5 МЛН
TOP-18 ФИШЕК iOS 18
17:09
Wylsacom
Рет қаралды 817 М.
🔥Идеальный чехол для iPhone! 📱 #apple #iphone
0:36
Не шарю!
Рет қаралды 1,2 МЛН
Main filter..
0:15
CikoYt
Рет қаралды 7 МЛН
One To Three USB Convert
0:42
Edit Zone 1.8M views
Рет қаралды 441 М.
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 905 М.