• 검색 결과가 없습니다.

Source of the lecture note.

N/A
N/A
Protected

Academic year: 2022

Share "Source of the lecture note. "

Copied!
51
0
0

로드 중.... (전체 텍스트 보기)

전체 글

(1)

Intermolecular Forces and Monte-Carlo Integration

열역학 특수 연구

2003.3.28

(2)

Source of the lecture note.

J.M.Prausnitz and others, “Molecular

Thermodynamics of Fluid Phase Equiliria”

Atkins, “Physical Chemistry”

Lecture Note, Prof. D.A.Kofke, University at Buffalo

Lecture Note, R.J.Sadus, Swineburn University

(3)

Tasks of Molecular Simulation

 

>= −

< r r

r r

r

d kT U

d kT U

A A

) /

) ( (

) /

) ( )(

(

Model for

Intermolecular Forces

Method of Integration for Multiple vector space

Part 1 of this lecture

Part 2 of this lecture

(4)

Intermolecular Forces

Intermolecular forces

Force acting between the molecules of given mixture or pure species

It is essential to understand the nature of intermolecular forces for the study of

molecular simulation

Only simple and idealized models are available (approximation)

Our understanding of intermolecular forces are far from complete.

(5)

Types of intermolecular forces

Electrostatic forces

Charged particles and permanent dipoles

Induced forces

Permanent dipole and induced dipole

Force of attraction between nonpolar molecules

Specific forces

Hydrogen bonding, association and complex formation

(6)

Potential Energy Function and Intermolecular Forces

Potential Energy : Energy due to relative position to one another

If additional variables are required for potential energy function …

dr F = − dΓ

,...) ,

, ( ,...)

, ,

( r θ φ r θ φ

F = −∇ Γ

(7)

1. Electrostatic Force

Due to permanent charges (ions,…)

Coulomb’s relation (inverse square law)

Two point charges separated from distance r

For two charged molecules (ions) ,

r2

e

F = ei j const.

r e ei j

ij = +

dr Γ F = dΓ

Dr z zi j

ij

ε2

= Γ

Dielectric constant of given medium

(8)

Nature of Electrostatic forces

Dominant contribution of energy ….

Long range nature

Force is inversely proportional to square of the distance

Major difficulties for concentrated

electrolyte solutions

(9)

Electrostatic forces between dipoles

Dipole

Particles do not have net electric charge

Particles have two electric charges of same magnitude e but opposite sign.

Dipole moment

Potential Energy between two dipoles

= el μ

[

2cos cos sin sin cos( )

]

3 i j i j i j

j i

ij μrμ θ θ θ θ φ φ

= Γ

(10)

Energies of permanent dipole, quadrupoles

Orientations of molecules are governed by two competing factors

Electric field by the presence of polor molecules

Kinetic energy  random orientation

Dipole-Dipole

Dipole-Quadrupole

Quadrupole-Quadrupole

8 ...

2 2

+

=

Γ r kT

Qj

i ij

μ 3 ...

2

6 2 2

+

=

Γ r kT

j i ij

μ μ

40 10 ...

2 2

+

=

Γ r kT

Q Qi j

ij

(11)

2. Induced Forces

Nonpolar molecules can be induced when those molecules are subjected to an electric field.

i αE

μ =

Polarizability

Electric Field Strength

(12)

Mean Potential Energies of induced dipoles

Permanent Dipole + Induced Dipole

Permanent Dipole + Permanent Dipole

Permanent Quadrupole + Permanent Quadrupole

6 2

r

j i ij

μ

α

= Γ

( )

8

2 2

2 3

r

Q Qj j i

i ij

α α +

= Γ

( )

6

2 2

r

i j j

i ij

μ α μ

α +

= Γ

(13)

3. Intermolecular Forces

between Nonpolar Molecules

1930, London

There was no adequate explanation for the forces between nonpolar molecules

Instant oscillation of electrons  Distortion of electron arrangement was sufficient to caus temporary dipole moment

On the average, the magnitude and direction averages zero, but quickly varying dipoles produce an electric field.  induces dipoles in the surrounding molecules

Induced dipole-induced dipole interaction

(14)

London dispersion force

( )

) (

2 3

6

j i

j i j i

ij r I I

I I

+

=

Γ α α

jj ii

ij = Γ Γ

Γ

Potential energy between two nonpolar molecules are : independent of temperature and

varies inversely as sixth power of the distance between them .

r6

B

ii = Γ

(15)

Repulsive force and total interaction

When molecules are squeezed, electronic replusion and rising of eletronic kinetic energy began to dominate the attractive force

The repulsive potential can be modeled by inverse-power law

The total potential is the sum of two separate potential rm

= A Γ

n ij m

r B rA −

= Γ

(16)

General form of intermolecular potential curve

Mie’s Potential

Lennard-Jones Potential

= Γ

6 12

4 r r

σ ε σ

=

=

Γ

m m n

n m n n

m n m r r

m n r

B r

A ε( / )1/( ) σ σ

The parameters for potential models can be estimated from variety of physical properties

(spectroscopic and molecular-beam experiments)

(17)

Specific (Chemical) Forces

Association : The tendency to from polymer

Solvation : The tendency to form complexes from different species

Hydrogen Bond and Electron Donor-Acceptor complexes

The models for specific forces are not well established.

The most important contribution in bio-molecules (proteins, DNA, RNA,…)

(18)

Simplified Potential Models for Molecular Simulations

) (

0 ) (

) (

)

(

σ σ

= Γ

<

= Γ

r r

r r

HS HS

SS v

r r = a Γ ( )

Soft-Sphere Potential with

Repulsion parameter = 1 Soft-Sphere Potential with

Repulsion parameter = 12 )

( 0 ) (

) (

)

(

) (

)

(

2 2 1

σ σ σ

ε

σ

= Γ

= Γ

<

= Γ

r r

r r

r r

SW SW SW

SS v

r r = a Γ ( )

Square Well Potential Hard Sphere Potential

(19)

Calculation of Potential in

Molecular Monte Carlo Simulation

There are no contribution of kinetic energy in MMC simulation

Only “configurational” terms are calculated

...

) , , ( )

, ( )

( 2 3

1 + Γ + Γ +

Γ

=ri  ri rj  ri rj rk

U

Effect of external field

Potential between pairs of particles

Potential between particles of triplets

(20)

Using reduced units…

Dimensionless units are used for computer simulation purposes

ε σ

ε ε ρσ ρ

/ /

/

3

*

*

*

3

*

P P

E E

kT T

=

=

=

=

(21)

Contribution to Potential energy

Two-body interactions are most important term in the calculation

For some cases, three body interactions may be important.

Including three body interactions imposes a very large increase in computation time.

m: number of interactions

Nm

t

(22)

Short range and long range forces

Short range force

Dispersion and Replusion

Long range force

Ion-Ion and Dipole-Dipole interaction

Interaction Type Dependence Typical E (kJ/mol)

Comment

Ion-Ion 1/r 250

Ion-Dipole 1/r2 15

Dipole-Dipole 1/r3 2 Stationary

Dipole-Dipole 1/r6 0.6 Rotating

London 1/r6 2

(23)

Short range and long range interactions

Computation time-saving devices for short range interactions

Periodic boundary condition

Neighbor list

Special methods are required for long range interactions. (The interaction extends past the length of the simulation box)

(24)

Naïve energy calculation

 

= = +

Γ

= 1

1 1

2( )

N

i N

i j

rij

U

Summation are chosen to avoid “self” interaction

Loop i = 1, N-1

Loop j = i+1,N

Evaluate rij Evaulate Uij

Accumulate Energy End j Loop

End j Loop Pseudo Code

(25)

Problems

Simulations are performed typically with a few hundred molecules arranged in a cubic lattice.

Large fraction of molecules can be expected at the surface rather than in the bulk.

Periodic Boundary Conditions (PBC) are used to avoid this problem

(26)

Periodic Boundary Condition

Infinite Replica of the lattice of the cubic simulation box

Molecules on any lattice have a mirror image counter part in all the other boxes

Changes in one box are matched exactly in the other boxes  surface effects are eliminated.

(27)

Another difficulty…

Summation over infinite array of periodic images

 This problem can be overcame using

Minimum Image Convention (MIC)

(28)

Minimum Image Convention (MIC)

Nearest images of colored sphere

For a given molecule, we position the molecule at the center of a box with dimension identical to the simulation box.

All the coordinates lie within the range of ½ L and – ½ L

Assume that the central molecule only interacts with all molecules whose center fall within this region.

(29)

Implementing PBC & MIC

Two Approaches

Decision based : if statement

Function based : rounding, truncation, modulus

BOXL2 = BOXL/2.0

IF(RX(I).GT.BOXL2) RX(I)=RX(I)-BOXL IF(RX(I).LT.-BOXL2) RX(I) = RX(I) + BOXL

RX(I) = RX(I) – BOXL * AINT(RX(I)/BOXL)

Decision Function

Nearest integer

(30)

Implementing PBC & MIC

Loop i = 1, N -1

Loop j = I + 1, N Evaluate rij

Convert rij to its periodic image (rij’) if (rij’ < cutOffDistance)

Evaluate U(rij)

Accumulate Energy End if

End j Loop End i Loop

Pseudo CODE

(31)

Improvement due to PBC & MIC (Compared with naïve calculation)

Accumulated energies are calculated for the periodic separation distance.

Only molecules within cut-off distance contribute to the calculated energy.

Caution : cut-off distance should be smaller than the size of the simulation box 

Violation to MIC

Calculated potential  Truncated potential

(32)

Long range correction to PCB

Adding long range correction…

dr r u r N

E

X X

X

rc

lrc

lrc c

full

=

+

=

) ( 2π ρ 2

For NVT ensemble, density and no. of particles are const.

LRC and be added after simulation

For other ensembles, LRC terms must be added during simulation

(33)

Technique to reduce computation time

Neighbor List

1967, Verlet proposed a new algorithm.

Instead of searching for neighboring

molecules, the neighbor of the molecules are stored and used for the calculation.

(34)

Neighbor List

(35)

Neighbor List

Variable d is used to encompass

molecules slightly outside the cut-off distance (buffer).

Update of the list

Update of the list per 10-20 steps

Largest displacement exceed d value.

(36)

Algorithm for Integration

(37)

Method of Integration

Methodological Approach

Rectangular Rule, Triangular Rule, Simpson’s Rule

( )

b

a

I =

f x d x

( ) f x

x

Quadrature Formula

1 1

( ) ( )

n n

i i

i i

b a

I x f x f x

= n =

≈ Δ=

Uniformly separated points

(38)

Monte Carlo Integration

Stochastic Approach

Same quadrature formula, different selection of points

1

( )

n

i i

b a

I f x

n =

( )x π

x

Points are selected from uniform distribution π( )x

(39)

Example …

(from Univ. at Buffalo, School of Eng. And Appl. Science, Prof. David Kofke)

(40)

Example …

(from Univ. at Buffalo, School of Eng. And Appl. Science, Prof. David Kofke)

(41)

Why Monte Carlo Integration ?

Comparison of errors

Methodological Integration

Monte Carlo Integration

MC error vanishes much slowly for increasing n

For one-dimensional integration, MC offers no advantage

The conclusion changes when dimension of integral increases

Methodological Integration

Monte Carlo Integration

2 2 / n x

E Δ

2 /

/ 1

1 n E

n d

x

E Δ 2 / 2/

2 /

/ 1

1 n E

MC wins about d = 4

(42)

Shape of High Dimensional Region

Two (and Higher) dimensional shape can be complex

How to construct weighted points in a grid that covers the region R ?

Problem :

mean-square distance from the origin

 

+

>=

< dxdy

dxdy y

x

r ( 2 2)

2

(43)

Shape of High Dimensional Integral

It is hard to formulate methodological algorithm in complex boundary

Usually we do not have analytical expression for position of boundary

Complexity of shape can increase unimaginably as dimension of integral

grows

We want 100 +

dimensional integrals

i? w

>=

< r r

r r

r

d kT U

d kT U

A

A ( ( )/ )

) / ) ( )(

(

(44)

Nature of the problem …

(45)

Integration over simple shape ?

0.5 0.5 2 2

2 0.5 0.5

0.5 0.5

0.5 0.5

( ) ( , )

( , ) dx dy x y s x y r

dx dys x y

+ +

+ +

=   +

 

1 inside R 0 outside R s =

Grid must be fine enough !

(46)

Sample Integration

(47)

Sample Integration

(48)

Integration over simple shape ?

Statistical mechanics integrals typically have

significant contribution from miniscule regions of the integration space.

Ex ) 100 spheres at freezing fraction = 10-260

(49)

Importance Sampling

Put more quadrature points in the region where integral recieves its greatest contribution

Choose quadrature points according to

some distribution function.

(50)

A sample integration.

( ) 3 2

f x = x

( )x 2x π =

(51)

Importance Sampling Integral

Using Rectangular-Rule :

Use unevenly spaced intervals

x1

Δ Δx2 Δx3 Δxn 1

( )

n

i i

i

I f x x

=

Δ

1

i ( )

i

b a

x n π x

Δ =

참조

관련 문서

사물에 대한 객관적 관찰력·사고력·분석력을 통해 글을 논리적으로 쓰는 훈련을 하는 교과이다.. 매주 주어지는 글쓰기의 오브제를 관찰하고, 묘사한 과제들에

It considers the energy use of the different components that are involved in the distribution and viewing of video content: data centres and content delivery networks

After first field tests, we expect electric passenger drones or eVTOL aircraft (short for electric vertical take-off and landing) to start providing commercial mobility

1 John Owen, Justification by Faith Alone, in The Works of John Owen, ed. John Bolt, trans. Scott Clark, &#34;Do This and Live: Christ's Active Obedience as the

The objective of the study is to analyze singing parts in 7 music textbooks of the 2009 Middle School Curriculum and the current status of singing activities at school

웹 표준을 지원하는 플랫폼에서 큰 수정없이 실행 가능함 패키징을 통해 다양한 기기를 위한 앱을 작성할 수 있음 네이티브 앱과

_____ culture appears to be attractive (도시의) to the

substance, system, state, property, process, work, heat, matter transfer, energy, entropy... The