Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley...

23
Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic approach to

Transcript of Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley...

Page 1: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

Thermal boundary conditions for

molecular dynamics simulations Simon P.A. Gill and Kenny Jolley

Dept. of EngineeringUniversity of Leicester, UK

A pragmatic approach to

Page 2: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

Overview

1. Imposing a steady state temperature gradient

2. Remote boundary conditions by coarse-graining

Page 3: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

1.0 Imposing a steady state temperature gradient

• Consider a 1D LJ chain of 100 atoms subjected to a different temperature at each end

tem

pera

tu

re

position, x

T1

TN

Tkj Heat flux

Thermalconductivity

Temperaturegradient

Classical model(Ficks law)

Page 4: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

1.1 Thermostats• Nosé-Hoover

– a global deterministic thermostat– enforces average temperature only

• Langevin– a local stochastic thermostat– enforces temperature on each atom– no feedback from actual temperature

x

T(x)

?T1

T2

x

T(x)

T1

T2

Page 5: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

1.2 Results for 1D LJ chain

0 20 40 60 80 1000.20

0.22

0.24

0.26

0.28

0.30

Nose-Hoover

Tem

per

atu

re, <T

>

position, i

Page 6: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

1.2 Results for 1D LJ chain

• Kapitza effect – boundary conductivity different

from bulk conductivity

0 20 40 60 80 1000.20

0.22

0.24

0.26

0.28

0.30

Langevin

Nose-Hoover

Tem

per

atu

re, <T

>

position, i

Langevin cannot control temperature in a 1D chain away from equilibrium

Page 7: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

1.3 Boundary effect

• Green-Kubo (assuming local equilibrium)

djjkt

iit

i

0

)0()(lim

0 20 40 60 80 1000.20

0.22

0.24

0.26

0.28

0.30

Langevin

Nose-Hoover

Te

mp

era

ture

, <T

>

position, i

• Steady state – constant heat flux at all points

Tk

Tkj

1

Reduced k at boundary for

NH

k nearly zero at

boundary for Langevin

Reduce boundary effect using Memory Kernels?

Page 8: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

1.4 Cooling of Ubiquitin (NAMD)

100 200 300 400 500 600 7000.20

0.25

0.30

0.35

0.40

0.45

Tem

pera

ture

time

Nose-Hoover Langevin

Cooling of 1000 atom

LJ chain

0 20 40 60 80 1000.20

0.25

0.30

0.35

0.40

0.45

time

Tem

pera

ture

, T

position, x (x10)

NH : Unphysically large temp

gradient maintained at

boundary

Page 9: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

1.5 Thermostatting far from equilibrium

• Concept – use feedback control loop to regulate temp in centre of chain by thermostating ends

T1 TN

{ {

Controlled region

Thermostat at T1c to

maintain T1

Thermostat at TNc to

maintain TN

boundaryzone

boundaryzone

Page 10: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

1.6 Feedback Control of 1D chain

• Algorithm

{

Thermostat at T1c

1

211

1

1

21

1

1

Tk

xmTQ

Tk

xmQ

xmx

Vxm

Bcc

cB

iiiM

iii

ii

Adjust T1c to

maintain T1 here

Page 11: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

1.7 Divergence of k

• The thermal conductivity of a body with a momentum-conserving potential scales with the system size N as

• 3D molecular chain exhibits convergent conductivity• Transverse and longitudinal waves in higher dimensions

in 1D

in 2D

in 3D.

52Nk

Nk ln

constantk

Page 12: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

1.8 Feedback control results

0 20 40 60 80 10030

35

40

45

50

55

60

NHthermostat

target50K

target40K

NHthermostat

controlledregionte

mp

era

ture

<T

>

position, x

•3D rod (8x8x100)

•Nosé-Hoover thermostat

Page 13: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

1.9 Feedback control results

•Langevin thermostat

0 20 40 60 80 10010

20

30

40

50

60

70

80

Langevinthermostat

target50K

target40K

Langevinthermostat

controlledregionte

mp

era

ture

<T

>

position, x

Langevin can control temperature in 3D but less effective than Nosé-Hoover

Page 14: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

1.10 Feedback control results

0 20 40 60 80 10010

20

30

40

50

60

70

80

stadiumthermostat

target50K

target40K

stadiumthermostat

controlledregionte

mp

era

ture

<T

>

position, x

• Stadium damping thermostat

Page 15: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

0 20 40 60 80 10010

20

30

40

50

60

70

80 NH Langevin stadium

target50K

target40K

controlledregionte

mp

era

ture

<T

>

position, x0 100 200 300 400

0

10000

20000

30000

40000

50000

60000

NH thermostats

freq

uen

cy

instantaneous temperature (K)

left atom (50K) middle atom (45K) right atom (40K)

1.11 Feedback control results

• Temperature distributions

Page 16: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

2.0 Remote boundary conditions by coarse-

graining• Some problems are not well represented by :

– periodic boundary conditions, particularly where there are long range interactions, e.g. elastic fields in solids

– standard ensembles, especially in cases where we are doing work on the system, e.g. NVE, NVT, NPT

Work dissipated as heat.

Only N is constant

Page 17: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

2.2 Concurrent modelling approach

• Do not model dynamics in continuum region

Dynamic atomistic region DOF : positions of atoms, q momenta of atoms, p

Punch

Elastostatic continuum region DOF : positions of nodes, q temperatures at nodes, T

Page 18: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

2.3 Stadium damping

• Diffuse thermostatting interface• Proposed by B.L. Holian & R. Ravelo (1995)• Constant temperature simulation embedded

in elastostatic FE (Qu, Shastry, Curtin, Miller 2005)

• Shown to produce canonical ensemble• Simple solution to phonon reflection problem

MD

Damping zone

Stadium damping

)(x

Page 19: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

2.4 Steady State Concurrent model

1T NT11 TT

{ {

unthermostatted MD region

Thermostat at T1c to maintain

continuum FD region

continuum FD region

Thermostat at TNc to maintain

NN TT ˆ

1

111

)ˆ(

Q

TTT c

1T NT

Page 20: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

2.5 Steady state FD/MD simulation

20 40 60 80 10030

35

40

45

50

55

60

continuumregion

continuumregion

atomisticregion

tem

pe

ratu

re (

K)

position, x

actual temp thermostated temp

Blue line is MD boundary zone

Red line is FD/MD result

Blue line is full FD solution

Red line is FD at ends (1-20 and 101-120) and MD in middle

Nosé-Hoover Stadium damping

Page 21: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

2.6 Transient Concurrent model

1T NT11 TT

{ {

unthermostatted MD region

Thermostat at T1c to maintain

continuum FD region

continuum FD region

Thermostat at TNc to maintain

NN TT ˆ

dtjjQQ

TTT

t

c )ˆ(1)ˆ(

1

0

121

111

1T NTNj

Nj

11 jj

Heat must be conserved on average

1j

1j

NN jj ˆ

Page 22: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

2.6 Transient FD/MD simulation

Blue line is full FD solution

Red line is FD at ends (1-20 and 101-120) and MD in middle

Page 23: Thermal boundary conditions for molecular dynamics simulations Simon P.A. Gill and Kenny Jolley Dept. of Engineering University of Leicester, UK A pragmatic.

3.0 Conclusions• Kapitza boundary effect

– conductivity near an interface (real or artificial) is less than bulk value

– can obtain desired temperature by feedback control of thermostatted boundary zone.

• Thermostats for non-isothermal boundary conditions– deterministic NH thermostat minimizes Kapitza effect– although Langevin naturally thermostats each particle

individually..– ..global NH thermostat determines average temp but not

distribution– responsiveness of global NH thermostat depends on no. of

thermostatted atoms (important for transient b.c.s)

• FD/MD coupling– Stadium damping effectively removes spurious phonon

reflection from atomistic/coarse-grained interface– simple matching conditions ensure coupling between

continuum and atomistic regions