Computational Physics Homework 7

1.Abstract

  • EXERCISES

3.13. Write a program to calculate and compare the behavior of two, nearly identical pendulums. Use it to calculate the divergence of two nearby trajectories in the chaotic regime, as in Figure 3.7, and make a qualitative estimate of the corresponding Lyapunov exponent from the slope of a plot of log(Δθ) 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 Figure 3.7?


2.Background

  • Chaos Theory

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. The theory was summarized by Edward Lorenz as:

Chaos: When the present determines the future, but the approximate present does not approximately determine the future.

Double-compound-pendulum
  • Euler-Cromer Method

In mathematics, the semi-implicit Euler method, also called symplectic Euler, semi-explicit Euler, Euler–Cromer, and Newton–St?rmer–Verlet (NSV), is a modification of the Euler method for solving Hamilton's equations, a system of ordinary differential equations that arises in classical mechanics. It is a symplectic integrator and hence it yields better results than the standard Euler method.


3.Main

  • (As usual,In SI, angles in radians)
  • Formulation

In fact, I think there is no necessity to spend extra effort on solving the pendulum problem, because we have already studied it thoroughly from a simple pendulum to pendulum adding dissipation and a driving force. So I will only show the final formula without deriving:

What is new to us is adding the nonlinearity, which transforms the formula into:

  • Algorithm

As the authour of our textbook urges, I'd like to use the Euler-Cormer Method to solve this problem (The Pseudocode for subroutine with it is given.)

  • Thinking

In the course of computational physics, when practicing,I will try my best to insist on two princples of programming in my mind:

  • Simplicity

  • Generality
    So in this program I spare some time to make it possible for users to input initial conditions. (It is easier to input one by one, but more difficult to input altogether in an array.)

  • Results

  1. Firstly, I will show all the figures that have emerged in Section 3.1, 3.2, 3.3 to review what I have learned in class.

  2. Secondly, calculate and compare the behavior of two nearly identical pendulums. In detail, calculate the divergence of two nearby tragectories in chaotic regime.

The Figures are as follows:

**?If you want to enjoy the codes, please click here: **

  • 1. Given different initial angles

?

Initial conditions with different initial angles
Results for Δθ from our comparison of two nearly identical pendulums

?

Initial conditions with different initial angles plus
Results for Δθ from our comparison of two nearly identical pendulums plus
  • 2.Given different damping factors

?

Initial conditions with different damping factors
Results for Δθ from our comparison of two nearly identical pendulums

?

Initial conditions with different initial damping factors plus

Results for Δθ from our comparison of two nearly identical pendulums plus

Pity no curve fitting on them!


4. Conclusion

  • To be on the safe side, I solved problem 3.12:

?Code is the included in the previous file but relevant part is annotated for simplicity

in phase with the drive force
Poincare section
corresponding to a maximum of the drive force
Poincare section
corresponding to a minimum of the drive force
Poincare section
  • Quantative solution: Lyapunov exponent (to be continued...)


5. Acknowlegement

  • Prof. Cai
  • Song Gaygay (Song Fengfeng)
  • Wikipedia
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末智玻,一起剝皮案震驚了整個(gè)濱河市乱陡,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌聪舒,老刑警劉巖甩苛,帶你破解...
    沈念sama閱讀 221,273評(píng)論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件会宪,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡元践,警方通過查閱死者的電腦和手機(jī)韭脊,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,349評(píng)論 3 398
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)单旁,“玉大人沪羔,你說我怎么就攤上這事∩骱悖” “怎么了任内?”我有些...
    開封第一講書人閱讀 167,709評(píng)論 0 360
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)融柬。 經(jīng)常有香客問我死嗦,道長(zhǎng),這世上最難降的妖魔是什么粒氧? 我笑而不...
    開封第一講書人閱讀 59,520評(píng)論 1 296
  • 正文 為了忘掉前任越除,我火速辦了婚禮,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘摘盆。我一直安慰自己翼雀,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 68,515評(píng)論 6 397
  • 文/花漫 我一把揭開白布孩擂。 她就那樣靜靜地躺著狼渊,像睡著了一般。 火紅的嫁衣襯著肌膚如雪类垦。 梳的紋絲不亂的頭發(fā)上狈邑,一...
    開封第一講書人閱讀 52,158評(píng)論 1 308
  • 那天,我揣著相機(jī)與錄音蚤认,去河邊找鬼米苹。 笑死,一個(gè)胖子當(dāng)著我的面吹牛砰琢,可吹牛的內(nèi)容都是我干的蘸嘶。 我是一名探鬼主播,決...
    沈念sama閱讀 40,755評(píng)論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼陪汽,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼训唱!你這毒婦竟也來(lái)了?” 一聲冷哼從身側(cè)響起掩缓,我...
    開封第一講書人閱讀 39,660評(píng)論 0 276
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤雪情,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后你辣,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體巡通,經(jīng)...
    沈念sama閱讀 46,203評(píng)論 1 319
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,287評(píng)論 3 340
  • 正文 我和宋清朗相戀三年舍哄,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了宴凉。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 40,427評(píng)論 1 352
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡表悬,死狀恐怖弥锄,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情蟆沫,我是刑警寧澤籽暇,帶...
    沈念sama閱讀 36,122評(píng)論 5 349
  • 正文 年R本政府宣布,位于F島的核電站饭庞,受9級(jí)特大地震影響戒悠,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜舟山,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,801評(píng)論 3 333
  • 文/蒙蒙 一绸狐、第九天 我趴在偏房一處隱蔽的房頂上張望卤恳。 院中可真熱鬧,春花似錦寒矿、人聲如沸突琳。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,272評(píng)論 0 23
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)拆融。三九已至,卻和暖如春主巍,著一層夾襖步出監(jiān)牢的瞬間冠息,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,393評(píng)論 1 272
  • 我被黑心中介騙來(lái)泰國(guó)打工孕索, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人躏碳。 一個(gè)月前我還...
    沈念sama閱讀 48,808評(píng)論 3 376
  • 正文 我出身青樓搞旭,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國(guó)和親菇绵。 傳聞我的和親對(duì)象是個(gè)殘疾皇子肄渗,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,440評(píng)論 2 359

推薦閱讀更多精彩內(nèi)容

  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 9,554評(píng)論 0 23
  • 上午翎嫡,接待完客戶,感覺身心疲憊永乌,尤其自己一個(gè)人的時(shí)候疲憊感很強(qiáng)烈惑申。 腦海里有個(gè)聲音說,你很累翅雏,需要休息圈驼,你可以回家...
    萌媽育兒記閱讀 290評(píng)論 0 3
  • 是的,誠(chéng)如標(biāo)題那樣望几,我已經(jīng)沒力氣爭(zhēng)取什么了绩脆。一個(gè)已婚婦女,一個(gè)生了兩娃的已婚婦女還能爭(zhēng)取什么橄抹? 當(dāng)初抱著毀滅這人渣...
    笑茶銹茶閱讀 267評(píng)論 0 0
  • 《樂哀》 我在客廳樂又哀 風(fēng) 你從沒關(guān)的門吹我的腳踝 難道你用的是左手靴迫? 光 你先觸摸我的臉龐 難道你是習(xí)慣于伸出...
    汐的島閱讀 539評(píng)論 1 6
  • 藍(lán)賓賓 崔賓賓 早是出門長(zhǎng)帶月 知君欲向秦川去 有耳莫洗潁川水 盤飧市遠(yuǎn)無(wú)兼味 山明水凈夜來(lái)霜 何所獨(dú)無(wú)芳草兮 必...
    賓賓日記閱讀 234評(píng)論 0 0