[关闭]
@FangYing 2016-04-18T00:34:19.000000Z 字数 2722 阅读 1040

Chapter 3 problem 3.8

python.assignment


name: Li FangYing
number: 2013301020027

Abstract

Introduction

The studying of simple pendulum has a long history. In 1583, Galileo discovered the isochronism of a pendulum when he was 17, that is , the period of a pendulum is independent of its amplitude. This great discovery was applied to pendulum clocks, which still exist in our lives after hundreds of years.
one kind of pendulum clock
But in 1656, Huygens noticed that the isochronism principle has a limit. The initial angle must small enough, no more than for example, to make the approximation correct. What's about larger
Next, advantages of both analytic approach and numerical approach will be taken to answer this question.

Analytical Approach

The ODE of simple pendulum without approximation can be write as:
此处输入图片的描述
We can set the angular velocity as ,and the equation turns to:
此处输入图片的描述
Transform it:
此处输入图片的描述
Integrate it:
此处输入图片的描述
If we set innitial value and , we get:
此处输入图片的描述
The can be expressed as:
此处输入图片的描述
So finally we get the analytical solution of this ODE:
此处输入图片的描述

Numerical Approach

The ODE equation of nonlinear pendulum is

can be transfer to two one-order ODEs:
And the equation for numerical calculation are:

where we use Euler Cromer method. It has a minor change compared to Euler method, which will accumulate deviations towards one direction for problems involving oscillatory motion, this method can conserve energy over each complete period of the motion. So, it's a much better choice.

Data analysis

Set pendulum length as , and intial angular speed as .
When is less than , the linear and nonlinear pendulum has minor difference:
此处输入图片的描述
That is to say, the equation is proper.
But when we raise the initial angle to , thing becomes a little interesting:
此处输入图片的描述
When we change the intial angle to :
此处输入图片的描述

此处输入图片的描述

As the initial agnle raises, the period of nonlinear pendulum grows larger and larger, and when it arounds , the period becomes penculiar:
此处输入图片的描述
When we raise the angle a little more, something surprising happen:
此处输入图片的描述
the turning point is between to , just makes big difference
Notice, the initial angular speed is now, if we change it, the turning point will change,too. For example, if the initial angular speed is , the turning point will not appear:
When :
此处输入图片的描述

If we plot the relation of period and amplitude, it will be:
此处输入图片的描述

Conclusion

Analytical solution of a nonlinear pendulum is given as well as numerical approach.
The figures are plotted to compare the period of linear and nonlinear pendulum at different initial angle.
The turning point of the paranoral phenomena is fixed at a accuracy of . Moreover, the variation of the turning point by different initial angular speed is observed.
And the figure shows the period of nonlinear pendulum is raising when amplitude increases, and their relation is nonlinear.

program codes

pendulum.py

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注