[关闭]
@842001323 2017-01-08T00:25:15.000000Z 字数 2433 阅读 341

Chapter 7 Random System

1.Random Walk

A random walk is a mathematical object which describes a path that consists of a succession of random steps.

1.1 One-dimensional random walk

An elementary example of a random walk is the random walk on the integer number line , which starts at 0 and at each step moves +1 or −1 with equal probability.

This graph shows the average value of and after repeating the program for 50000 times. From the graph, we can conclude that approximates to 0 as we predicted and is linear to the step number(time). x=2Dt. In this graph, .

    Next change the step size from 1 to 0~1. See the change in D.

- d

    As the step size becomes random, D decreases to approximately 0.175.

Code 1

Random walks in two dimensiond
three dimensiond

a display of particles' random walk f

2.Self-avoiding Walks

In mathematics, a self-avoiding walk (SAW) is a sequence of moves on a lattice (a lattice path) that does not visit the same point more than once.

    Let's think about something more simplified--changing the probability of the each side.

3.Random walks and Diffusion

Random walk are equivalent to diffusion.
In one dimension,. According to the equation, . Based on the equation above, we can use the programme to see the properties of

    The graph below shows the changes of the density of the spots in one dimension when the time is varying.

Time evolution from the diffusion in two dimension

-c

    The situation is similiar to that in one dimension.

code2

4.Cream-in-coffee

It is a two dimension random walk problem. First we set a number of particles in the center of the whole area. Then let them do random walks in all direction. The only limit is once they are reach the edge of the area they can not pass it. Then we observe how the particles move in different time.

-x

    As the steps increase, the particles gradually spread the whole area.

code3

In order to find the entropy of the system, we set the particles in different cells and then calculate .

-d

    As the steps increase, the entropy of the system increases nolinearly.

code4

Conclusion

    From the simulation of random walk, we can get the relationship between <x^2> and time.  We can also see the relationship between random walk and diffusion and how a diffusion process proceeds as time goes. From the last part, we can conclude that the entropy of a system always tends to increase as we learn from thermodynamics.
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注