-
Notifications
You must be signed in to change notification settings - Fork 0
Brownian Motion Simulation
where
To computationally compute the advanced velocities at each point use:
where Hooke's law is used for
where
To generate the random forces one of two methods can be used;
- Utter Randomness
for iteration in range(N):
x_forces.append(random.random() * random.choice(parity))
y_forces.append(random.random() * random.choice(parity))
- Normalized Distribution of Contaminated Randomness
for i in range(N):
x_forces.append( Fx[i] * random.choice(parity) )
y_forces.append( Fy[i] * random.choice(parity) )
where
One method of calculating the mean square distance (MSD) is by using Equation
For instance, the first element of the MSD of list = np.array([[0, 1], [2, 3], [4, 5]])
would be:
while its second and last element would be:
The MSD should be linear with time; i.e. plotting