You are on page 1of 2

ELASTIC PENDULUM SIMULATION

Goal:
Here we will try to simulate the motion of Elastic Pendulum with Euler’s Method. We
will first figure out the equations of motion and then will code them.

Procedure:
Replace the simple pendulum’s inextensible rod with a spring of spring
constant 𝛾 .
User will have to give input of 𝛾, 𝑙, 𝑥(0), 𝑦(0), 𝑥 ′ (0), 𝑦 ′ (0) where 𝑙 is the
natural length of the spring, 𝑥, 𝑦 are the displacement in the x and y
direction respectively and the derivatives of them have the usual notation of
𝑥 ′ , 𝑦 ′ which indicate velocity in the 𝑥, 𝑦 direction. Then, simulate the motion
of the pendulum numerically with the given value.

EQUATIONS OF MOTION:
The tension in the spring is given by -
𝑇 = 𝛾√𝑥 2 + 𝑦 2 − 𝑙

which follows from the Spring’s Force Equation as the extension in the
spring at any given time will be given by -
Δ𝑥 = √𝑥 2 + 𝑦 2 − 𝑙

Thus, the force is given by -


𝑇 = 𝛾 ∗ Δ𝑥

𝑥
𝑇. ( )
√𝑥 2 + 𝑦2
𝑎𝑥 = −
𝑚

𝑥
𝑇. ( )
√𝑥 2 + 𝑦 2 𝑔
𝑎𝑦 = − −
𝑚 𝑚
The above expressions are for acceleration in the 𝑥 and 𝑦 direction
respectively.
𝑣𝑥 = 𝑣0 + 𝑎𝑥 ∗ 𝛿𝑡

𝑣𝑦 = 𝑣0 + 𝑎𝑦 ∗ 𝛿𝑡

The above expressions are for velocity, similarly for displacement we get
the following expressions -
𝑥 = 𝑥0 + 𝑣𝑥 ∗ 𝛿𝑡

𝑦 = 𝑦0 + 𝑣𝑦 ∗ 𝛿𝑡

These are the complete set of equations needed to use Euler Method to
simulate the pendulum’s motion.

Proposed by -
2106145 – Tarek Ahmed
2106146 – Mahdi Al Muttakin

You might also like