[問題] 週期性空間內的彈性碰撞問題

看板Fortran作者 (冷葉)時間13年前 (2011/11/04 20:03), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
老師出了一個作業 總共有8個步驟 但我光是前4個步驟就寫了一個多禮拜... 剛剛發現 我不懂第6步驟的意思 附上題目 想請各位幫我解釋一下題目在說甚麼 希望有好心人士可以救救我......T_T 作業大致上是要在一個20x20的週期性邊界內(二維 模擬2個等質量等半徑的圓 進行彈性碰撞的結果 (1) To write a Hard-Sphere Molecular Dynamics simulation program, we start from: Step 1. Assume the system has only two spheres with the same mass and same size (r=1) in a periodic 2-D space that is 20 unit size by 20 unit size. The spheres initially stay at (1,1) and (5,5) with velocity (0.3, 0.4) and (-0.3,-0.4), respectively. Step 2. Write a code (subroutine) to read initial conditions of the system Step 3. Write a code (subroutine) to estimate the collision time Step 4. Write a code (subroutine) to advance the spheres to the collision point. Step 5. Write a code (subroutine) to perform collision (change velocity) **Step 6. Write a code (subroutine) to advance the spheres without collision for a small timestep=0.1 (step 4 and step 6 may combine together) Step 7. Assemble subroutines from Step 3 to Step 6 to form a Simple Hard-Sphere Molecular Dynamics simulation program 不知道是否適合在這裡問 但因為這作業要用fortran寫 所以希望各位可以幫我.... 不適合在此發問的話 我會盡快刪文 謝謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.116.24.165

11/04 22:58, , 1F
6是讓你寫一段程式,讓那兩個球體在一段短時間(0.1)前進
11/04 22:58, 1F

11/04 22:59, , 2F
不考慮碰撞
11/04 22:59, 2F

11/05 07:47, , 3F
謝謝!
11/05 07:47, 3F
文章代碼(AID): #1EizIhJ6 (Fortran)
文章代碼(AID): #1EizIhJ6 (Fortran)