r/Python • gitlab.com/MisterBiggs • Jul 26 '19

Double Pendulum made with Processing.py

https://gfycat.com/feistycompetentgarpike
2.0k Upvotes

89 comments sorted by

View all comments

Show parent comments

4

u/MisterBlggs gitlab.com/MisterBiggs Jul 26 '19

I'm probably not the best person to answer it, but one important thing to note about this particular simulation is that there's no loss of energy.

If you look when it goes higher than the starting position the radius is smaller than when it started. So, the first ball didn't swing as high but the second was able to flip around since it has some of the energy that the first ball originally had.

2

u/[deleted] Jul 27 '19 edited Jul 27 '19

[removed] — view removed comment

1

u/porcelain_robots Jul 29 '19

My understanding is that energy can be conserved if it's a smaller radius for the centripetal motion.

1

u/[deleted] Jul 29 '19

[removed] — view removed comment

1

u/porcelain_robots Jul 30 '19

Yeah, you're right. There's no way they can both swing higher than their original point at the same time.