@zy-0815
2017-01-07T18:47:05.000000Z
字数 12953
阅读 1972
张梓桐 2014301020005 弘毅班
PDF版本更加清晰:1.百度网盘;2.GITHUB
In the previous section,we have gone through too many deterministic system.Here we are going to discsus the random process,which means,random walk.We gave a brief introduction to the process of random walk in 1D,2D and 3D.Additionally,we summarize the diffusion model.At last,the DLA cluster model is presented.
[Key word]: Random Walk; Simulation; Diffusion; Cluster
For most of the time,our focus has been put on the issue with deterministic system,such as the projectile motion of the cannon ball,or the electric potential.Nevertheless,why don't we shift our thinking and consider something that is not so absolute,say,random.
As far as I am concerned,apart from the uncertanity principle in the Quantum Mechanics,everything ''underlying'' physics of the system may be deterministic,our incomplete knowledge may force us to resort to a stastical,i.e.,stohastic desctiption.For example,we could list a large number of differential equations which we could in principle solve.But out computer is limited in its computational ability and what we really require is a satistical description instead of any details of every particle at any given time.Now the random system comes to its significance when we deal with system with very large number of ''degree of freedom''.
Here ,we formally introduce the concept of random walk.A random walk is a mathematical object which describes a path that consists of a succession of random steps. .The simplist situation involves a walker that is able to take steps of length unity along a line.
A popular random walk model is that of a random walk on a regular lattice, where at each step the location jumps to another site according to some probability distribution. In a simple random walk.
Here in our discussion,we pick the walking direction to be and with given probablity.As the stimulation,that is to say,the step number increase,this simple situation can easily be applied to random walk in any direction.
Firstly,we stimulate the random walk for one dimension,1D for abbrevation.We take the step to be 1000 steps without the lossing of generality.In the figure,we see no obvious regular pattern in each results.And that is the exactly what we have expected before.
In order to illustrate more explicitly,we take the step to be 10000 steps.It is obvious that no distinct pattern is shown here.
Eight times stimulation of a 1D random walk.
This walk can be illustrated as follows. A marker is placed at zero on the number line and a fair coin is flipped. If it lands on heads, the marker is moved one unit to the right. If it lands on tails, the marker is moved one unit to the left. After five flips, the marker could now be on 1, −1, 3, −3, 5, or −5. With five flips, three heads and two tails, in any order, will land on 1. There are 10 ways of landing on 1 (by flipping three heads and two tails), 10 ways of landing on −1 (by flipping three tails and two heads), 5 ways of landing on 3 (by flipping four heads and one tail), 5 ways of landing on −3 (by flipping four tails and one head), 1 way of landing on 5 (by flipping five heads), and 1 way of landing on −5 (by flipping five tails). See the figure below for an illustration of the possible outcomes of 5 flips.
As we might have expected,due to the equality of the probablity of the drunnk walker turning right or turning left,the average walk might cancel each other after being averaged,which leads to:
For such a particle we know that ,so its distance from the origin grows linearly with time.Thus we obtain .Actually,the results for D can be obtained analytically.
If we choose different stimulation times for each step number,say ,from to .It is evident that the scattered dots is approximating the fit line of .This phenomenon is universially acknowledged as the statistical error.Given the chance that we make infinite walks every for every step,those scattering points is just the straigh line.
Up to this point we have considered the most simple random-walk model.There are many ways to generalize the model to make it more realistic.One way is to allow the steps to be of random length.Here are some results:
We also find the diffusive behavior,which accords well with the fixed step random walk
Here we plot two separate random walks for random length.
Four random walks for random length
However,the is being changed as the changing of step length,we observe that the slope of the fit line,that is,from shifting to .Worth mentioning,the value of can also be calculated analytically.But right here,we are not going to illustrate it explicitly.
Simliar to the situation we have discussed in 3.1,now the drunker can walk in a two-dimensional world,though not relaistic enough,but closer to the realistic situation:
We are unable to observe any pattern just like in 1D situation with two random walks.
Another obvious generalization is to allow the walker to move in three dimensions.
There is an intersesting of whether the drunk man able to go back to where he begin?This is the 2-dimensional equivalent of the level crossing problem discussed above. It turns out that the person almost surely will in a 2-dimensional random walk, but for 3 dimensions or higher, the probability of returning to the origin decreases as the number of dimensions increases.
The resuts is shown below.
In higher dimensions, the set of randomly walked points has interesting geometric properties. In fact, one gets a discrete fractal, that is, a set which exhibits stochastic self-similarity on large scales.
Up to now,we have considering the situation in which the step of going right and left are equal,and the step length is equal to unity.As the situation described above is of extremely symmetry.What if we destroy the symmetry,for example:
We take the probability of turning left less than that of turning right.You can imagine this situation happens if the drunker hurts one of his legs! Now with the disappearance of symmetry,we observe a parabola,which indicate the drunker is more likely to go faster away from the origin than the equal probability situation.
Similiarly,we assume the drunker had a longer left legs,and he was able to go further and faster away from the origin than the equal leg one does.
The reason why we are going to discuss about the process of diffusion is obvious,that is,the diffusion are equvailent to diffusion.Now we are going to discuss the diffusion in details.
Diffusion is the net movement of molecules or atoms from a region of high concentration (or high chemical potential) to a region of low concentration (or low chemical potential).
Considering the case in which you put a cream in your coffee.You will definitely find that the cream spread slowly until it loose all of its shape and merge totally.
What we really care about is the density of particle ,which can be conveniently defined if the system contains a large number of particles.The density is then propotional to the probability per unit time .Now we give the equation that both and satsifies.
Now we are going to show you the schematic solutions of the diffusion equation at several different times.The Gaussian distribution broadens with time,but the area under the curve,which is equal to the total number of particles,does not change
Here we plot the time evolution calculated from the the diffusion equation in one dimensions at to Note that the vertical scales are different in the different plots;the maxium value of the density decreased as t increased,which keep the total number of particles fixed.
To visualize the diffusion process,we take a 3D plot to indicate the 2D diffusing process.Here we choose the Dirac function as intial condition.It is obvious that the vertical scale is diminishing as the one dimension situation.After a really long time ,say,(I have to say this process really takes longer time than I have expected!) the solution almost reach equilibrium,for the density distribution is rather flat.(The highest point only contributes 0.00032)
Time evolution calculated from the diffusion equation in two dimensions.At ,all of the particles were confined to clump at the center of the system.The distribution at ,,, and are shown.The region shown here covers the range .
Another interesting random process,which turns out to be closely related to random walks,concerns the growth of cluster,such as snow flakes and soot particle.There existing two main kinds of cluster growth model.One is the Eden cluster growth model,and the other is Diffusion-Limited aggregation,or DLA.
The Eden growth model describes the growth of specific types of clusters such as bacterial colonies and deposition of materials. These clusters grow by random accumulation of material on their boundary. These are also an example of a surface fractal.The way the Eden Cluster is formed is illustrated as follow:
We begin by placing a seed particle at the origin;this is our initial cluster.The we choose one of these perimeter sites at random and place a particle at the chosen location.The cluster now contains two particles and a correspondingly larger perimeter.
Diffusion-limited aggregation (DLA) is the process whereby particles undergoing a random walk due to Brownian motion cluster together to form aggregates of such particles.
The growth rules for DLA clusters are as follows.We again start with a seed particle at the origin.We then release a particle at a randomly chosen location that is some distance away from the seed and let it performs a random walk.If this walker lands on a perimeter site,it sticks there and becomes part of the cluster.
Here is a DLA obtained by allowing random walkers to adhere to a straight line. Different colors indicate different arrival time of the random walkers.
The filled circles are sites in the cluster.Here we have generated 1000 particles.It is likely that there might be some localized source of the small particle.This is perfectly reasonable models and could be interesting depending in part on possible connections to real system.
Now we generate 50000 particles.We can observe better understanding of the DLA Cluster Growth model
To observe the difference of generating particles number.
Let us consider how we might measure the dimensionality of an object.Apart from the previous definition,it is instructive to construct an operational definition for dimensionality.
However,the curves flatton out for large .This is due to the finite size of the clusters.For very large measuring circles,the entire cluster will be inside the circle,and in this case will be independent of .The dimensionality of DLA Cluster is .
Here we try something new in the Random Walk section.We do not assume the direction to be neither nor ,instead,we take the direction to be arbitrary so that this match with the realistic situation much better.
Please check:
1.Random Walks Calculation.py
2.Diffusion.py
3.DLA cluster.py
Nicholas J.Giordano;Hisao Nakanishi,Computational Physics,second edition,Pearson Education.2007-12
From Wikipedia, the free encyclopedia,Random Walk.
From Wikipedia, the free encyclopedia,One Dimension Random Walk.
Pólya's Random Walk Constants, Mathworld.wolfram.com. Retrieved 2016-11-02.
Barabasi, Albert-Laszlo; Stanley, Harry Eugene (1995). Fractal Concepts in Surface Growth. Cambridge University Press. pp. 123–125. ISBN 0-521-48318-2.
Tiger Zhou for his conduction in cluster growth model.
Pal, Révész (1990) Random walk in random and non random environments, World Scientific