You are browsing as a guest. Sign up (or log in) to start making projects!

Pendulum physics

  • 2 Devlogs
  • 9 Total hours

Simulating a simple pendulum with the ability to change Vo, Thetao and R/l. Then graphing the radians to seconds using matplotlib to give a nice animation.

Open comments for this post

1h 0m 38s logged

Fixed an error with the length of R not affecting the actual simulation.

Fixed an error with the length of R not affecting the actual simulation.

Replying to @joebracken

0
1
Ship #1

I made a simulation of a simple pendulum in python. I used newtonian physics and allow for initial velocity, initial radians and radius to be changed before simulation starts. I plot the pendulum on a matplotlib graph. This project was very hard as it was my first main project on python and I had to figure out the alpha = -g/lsintheta line. This was done by learning circular motion and simple pendulum physics; getting the relationship of tangential acceleration to angular acceleration and combining this with the -mgsintheta = ma (newtonian) to get a = -g/lsintheta. This was the main part of the project, however managing theta continued to be a big problem throughout the project. I did enjoy this and I will probably be sticking with python for a while now.

  • 2 devlogs
  • 9h
Try project → See source code →
Open comments for this post

8h 28m 41s logged

this may be my first devlog as i did not know of them, but here is the completed code

this may be my first devlog as i did not know of them, but here is the completed code

Replying to @joebracken

0
2

Followers

Loading…