This video shows how to simulate the motion of a pendulum in VPython. The pendulum is one of the simplest systems in physics which consists of a bob, string and a pivot. The pendulum oscillates under the effect of gravity when it is disturbed from the equilibrium position. The simulate can be understood by anyone who has basic knowledge of physics, basic programming knowledge will be helpful.
You can read the detailed article about this simulation at
http://techforcurious.website/simulat...
You can get the code here
http://www.glowscript.org/#/user/tech...
Correction: There is a mistake in the convention of coordinates. The y coordinate of bob should be defined as Pivot.y-lcos(theta) rather than just HE because E is not located at origin and y of bob should be measured from the origin. Similarly cos(theta) = (Pivot.y-bob.y)/l. Now, the simulation is running fine.
Follow us on:
Facebook: / techforcurious
Twitter: / techforcurious
Website: http://techforcurious.website/
On this page of the site you can watch the video online Simulation of Pendulum: VPython Tutorial 3 (Visual Python) with a duration of hours minute second in good quality, which was uploaded by the user Tech for curious 06 October 2017, share the link with friends and acquaintances, this video has already been watched 12,068 times on youtube and it was liked by 114 viewers. Enjoy your viewing!