Monte Carlo Simulation - PowerPoint PPT Presentation

About This Presentation
Title:

Monte Carlo Simulation

Description:

Deterministic vs. Stochastic Brownian motion Lennard-Jones Potential Measuring elastic constants Replace the time average with ensemble average Thought experiment ... – PowerPoint PPT presentation

Number of Views:92
Avg rating:3.0/5.0
Slides: 14
Provided by: Hongl7
Category:

less

Transcript and Presenter's Notes

Title: Monte Carlo Simulation


1
Monte Carlo Simulation
Wednesday, 9/11/2002
  • Ensemble sampling
  • Markov Chain
  • Metropolis Sampling

Stochastic simulations consider particle
interactions.
2
Deterministic vs. Stochastic
Newtons equation of motion
F m a
Random Walk
3
Brownian motion
n 200 s .02 x rand(n,1)-0.5 y
rand(n,1)-0.5 h plot(x,y,'.') axis(-2 2 -2
2) axis square grid off set(h,'EraseMode','xor','
MarkerSize',18) while 1 drawnow x x
srandn(n,1) y y srandn(n,1) set(h,'XData
',x,'YData',y) end
Animations
4
Lennard-Jones Potential
force
potential
5
Measuring elastic constants
6
Replace the time average with ensemble average
An ensemble is a collection of systems. The
probability for a system in state s is Ps.
If you average the velocity of one molecule of
the air in your room, as it collides from one
molecule to the next, that average comes out the
same as for all molecules in the room at one
instant.
7
Thought experiment
Lets pretend that our universe really is
replicated over and over -- that our world is
just one realization along with all the others.
We're formed in a thousand undramatic day-by-day
choices.
Parallel universes ensembles
8
Canonical Ensemble
Fixed number of atoms, system energy, and system
volume.
Partition function
9
Finite number of microstates
Importance sampling
10
Metropolis Sampling I
1. Current configuration C(n)
2. Generate a trial configuration by selecting an
atom at random and move it.
3. Calculate the change in energy for the trial
configuration, DU.
11
Metropolis Sampling II
If DU lt 0, accept the move, so that the trial
configuration becomes the (n1) configuration,
C(n1). If DU gt 0, generate a random number r
between 0 and 1 If r lt exp( -DU/kBT ), accept
the move, C(n1) C(t) If r gt exp( -DU/kBT ),
reject the trial move. C(n1) C(n). A sequence
of configurations can be generated by using the
above steps repeatedly. Properties from the
system can be obtained by simply averaging the
properties of a large number of these
configurations.
12
Markov Chain
A sequence X1, X2, , of random variable is
called Markov if, for any n,
i.e., if the conditional distribution F of Xn
assuming Xn-1, Xn-2, , X1 equals the conditional
distribution F of Xn assuming of only Xn-1.
13
Markov Process
Dart hit-or-miss
Random Walk (RW) Self-Avoiding Walk (SAW) Growing
Self-Avoiding Walk (GSAW)
Diffusion Limited Aggregation
http//apricot.polyu.edu.hk/lam/dla/dla.html
Write a Comment
User Comments (0)
About PowerShow.com