close

 

来自己对这个问题很感兴趣,加上学校组织做课题,于是催了做个模拟器的想法

在这之前先把 N-Body Problem 定义一下吧

 

The n-body problem is the problem of predicting the motion of a group of celestial objects that interact with each other gravitationally. Solving this problem has been motivated by the need to understand the motion of the sun, planets and the visible stars. Its first complete mathematical formulation appeared in Isaac Newton's Principia (the n-body problem in general relativity is considerably more difficult[citation needed]). Since gravity was responsible for the motion of planets and stars, Newton had to express gravitational interactions in terms of differential equations. An important fact, which Newton proved in the Principia, is that celestial bodies can be modelled as point masses.

如果要写一个模拟器的话,就要动态的产生数据

我将把模拟器分成2个部分,一个是运算部分,一个是绘制部分

分成2个部分的话,又有2种方法,一种是双进程,一种是双线程

以前试过双进程,由于发送消息的时候,没把uMsg填对,导致消息老是发不出去[看了汇编中关于发生消息那部分才发现错在这里]

那么这此就用双线程做吧。

 

开始撰写!

arrow
arrow
    全站熱搜

    Магсн 發表在 痞客邦 留言(0) 人氣()