无标题文章

Random systems

标签(空格分隔): Final

物基一班 熊毅恒 2014301020065

Paste_Image.png

Abstract

Because the random systems can not be determined or predicted by the initial conditions, in order to have a rough understanding on the random systems such as diffusion processes, we explore various kinds of random walk model and investigate some properties of them which can be useful in some random systems as well.

Keywords

  • Random Systems
  • Random Walk
  • Diffusion
  • Entropy

Introduction

We mainly consider the random walk model with some different approaches. We have mainly calculated the main square distance varies with time. In the self-avoiding walk we also investigate the standard deviation of the square distance varies with time. After that we set up a partial differential equation diffusion model and compare it with the previous random walk model. Finally, consider the entropy varies with time by random walk approach in the cream in coffee problem.

Paste_Image.png

Random walk

Paste_Image.png

Paste_Image.png
  • The walker begins at the origin, and the first step is chosen at random at either to the right or the left,each with the probablitiety $\frac {1} {2}$ .Then the next step was chosen, and agian the probablities for stepping left or right are both $\frac {1} {2}$ In a physical process such as the motion of a molecule in solution, the time between steps is approximately a constant, so the step number is roughly proportional to time. We will, therefore, often refer to the walker's position as a function of time.


    1.png

Then I plot two samples at the same time. We can find,Honestly, each of this kind of line is unique, once we repeat the program the result can be very different with this one.
2.png

Also, more applicability,let the step length to be random value in [-1,1]which have same probalilities .We find the x increasing speed is smaller than the previous one.


3.png

Then we consider the average of square distance varies with time. Since we have built a list to store the location of one particle in different time, all we have to do now is produce a large number of random moving particles(repeat the previous process many times) and average the final results.due to the equation $<x^![Uploading 2_803612.png . . .]
2>=2Dt $, we will investigate the D value of two different approaches.


7.png

this is the line for step length fixed approach, there are two kinds of spots in the diagram. The green one is the average for 20000 times and the orange one is the average for 2000 times. we can say some fluctuation on the orange spots but dispear when the average sample become large. the fitting line is y=1.004*x-0.0337.So the D value is 0.502


7.png

this is the line for step length unfixed approach, it is obvious that the distance increasing speed is smaller than the previous one and the D value is approximately 0.1677.


8.png

When the probability for moving left and right not being same
(right=0.75,left=0.25), we can see clearly that the line has a trend to go up ,although there are some lightly fluctuations.


4.png

One Dimension Diffusion

Writing the position after n steps, as a sum of n sperate steps fives:

Since the steps are independent of each other, the terms with will be with equal probability. If we average over a large number of separate walks this will leave only the terms with i j or s?. Thus we find :
An alternative way to describe the same physics involves the density of particles,, which can be conveniently defined if the system contains a large number of particles (walkers). The idea, known as coarse graining, is to consider regions of space that are big enough to contain a large number of particles so that the density ( =mass/ volume) can be meaningfully defined. The density is then proportional to the probability per unit volume per unit time, denoted by z, t), to find a particle at (t, y, z) at time t. Thus, p and P obey the same equation. To find this equation, we focus back on an individual random walker. We assume that it is confined to take steps on a simple-cubic lattice, and that it makes one "walking step" each time step. P(i, j, k, n) is the probability to find the particle at the side (i, j, k) at time n. Since we are on a simple cubic lattice, there are 6 different nearest neighbor sites. If the walker is on one of these sites at time n — 1, there is a probability of 1/6 that it will then move to site (i, j, k) at time n. Hence, the total probability to arrive at (i, j, k) is :

So:
Apart from a constant factor (), the left side of this equation is just the finite difference approximation for the time derivative of P, while the right-hand side is proportional to a second order space derivative. This suggests taking the continuum limit, which leads to :

fusion equation. For ease of notation we will assume that p is a function of only one spatial dimension, x, although everyt,hing we do below can readily be extended to two or three dimensions. We can then write , so that the first index corresponds to space and the second to time. Converting (2) to one dimension yields :


12.png

We know that With the increase of time, the peak density curve fell, the increase scope, with a total area of remain the same.
In 2D situation ,we can have:


9.png

10.png

11.png

We can draw a same conlusion with the 1D This behavior is in accordance with our intuitive sense of a diffusion process, namely in the initial moments in a drip into certain diffusion, then spread to that point as the center spread to the quartet, until the density is the same everywhere.

Cream in coffee

In this topic, we solve the problem which there is a cream in the center of the coffee.
we consider it as two dimension random walk problem. First we set a number of particle in the center of the whole area which is shaped as a square. Then let them do random walk to up,down,left and right four direction. The only limit is once they are reach the edge of the area they can not pass it. Then we observe the whole random particle picture in different time.

this time, we consider an area of 128*128, and only the center area (16,16) has been occupied by the particle initially. the time sequence for eight subplot is not even. they are (0,10,100,500,1000,2000,4000,8000)


5.png

we can see more directly with following pics (From internet).

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

At this point ,we can say that the cream has completely merged with the coffee.

Entropy diffusion

Now its time for us to derive some useful information from this seemingly disordered system. The entropy, to deal with this we have applied a different sumulation method with the above one.

First, we set one particle at the center of the area and let it do the random walk step by step. Each step we will do 5000 times which means there are 5000 particles in the center of the area. Then we add the times of being occupied for every point in this area in 5000 times, so we derive the probability for each state(point) and then use the equation:(the sum is over all point in the area)we get the result.


6.png

As we can see, as time increases, the entropy value increases, but its growth speed is reduced.Eventually it will converge to a constant value.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 212,080评论 6 493
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,422评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,630评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,554评论 1 284
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,662评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,856评论 1 290
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,014评论 3 408
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,752评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,212评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,541评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,687评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,347评论 4 331
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,973评论 3 315
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,777评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,006评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,406评论 2 360
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,576评论 2 349

推荐阅读更多精彩内容