Professional Documents
Culture Documents
East Technical University – Department of Metallurgical & Materials Engineering
The Monte Carlo Method
Prepared and Presented by :
Assoc.Prof.Dr. Caner Şimşir
ln x dx x ln x x
4
1
2.5418
1
First, a region including the function to be
integrated.
Then, random points in the region are
chosen using a random number generator.
The integral is the fraction of points below
the curve to the total area of the region.
Thermodynamics information can be
acquired by either time averaging (MD) or
by ensemble averaging (MCM). The focus
of this chapter is the direct calculation of
ensemble averages by the MCM.
2019 Spring METE 350 – Multi‐Scale Modeling and Simulation in Materials Science & Engineering 2/12
Ensemble Averages
Standard Monte Carlo method describes the systems under constant temperature (T), volume
(V) and number of particles (N), which is the canonical ensemble.
Thermodynamic averages for systems in the canonical ensemble are given by:
B
e E / k BT
B
B
e E / k BT
B is a thermodynamic quantity and α indicate the possible configurations in the system. The
probability of being in a specific configuration (ρα) is:
e E / kBT e E / kBT
e E / k BT
Q
The partition function Q is
Q e E / kBT
e E / k T Q
B
E E / k T
e B
Q e E / k T B
Then, the relative probabilities of two states is completely determined by the energy difference
ΔEα,β = Eβ - Eα
if E E 0 then 1
if E E 0 then 1
1 N N
e
U ( r N )/ k BT
U U (r ) dr
Z NVT
In principle, evaluation requires a list of all possible
configurations. However, many of the configurations of any
system will be possible, but not probable.
Ei ,i 1 / k BT
if Ei ,i 1 0 then accept because e 1
Ei ,i 1 / k BT
if E E 0 then accept move with probability e
Repeating this procedure many times, we can generate a list of configurations {n} with energy
En that have the correct overall probability.
1 m
B B
m 1
U rj ri n rj ri o
j i j i
Accept or reject the move based on Metropolis algorithm.
1. If trial is accepted, the next entry in MC list is ri=ri(new) with
U=U(new)
2. If trial is rejected, the next entry in MC list is ri=ri(old) with
U=U(old)
e) Repeat
f) Accumulate the averages.
Thanks for listening.
Prepared and Presented by :
Assoc.Prof.Dr. Caner Şimşir