Animating the Double Pendulum (2DOF) - Part 1 of 3 - Solving the Equations of Motion

  Рет қаралды 11,644

Good Vibrations with Freeball

Good Vibrations with Freeball

Күн бұрын

Пікірлер: 21
@calebhyde2783
@calebhyde2783 4 жыл бұрын
Hi, thanks for these amazing tutorials. Seeing the full derivation through to a Python and pygame implementation is great. I've been following along today. When you convert the eqn's of motion to matrix form (starting at 1:28), I believe you left out the exponent on theta_2_dot on the right hand side (f1). You have it squared in the number eqn 1 above, and then when you get to the code, you have it right again, with "a2d*a2d" in the full line: f1 = -m2*l2*a2d*a2d*sin(a1-a2) - (m1+m2)*g*sin(a1). Thanks!
@Freeball99
@Freeball99 4 жыл бұрын
Yes, you're correct. The first equation, right-hand side I'm missing a squared on the θ2_dot. Thanks for catching this. The rest is correct.
@exanjohndelafuente.carpio3738
@exanjohndelafuente.carpio3738 3 жыл бұрын
Good Morning Sir where did you get the two equations presented in 0:26?
@Freeball99
@Freeball99 3 жыл бұрын
This was from a previous video. The link to it is in the video description.
@DD-zv3yc
@DD-zv3yc 4 жыл бұрын
Hi, I have a proble with your solution, because of the way you put the reference system, If I put theta1 and theta2 equal to pi / 2 and the two angular velocities equal to zero, then the energy will be equal to zero, and it is assumed that the system would not have to oscillate
@draganostojic6297
@draganostojic6297 4 жыл бұрын
Great, keep a great work!
@eduardodossantos3099
@eduardodossantos3099 4 жыл бұрын
Great keep going
@choguerrero
@choguerrero 3 жыл бұрын
Hi Andy! Thank you so much for these videos! they are very useful indeed. I what to ask a very simple shallow question, how to change the setting of text appearance? I like so much the contrast you use in your scripts. I am using Spyder, I managed to change so far some of the colours of part of the next, but I have not found how to change the colour of the equal sign "=", and the second keywords in the commands i.e. array or append in np.array, Y.append. Thanks!
@Freeball99
@Freeball99 3 жыл бұрын
I believe you are referring to the syntax highlighting for Python. This is a feature of the text editor that I am using (Sublime Text). I believe this is the default theme although it does allow one to use various different themes which can be installed. Most text editors should offer varieties of this.
@obasho856
@obasho856 2 жыл бұрын
Hi, can you share wich ide you are coding on?
@Andy-hy8px
@Andy-hy8px 2 жыл бұрын
I'm using Sublime Text. It's just a text editor and not an IDE.
@obasho856
@obasho856 2 жыл бұрын
@@Andy-hy8px for animation?
@Andy-hy8px
@Andy-hy8px 2 жыл бұрын
@@obasho856 I am using the Pygame library for animation and running the code within Terminal on my Mac.
@obasho856
@obasho856 2 жыл бұрын
@@Andy-hy8px okk sir, thank you
@engdoretto
@engdoretto 4 жыл бұрын
Awesome!
@dylaninho2500
@dylaninho2500 4 жыл бұрын
Hey there, when you used f =ma at the beginning, how did you know that the right part of the equation was a force? Also do you recommend any resources to learn the method used such as state space form? Thank you!
@Freeball99
@Freeball99 4 жыл бұрын
This is because the equations of motion represent a balance of forces. Even though in this case we derived the equations of motion using the Lagrangian approach instead of Newton’s Law, the resulting equations are really a force balance, F=ma, where ma can be considered to be the inertial load - which is a force. The truth is that, in this case, the right hand side are not really forces, they are moments and, in fact, the equations were then divided by mass and length, but they were derived as forces. But for the purpose of solving the equation, it’s fine to assume the structure that I have. With regards to state-space form, I have other videos where I explained this more thoroughly. Take a look at: kzbin.info/www/bejne/m2LUZal6Z7Cdpqc
@dylaninho2500
@dylaninho2500 4 жыл бұрын
@@Freeball99 Thank you, Thank you, On the graph I have generated, the angle of theta2 is going above 8 which is too large, do you know why this is?
@abdullahcakan
@abdullahcakan 4 жыл бұрын
Hi, excellent videos.. What software do you use while writting to screen ? Do you use a graphical tablet?
@Freeball99
@Freeball99 4 жыл бұрын
I’m using an iPad Pro 13-inch with Apple Pencil. The app is called “Paper” by WeTransfer.
@Vxt943
@Vxt943 4 жыл бұрын
Great
Animating the Double Pendulum (2DOF) - Part 2 of 3 - Creating an Animation
18:07
Good Vibrations with Freeball
Рет қаралды 4,9 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Introduction To The Lagrange Multiplier Method
21:25
Good Vibrations with Freeball
Рет қаралды 23 М.
If you're ambitious but lazy, please watch this video...
12:57
Mark Tilbury
Рет қаралды 205 М.
Coding Challenge 93: Double Pendulum
31:11
The Coding Train
Рет қаралды 922 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
The Brachistochrone Problem
20:44
Good Vibrations with Freeball
Рет қаралды 67 М.
Смысл интеграла и производной. В помощь студенту
15:54
Equations of Motion for the Double Pendulum (2DOF) Using Lagrange's Equations
20:33
Good Vibrations with Freeball
Рет қаралды 177 М.
Animating the Double Pendulum (2DOF) - Part 3 of 3 - Putting It All Together
14:07
Good Vibrations with Freeball
Рет қаралды 3,4 М.