2021年3月20日星期六

Harmonically Driven Pendulum Using Verlet Method

I am having confusion with regards to writing a working source code for my problem. The problem is shown below for reference.

Consider a pendulum with harmonically driven pivot. The equation of motion is $$\frac{d^2\theta}{dt^2}=-\frac{g+a_d(t)}{L}\sin\theta$$ where $a_d(t)=A_0\sin(2\pi t/T_d)$ is the time-varying acceleration of the pivot. Write a program that simulate this system. Be sure to use a time step approximation to the driving period, $T_d$.

It is important to note here that the source code should be in Python and I don't have any idea as to how to incorporate the presence of the time-varying acceleration of the pivot in my code. Do you guys have any idea? Any help would be greatly appreciated. Thank you!

https://stackoverflow.com/questions/66727958/harmonically-driven-pendulum-using-verlet-method March 21, 2021 at 09:07AM

没有评论:

发表评论