作者rinb0919 (冷葉)
看板Fortran
標題[問題] 週期性空間內的彈性碰撞問題
時間Fri Nov 4 20:03:53 2011
老師出了一個作業
總共有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
1F:推 terryys:6是讓你寫一段程式,讓那兩個球體在一段短時間(0.1)前進 11/04 22:58
2F:→ terryys:不考慮碰撞 11/04 22:59
3F:→ rinb0919:謝謝! 11/05 07:47