31
Institute for Materials Science, Chair of Materials Science and Nanotechnology 1 1 / 1 j B H k T j j Ae Z Computersimulation in der Materialwissenschaft WS 2014-2015 Diplom Werkstoffwissenschaft + andere Interessenten Arezoo Dianat und Leonardo Medrano Institut für Werkstoffwissenschaft Professur Werkstoffwissenschaft und Nanotechnologie ORT: SCH/A316/H ( . ) v v v p v f t 2 2 ( ) d r m U r dt

Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

  • Upload
    lexuyen

  • View
    216

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

1 1

/1j B

H k T

j

j

A eZ

Computersimulation in der Materialwissenschaft

WS 2014-2015

Diplom Werkstoffwissenschaft + andere Interessenten

Arezoo Dianat und Leonardo Medrano Institut für Werkstoffwissenschaft

Professur Werkstoffwissenschaft und Nanotechnologie

ORT: SCH/A316/H

( . )v

v v p v ft

2

2( )

d rm U r

d t

Page 2: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

Topic:

Molecular Dynamics Simulations

Page 3: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

Outline:

Part I. Molecular Dynamics and LAMMPS code

Part II. Application 1: Melting and cooling of nanostructures

Part III. Application 2: Mechanical stress and Electron beam

irradiation

3

Page 4: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

Part I:

Molecular Dynamics

and LAMMPS code

Page 5: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

5

Molecular Dynamics

Basic concepts

Defects

What we can study with

MD?

Molecular Dynamics (MD) is a computational method to

predict the movement of an atom under a force contributed

by other atoms.

Heterostructures Low-dimensional

systems

2D materials 0D materials

Nanotubes and

nanowires

Page 6: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

6

Molecular Dynamics

Algorithm for MD

U: Interaction potential

among the atoms

(Force Field)

Second

Newton Law

Maximum

simulation time

Page 7: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

7

Molecular Dynamics

How could we perform

a MD simulation?

Private code

Open source code

We can develop our own

MD code employing:

C++

Python

Fortran

Java, etc.

Commercial code

You have to pay for it.

Free access.

Page 8: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

8

LAMMPS: Large-scale Atomic/Molecular Massively

Parallel Simulator

Page 9: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

9

Scope:

Classical molecular dynamics (MD) code.

Open source, highly portable C++.

Run in serial or parallel.

Easy to download, install and run !!!

Atomistic, mesoscale and coarse-grain simulations.

Three primary communities are supported by force fields,

boundary conditions and diagnostics:

- Biomolecules and polymers (soft materials)

- Solids materials science

- Mesoscale to continuum

LAMMPS code

Page 10: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

10

LAMMPS code

Overview

Self-assembled

monolayers

Electrochemical

absorption of OH

Electrocatalytic activity

of gold nanoparticles

Chemical vapor

deposition

Page 11: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

11

LAMMPS code

Overview

DNA base detection

Thermal

transport in

nanomaterials

Growth of

nanowires Electron beam

irradiation

Page 12: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

How could I get this code?

12

URL: lammps.sandia.gov

Page 13: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

INPUT file

13

Commands

Page 14: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

14

Example 1: energy minimization

Generate a perfect graphene flake and found the configuration

with minimal energy. Perform the same process for a defected

graphene flake.

Page 15: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

15

Example 1: energy minimization

“units metal”:

Options:

Options:

Options:

Page 16: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

Example 1: energy minimization

Options:

Options:

16

Page 17: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

Example 1: energy minimization

Options:

17

Options:

Page 18: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

18

Example 1: energy minimization

Options:

Options:

Page 19: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

19

Example 1: energy minimization

Options:

Options:

Page 20: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

20

Example 1: energy minimization

Options:

Options:

Page 21: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

21

Example 1: energy minimization

Options:

Options: Options:

RUN LAMMPS: Open a console

and write,

$ lmp < lammps.inp

Page 22: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

22

XYZ file Number

of atoms

Chemical

symbol of

the atoms

Atomic

positions (x,y,z)

Page 23: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

23

VMD Visualizer

Open a console and

write: VMD.

It is also possible to do:

>$ vmd file.xyz

Page 24: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

24

Example 1: energy minimization

Generate a perfect graphene flake and found the configuration

with minimal energy. Perform the same process for a defected

graphene flake.

Without defects With defects

Page 25: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

25

Example 2: thermal relaxation

Generate a perfect silver bulk structure (fcc structure, L=2.5 nm).

Then, perform the following tasks:

Thermal relaxation at 300 K for 20 ps and calculate the total

energy of the system.

Make a plot of the temperature dependence of the total energy.

Temperature range: 300 – 1500 K and simulation time = 500 ps.

Page 26: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

26

Example 2: thermal relaxation

Page 27: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

27

Example 2: thermal relaxation

We use this command to control the temperature of the system under a NVT ensemble. fix ID ID-group nvt temp Tstart TFinal TDamp

Page 28: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

28

Example 2: thermal relaxation

We define new variables that we want to analyze and save them in the file “data.out”. The data is saved over an specific range of time (average). In this case we take the average among the values corresponding to 100, 200, 300, 400, ……, 1000 timesteps.

This command defines the simulation time:

simulation time = timestep*#run

Page 29: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

29

Example 2: thermal relaxation

Generate a perfect silver bulk

structure (fcc structure, L=2.5

nm). Then, perform the

following tasks:

Thermal relaxation at 300 K

for 20 ps and calculate the

total energy of the system.

Total energy = -2396.25 eV

Page 30: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

LAMMPS code

30

Example 2: thermal relaxation

Generate a perfect silver bulk

structure (fcc structure, L=2.5

nm). Then, perform the

following tasks:

Thermal relaxation at 300 K

for 20 ps and calculate the

total energy of the system.

Make a plot of the

temperature dependence of

the total energy. Temperature

range: 300 – 1500 K and

simulation time = 500 ps.

Page 31: Computersimulation in der Institute for Materials Science ...rgutierrez/CSM_2014/Praktikum_4... · Institute for Materials Science, Chair of Materials Science and Nanotechnology Outline:

Institute for Materials Science, Chair of Materials Science and Nanotechnology

31