Docsity

Monte Carlo Methods, Notas de estudo de Engenharia de Produção

Toggle sidebar
bg1
1
MAE 715 – Atomistic Modeling of Materials
N. Zabaras (4/21/2009)
Material for these lecture notes was compiled from the references below
9L. Zhigilei, MSE 524 (Virginia Tech)
9MIT’s 3.320 course notes (Prof. G. Ceder)
9D. Chandler, Introduction to Modern Statistical Mechanics
9D.A. McQuarrie, Statistical Thermodynamics or Statistical Mechanics
9D. Frenkel, Introduction to Monte Carlo Methods
9D. Frenkel and B. Smit, Understanding molecular simulation
9M.E.J. Newman and G.T. Barkema, Monte Carlo Methods in Statistical Physics
9K. Binder and D.W. Heerman, Monte Carlo Simulation in Statistical Physics
9K. Kremer, Entangled polymers: from universal aspects to structure property
relations
9J. Baschnagel et al., Monte Carlo simulation of polymers: coarse-grained models
Monte Carlo Methods
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Pré-visualização parcial do texto

Baixe Monte Carlo Methods e outras Notas de estudo em PDF para Engenharia de Produção, somente na Docsity!

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

Material for these lecture notes was compiled from the references below

L. Zhigilei,

MSE 524 (Virginia Tech)

MIT’s 3.

course notes (Prof. G. Ceder)

D. Chandler,

Introduction to Modern Statistical Mechanics

D.A. McQuarrie,

Statistical Thermodynamics

or

Statistical Mechanics

D. Frenkel,

Introduction to Monte Carlo Methods

D. Frenkel and B. Smit,

Understanding molecular simulation

M.E.J. Newman and G.T. Barkema,

Monte Carlo Methods in Statistical Physics

K. Binder and D.W. Heerman,

Monte Carlo Simulation in Statistical Physics

K. Kremer,

Entangled polymers:

from universal aspects to structure property

relations

J. Baschnagel et al.,

Monte Carlo simulation of polymers: coarse-grained models

Monte Carlo Methods

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

Molecular Dynamics versus Monte Carlo

In a MD simulation, one way you calculate certain properties is by tracking them over time. If you could calculate certain properties for a given microscopicstate (e.g. energy or volume), you calculate their macroscopic properties asaverages (an integral over time) over the simulation. There are two issues:

At first, in that average you only include states that you can reach with theMD simulation. For example, since you simulate over a finite time, if there areexcitations which can determine the average energy that occur over long-time,you would not include them in that average.

In this case, statistical sampling

may be more efficient.

These averages only include states that occur

in the time scale of the MD simulation

Secondly,

you maybe interested to compute the average properties but not

interested in simulating the system dynamics.

Then sometimes you can do

simpler techniques (less computing intensive) than MD. You could computethese averages by sampling.

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

A time scale problem: inter-mixing

Let us consider an example of a binary mixture.

You may want to know the

average energy of this system.

To average the energy, the system

would have to go through many

configurations in the simulation

Diffusion is required

In any given configuration, let’s assume that we have a method to calculate the energy of the system. At high temperature, the atoms will simply hop aroundand give you some average energy.

What kind of time scale you need to get that average right

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

A time scale problem: inter-mixing

Lets estimate the diffusion constant

D

required to get significant number of atom

exchanges.

To get an idea of the kind of hopping rate you need, you can assume that the atoms do a random walk. Then the root mean square displacement you take isthe number of jumps you take,

N

, times the jump distance squared (

Na

2

Recall the relation between the

diffusion constant and the root

mean square displacement.

Now we can relate to jump rate

to the diffusion constant.

<r

2

(t)> = N a

2

N

t

∂

∂

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

Implications for the activation barrier

This means that your success rate (Boltzmann factor) has to be greater than 10

, so one out of a 1000 times, the atom has to jump across the barrier.

Let us assume that

ν

13

Hertz.

Let’s say we want to get a jump rate

of

10

Hertz (one jump per 100 picosecs or

per 0.1 nanosec).

So, if you did a 10 nanosecs simulation,you’ll have 100 jumps per atom whichwould be reasonable for some equilibration(but in many cases still not enough).

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

Activation barrier in solids and liquids

In a solid, barriers are anywhere, typically, from 0.5 to 2 eV

. So you will

have problems in solids (not enough hopping).

In liquids you’ll have much faster transport. If you do liquids at a 1000 K, you would have tremendous amount of hopping and thus no problem.

So you can deduce from that what the activation energy should be.

Then we’ll see jumps of the order of once per 100 picoseconds.

Æ

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

Monte Carlo: The two key issues

Monte Carlo is NOT another form of dynamics, it is just a sampling method.

If you want to get a sample, there are two things you have to decide:

Which population you sample from?

How do you set

constraints on the population of states that you sample from?

With what probability do you sample them?

Should you

sample them unbiased, for example?

The biggest mistake in Monte Carlo is with defining the

constraints on the states you sample. Those constraints

come from the thermodynamic boundary conditions you

impose on your system.

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

Monte Carlo: Issues to be discussed

How do macroscopic constraints (e.g. the environment)

relate to the simulation approach?

Macroscopic conditions, correspond to fixing the

averages of microscopic quantities

Example: How do you constrain your states to model

adsorption of H in Pd? Does H sit on the surface of Pdor the subsurface? How do you investigate?

How to go from microscopic description to macroscopic

variables?

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

Review of statistical mechanics and thermodynamics

Any fixed thermodynamical variable sets a constraint on how you can sample. The constraint with which you sample comes from the extensive thermo-dynamic variables

Extensive thermodynamic variables are things that scale with size (e.g. volume, number of atoms of a given type, etc.).

Intensive variables are the conjugates of the extensive variable and don’t scale with size (temperature, pressure, chemical potential, etc.).

The probability with which you sample depends on the relevant Hamiltonian and the macroscopic counterpart to that is the free energy function

A Hamiltonian in microscopic space would correspond to the free energy function in the macroscopic space.

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

Conjugate thermodynamic variables

In the energy formulation, the conjugate variable pairs can be identified from the work terms in the first law of thermodynamics: (T,S), (-p,V), (

μ

,N), …There is one

extensive variable and one intensive variable (always in pairs).

You can write that from different contributions, TdS (heat flow), pdV (mechanical work done) and

μ

dN (chemical work) where

μ

is the chemical potential and N is

the number of atoms of a given type. These are conjugate pairs:

S is an extensive, T is an intensive, V is an extensive, p is an intensive, N is an extensive,

μ

is an intensive.

To define your boundary conditions, you always need to specify one out of each pair. So, you need to say whether you are at constant S or constant T, whetheryou are at constant p or constant V, whether you are at constant

μ

or constant N.

You cannot leave one unspecified.

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

Entropy formulation of the first law

In statistical mechanics, we often use the `entropy formulation’ of the first law:

In this formulation the conjugate pairs are (1/T, U), (-p/T, V), (

μ

/T, N).

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

Microcanonical, canonical and grand-canonical ensembles

Thermodynamic quantities are averages over relevant set of microscopic states (ensembles):

Ensemble is the collection of all possible microscopicstates the system can be in, given the thermodynamic

(macroscopic) boundary conditions

E(E,V,N) -> micro canonical:

e.g. Newtonian system in box

with elastic walls. E(T,V,N) -> canonical ensemble:

e.g. Newtonian system in a

box with non-elastic walls (walls equilibrated at temperatureT) E(T,V,

μ

) -> grand canonical ensemble:

e.g. open system

19

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

Canonical E(T,V,N), Grand-canonical E(T,V,

If you have to control the average energy and you do that with the temperature, then you end up in what’s called the canonical ensemble.

If you release the constraint of fixed number of particles, again then you have to take into account the field that sets your average number of particles. So, thenyou have an ensemble with T, V and

μ

that is called the grand canonical

ensemble.

You could keep on making other ensembles by switching in intensive variables for extensive.

So that defines the states from which you should

sample. The question is now, how do you sample?

20

MAE 715 – Atomistic Modeling of Materials N. Zabaras (4/21/2009)

How do you sample?

You should sample with the correct probability and the probability of the states in an ensemble is proportional to the exponential of e

β

H

H

being the Hamiltonian,

= 1/kT

. And then normalized by the sum of that over all the states which is called

the partition function

Q

where

The free energy is the log of the partition function:

So what should that Hamiltonian be?

It should be the

relevant microscopic Hamiltonian that includes all the

things that can fluctuate in your system