计算物理第7次作业

Name: 贺一珺
Student Number: 2014302290002

Question

  • 3.12 In constructing the Poincare section we plotted only at times that were in phase with the drive forse; that is, at times t=2npi/frequency of force, where n is an integer. At these values of t the driving force passed through zero. However, we could just as easily have chosen to make the plot at times corresponding to a maximum of the drive force, or at times pi/4 out-of-phase with this force, etc. Construct the Poincare sections for these cases and compare them with Figure 3.9.

  • 3.13 Write a progrem to calculate and compare the behavior of two, nearly identical pendulums. Use it to calculate the divergence of two nearby trajectorys in the chaotic regime, and make a qualitative estimate of the corresponding Lyapunov exponent from the slope of a plot of log\theta as a function of t.

  • 3.14 Repeat the previous problem, but give the two pendulums slightly different damping factors. How does the value of the Lyapunov exponent compare with that found in Fighre 3.7?

Abstract

It is easy to list the nonlinear diffrential equation of this question. But it is hard to get the exact solution analytically. Thus I use Euler-Cromer method instead of Euler method which we learned in previous chapter to solve this equation numberically. I design a progrem which allow one to put in initial conditions including initial angle, initial angular speed, friction coefficient, the magnificance of force and the frequency of force. It can be used to calculate the angle and the difference of angle of two systems with different initial conditions. It is quite a bit interesting to observe the motion of pendulums under different initial conditions. The chaos can also be observed using this programming.
Also, in the phase-space graph,I will plot angle versus angular velocity only at times that are in phase with the driving force which is powerful when analyse the system.

Background

  • Pendulum


    EastHanSeismograph

    A pendulum is a weight suspended from a pivot so that it can swing freely. One of the earliest known uses of a pendulum was a 1st-century seismometer device of Han Dynasty Chinese scientist Zhang Heng. The equations of motion of a pendulum can be expressed as:


In this project, Euler-Cromer Method is used. Thus it can be deduced that:

  • Chaos theory
    From wikipedia we know that Chaos theory is the field of study in mathematics that studies the behavior of dynamical systems that are highly sensitive to initial conditions—a response popularly referred to as the butterfly effect. Small differences in initial conditions (such as those due to rounding errors in numerical computation) yield widely diverging outcomes for such dynamical systems, rendering long-term prediction impossible in general. This happens even though these systems are deterministic, meaning that their future behavior is fully determined by their initial conditions, with no random elements involved. In other words, the deterministic nature of these systems does not make them predictable. This behavior is known as deterministic chaos, or simply chaos.
    What's more, chaos is also a traditional Chinese term which means the most original state which has no rules and laws. In Chanese mythology, it was Pangu who broke the state of chaos of our universuty, and then the laws of the nature came out "naturely". It's certainly interesting with deep thoughts of metaphysics in it, but it's out of our course.


    盘古

Realization

  1. Creat the class of pendulums and set the initial conditions of the system.
  2. Creat several lists where you can save your datas in.
  3. Define the function to do the calculation and plotting.
  4. Rearrange the progrem so that you can input the initial conditions and the progrem could work out the angle versus time automatically.

Plotting

The gate to the question

Clike here to get code
In this section I want to show you some pictures of forced vibration with damping factor under different magnitude of force and of the state of chaos to introduce you in to the wonderful world of viberation.
I set the damping factor to be 0.5 and the initial angle to be 0.2rad. Also, the frequency of force is 2/3 s^-1. Mgnitude of force are shown in picture:

受迫振动

It can be easily observed that the state of chaos appears in the 3rd line when the magnitude of force is set to be 1.2N.
Details are showed in the following picture:

混沌

Since we have gain the knowledge of the basic graphs of forced viberance in former pictures, let's begin to solve the questions _

Solutions for questions

  • 3.12
    Clike here to get code
    I set the damping factor to be 0.5 and initial angle to be 0.2 rad. Also, the magnitude of force is 1.2N and the frequency of force is 2/3 s^-1.
    The time condition has been marked on the picture.
    The picture is as following:
    phase space

    And then, I set four different time conditions and ploted them in the following picture:
phase space

Clike here to get the code of the following solutions

  • 3.13
    To get the chaotic regime, we set the damping factor to be 0.5 ,the magnitude of force to be 1.2N and the frequency of force to be 2/3 s^-1.
    I plotted the picture which set initial angle to be 0.0000rad and 0.0001rad respectively.
    The picture of angle versus time is as following:
Angle

The difference of angle under two initial conditions versus time was plotted also:

Difference of angle
  • 3.14
    I modified the damping conditions in the last question slightly and plotted the angle under different damping condition:
    Modify the damping factor to q=0.49:
    The angle versus time is:


    Angle

    The difference of angle is:

Difference of angle

Modify the damping factor to q=0.51:
The angle versus time is:

Angle

The difference of angle is:

Difference of angle

To work deeper, I also do the contrust of the same initial angle(0rad) under different damping factors, here is the results:

The picture of angle versus time is:

Angle

The difference of angle when q1=0.5 and q2=0.49 is:

Difference of angle

The difference of angle when q1=0.5 and q2=0.49 is:

Difference of angle

Acknowledge

  • Prof. Cai
  • Wikipedia

How to contact me

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 203,362评论 5 477
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 85,330评论 2 381
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 150,247评论 0 337
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,560评论 1 273
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,580评论 5 365
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,569评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,929评论 3 395
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,587评论 0 258
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,840评论 1 297
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,596评论 2 321
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,678评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,366评论 4 318
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,945评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,929评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,165评论 1 259
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 43,271评论 2 349
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,403评论 2 342

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,355评论 0 23
  • 文/MY麦子 01 昨天在网上看到了这样一句话“我们的关系,始于添加好友,结束于删除好友。” 看到这句话的时候,无...
    MY麦子阅读 2,564评论 81 105
  • 用了两个下午,看完了熊大知乎几乎所有的回答,“几乎”是因为,有极个别完全看不懂并且没有任何兴趣的没认真看,甚至没点...
    FASG_一只龙虾阅读 366评论 0 0
  • 我们以爱之名打骂孩子,我们丧失了理智,那明明是我们的情绪无法自控,还美其名曰,棍棒之下成才的谬论出来。 我们常常看...
    蓝色雪雪阅读 989评论 0 0
  • 作为一个青涩不再,成熟未满的姑娘,身边总会有人说,“一个小姑娘,干得好不如嫁得好。”真的是这样吗?作为一个独立的人...
    颜小夕阅读 464评论 2 3