[关闭]
@SuperMan 2016-06-14T04:51:40.000000Z 字数 1626 阅读 1047

计算物理第八次作业

作者:夏海峰 学号:2013301020094

摘要

本文主要研究了单摆的运动。并比较不同算法对单摆模拟计算的精确度的影响。

理论基础:

  • 受力情况:
  • 运动学方程:

    解析解:

  • 有此引出数值计算方法:
    Euler方法:


  • 由以上两式可得出Euler-Cromer方法的具体数值计算方法:



    (1)作业3.7 和3.8题
    (2)对Euler法和Euler——Cromer法的比较

正文

  • Euler和Euler-Cromer法的比较
    程序
    当dt=0.01时
    Photo1
    当dt=0.05时
    Photo2
    比较以上两图可知:
    (1)Euler-Cromer法比Euler法计算的到的解更稳定。
    (2)Euler法解的稳定性取决于时间间隔dt的选取。
  • 3.7 Numerically investigate the linear forced pendulum with friction of(1).Show numerically the existence Of the resonance, and confirm t he dependence of the resonant amplitude on the driving angular frequency ,and on the friction parameter q.

    (1)计算方法
    Euler法:



    程序:Pendulum_Euler.py
    Euler-Cromer法



    程序:Pendulum_Euler_Cromer.py
  • 计算结果:
    Photo
  • 3.8 In the nonlinear pendulum of (2),use the Euler-Cromer or another suitable method to investigate the relationship between the arnplitude and period nurmerically. Can you give an intllltlve argument supporting your results ?

    程序
    计算结果如图所示:
    Photo3

结论

(1)Euler—Cromer方法比Euler方法更加稳定。
(2)单摆运动的振幅变化符合三角函数变化规律。

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