Lab 1: Empirical Energy Methods Due: 2/14/18

Similar documents
Lab 1: Handout GULP: an Empirical energy code

Molecular Dynamics Simulations

Lab 1: Handout GULP: an Empirical energy code

IAP 2006: From nano to macro: Introduction to atomistic modeling techniques and application in a case study of modeling fracture of copper (1.

VPython Class 2: Functions, Fields, and the dreaded ˆr

5.6 Solving Equations Using Both the Addition and Multiplication Properties of Equality

Department of Chemical Engineering University of California, Santa Barbara Spring Exercise 2. Due: Thursday, 4/19/09

Introduction. Pre-Lab Questions: Physics 1CL PERIODIC MOTION - PART II Spring 2009

Department of Chemical Engineering University of California, Santa Barbara Spring Exercise 3. Due: Thursday, 5/3/12

Updated 2013 (Mathematica Version) M1.1. Lab M1: The Simple Pendulum

Model Building An Introduction to Atomistic Simulation

Tutorial Three: Loops and Conditionals

Introduction. Pre-Lab Questions: Physics 1CL PERIODIC MOTION - PART II Fall 2009

Problem Set 2: First-Principles Energy Methods

Assignment 1 Physics/ECE 176

Defects in Crystals. Image borrowed from who got it from Davis & Reynolds 1996.

Lab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations

MAGICS Workshop Thermal Conductivity Hands-On Session

Potentials, periodicity

Lab 4: Handout Molecular dynamics.

Predicting the Structure of Solids by DFT

MatSci 331 Homework 4 Molecular Dynamics and Monte Carlo: Stress, heat capacity, quantum nuclear effects, and simulated annealing

Lectures about Python, useful both for beginners and experts, can be found at (

Theoretical Material Science: Electronic structure theory at the computer Exercise 14: Brillouin zone integration

ab initio Lattice Vibrations: Calculating the Thermal Expansion Coeffcient Felix Hanke & Martin Fuchs June 30, 2009 This afternoon s plan

DATA SCIENCE SIMPLIFIED USING ARCGIS API FOR PYTHON

EAM. ReaxFF. PROBLEM B Fracture of a single crystal of silicon

Materials that you may find helpful when working through this exercise

Satellite project, AST 1100

Computational Modeling of Li Diffusion Using Molecular Dynamics

Due: since the calculation takes longer than before, we ll make it due on 02/05/2016, Friday

1 Bulk Simulations in a HCP lattice

Homework 2: Structure and Defects in Crystalline and Amorphous Materials

MATHEMATICAL INDUCTION

Table of Contents. Table of Contents Computing the piezoelectric tensor for AlN. Introduction. Computing the piezoelectric tensor

Introduction to Hartree-Fock calculations in Spartan

Dynamics of the Atmosphere GEMPAK Lab 3. 3) In-class exercise about geostrophic balance in the real atmosphere.

LAST TIME..THE COMMAND LINE

Section 0.6: Factoring from Precalculus Prerequisites a.k.a. Chapter 0 by Carl Stitz, PhD, and Jeff Zeager, PhD, is available under a Creative

Manual 06 for MD++ Visualization. Keonwook Kang and Wei Cai. December 10, 2005

Table of Contents. Table of Contents LAMMPS trajectories into QuantumATK

Molecular Dynamics Simulation of Nanometric Machining Under Realistic Cutting Conditions Using LAMMPS

Chapter 3 Getting started with molecular dynamics modeling

Jaguar DFT Optimizations and Transition State Searches

An ASE Calculator for OpenMX: providing automation of running OpenMX

Making the grade: Part II

A GUI FOR EVOLVE ZAMS

Table of Contents. Table of Contents Exploring graphene. Build a graphene sheet Build a CNT Transmission spectrum of a GNR Twisted nanoribbon

Spontaneous polarization of ferroelectric BaTiO3

Parameter identification of damage parameters of LS-DYNA GURSON material model from a tensile test. Lectures. Johannes Will

Welcome to the Machine Learning Practical Deep Neural Networks. MLP Lecture 1 / 18 September 2018 Single Layer Networks (1) 1

epistasis Documentation

Algebra II (Common Core) Summer Assignment Due: September 11, 2017 (First full day of classes) Ms. Vella

Model-building and parameter estimation

Exercises: In the following you find some suggestions for exercises, which teach you various tasks one may perform with WIEN2k.

From Atoms to Materials: Predictive Theory and Simulations

NLP Homework: Dependency Parsing with Feed-Forward Neural Network

Pytorch Tutorial. Xiaoyong Yuan, Xiyao Ma 2018/01

Lecture 10: Powers of Matrices, Difference Equations

Machine Learning & Data Mining Caltech CS/CNS/EE 155 Set 2 January 12 th, 2018

Table of Contents. Table of Contents Spin-orbit splitting of semiconductor band structures

A First Course on Kinetics and Reaction Engineering Example 1.4

Lecture 2: Linear regression

Graphical Analysis and Errors - MBL

Conjugate-Gradient. Learn about the Conjugate-Gradient Algorithm and its Uses. Descent Algorithms and the Conjugate-Gradient Method. Qx = b.

Chapter 2. Polynomial and Rational Functions. 2.5 Zeros of Polynomial Functions

Physics E-1ax, Fall 2014 Experiment 3. Experiment 3: Force. 2. Find your center of mass by balancing yourself on two force plates.

Math 5a Reading Assignments for Sections

Project 4/5 - Molecular dynamics part II: advanced study of Lennard-Jones fluids, deadline December 1st (noon)

Lab 6 - Electron Charge-To-Mass Ratio

Fundamentals and applications of Density Functional Theory Astrid Marthinsen PhD candidate, Department of Materials Science and Engineering

Supervisors: Committee: Investigation of H-center diffusion in sodium chloride by molecular dynamics simulation

nanohub.org learning module: Prelab lecture on bonding and band structure in Si

OPSIAL Manual. v Xiaofeng Tan. All Rights Reserved

Before we start: Important setup of your Computer

EXPERIMENT #5 The Franck-Hertz Experiment: Electron Collisions with Mercury

Table of Contents. Table of Contents Using the Crystal Builder. Introduction Crystal structure of black phosphorus Phosphorene and its bandstructure

CHEM 498Q / CHEM 630Q: Molecular Modeling of Proteins TUTORIAL #3a: Empirical force fields

Reaxys Pipeline Pilot Components Installation and User Guide

WeatherHawk Weather Station Protocol

Spring 2018 Math Week Week 1 Task List

Worksheet 1: Integrators

School of Materials Science & Engineering

Practical Bioinformatics

QUANTUM CHEMISTRY WITH GAUSSIAN : A VERY BRIEF INTRODUCTION (PART 2)

AOS 452 Lab 13 Handout Upper-Level Frontogenesis and Sawyer-Eliassen Circulations

MultiDop: An open-source, Python-powered, multi-doppler radar analysis suite

F.3 Special Factoring and a General Strategy of Factoring

SV6: Polynomial Regression and Neural Networks

Math Lab 10: Differential Equations and Direction Fields Complete before class Wed. Feb. 28; Due noon Thu. Mar. 1 in class

Quick-and-Easy Factoring. of lower degree; several processes are available to fi nd factors.

IAST Documentation. Release Cory M. Simon

MATH 31B: BONUS PROBLEMS

Quadratic Formula: - another method for solving quadratic equations (ax 2 + bx + c = 0)

Using the EartH2Observe data portal to analyse drought indicators. Lesson 4: Using Python Notebook to access and process data

Molecular Dynamics, Stochastic simulations, and Monte Carlo

Lab #2 - Two Degrees-of-Freedom Oscillator

ECE521 W17 Tutorial 1. Renjie Liao & Min Bai

CSCE 155N Fall Homework Assignment 2: Stress-Strain Curve. Assigned: September 11, 2012 Due: October 02, 2012

Introduction to the Scanning Tunneling Microscope

Transcription:

Lab 1: Empirical Energy Methods Due: 2/14/18 General remarks on scientific scripting Scientific scripting for managing the input and output data is an important component of modern materials computations, and you will be learning the basic tools while working on the lab exercises. For running computational codes we will be using simple Python functions as wrappers. The advantage of Python is that it has convenient data processing and text parsing tools built-in and more complex numerical operations can be also performed by importing common libraries, such as NumPy and SciPy. This makes it easy to compose rather complex workflow by connecting functions that each perform a specific task: making a crystal structure, preparing an input file, running the actual code, parsing and analyzing results, etc. Instead of hard-coding the scripts we will be using the data-flow programming model. Preparing, manipulating and visualizing crystal structures with ASE For preparing and manipulating crystal structures we will be using the ASE Python library. The documentation is quite accessible and even includes a refresher of Python basics. You can read it here https://wiki.fysik.dtu.dk/ase/python.html. In the labs we will explore various functionalities of ASE, particularly how to make crystal structures, generate supercells, remove an atom to form a vacancy, and change an atom s position. Do not worry about calculators, we will not be using them. To learn how to use ASE we will use the Jupyter notebook file included in the lab materials. Understanding the LAMMPS input file For classical potential computations we will use LAMMPS, one of the leading modern classical molecular dynamics codes, developed and maintained by the Sandia National Lab http://lammps.sandia.gov/. You will familiarize yourself with LAMMPS and input/output file formats as part of exercises below. First, let us take a look at the input file for calculating the total energy of an Al crystal unit cell. By default we name the input file lammps.in. Note that the # sign indicates a comment line that LAMMPS ignores. Please take a look at the full input documentation here: http://lammps.sandia.gov/doc/section_commands.html Block 1 defines the basic parameters of the calculation, such as units, what types of atoms are used, periodicity, and the location of the structure file lammps.data. Block 2 describes the potential. In this example we have explicit LJ parameters and the cutoff radius. We can also specify a potential from a filename (see lines commented out). You can find 1

many potentials in the LAMMPS /potentials/ directory, and on the NIST page http://www.ctcms.nist.gov/potentials/ Block 3 first line tells the code how to print the results to the output file. Second line run 0 says to only run a single-step energy calculation, without any dynamics. The commented lines below are needed to perform lattice parameter and atomic optimization using the conjugate gradient minimization algorithm. Block 4 asks the code to define and output several useful computed quantities in a pretty way. # ---------- 1. Initialize simulation --------------------- units metal atom_style atomic dimension 3 boundary p p p read_data /home/bond/work/lab1/work/3.9/lammps.data # ---------- 2. Specify interatomic potential ------------- pair_style lj/cut 4.5 pair_coeff 1 1 0.392 2.620 4.5 # pair_style eam/alloy # pair_coeff * * /<path>/al_zhou.eam.alloy Al # ---------- 3. Run the calculation ---------------- # -- perform a single-point energy calculation only run 0 # -- include optimization of the unit cell parameter # fix 1 all box/relax iso 0.0 vmax 0.001 # -- enable optimization of atomic positions (and the cell) # min_style cg # minimize 1e-10 1e-10 1000 10000 # ---- 4. Define and print useful variables ------------- variable natoms equal "count(all)" variable totenergy equal "pe" variable length equal "lx" print "Total energy (ev) = ${totenergy}" print "Number of atoms = ${natoms}" print "Lattice constant (Angstoms) = ${length}" # -------------------------------- 2

You can run LAMMPS with this input file directly from command line like so: $ lmp_ubuntu < lammps.in > lammps.out But running codes manually is an outdated way of computing, so you will be learning how to automate common tasks using Python workflows. You will be given example scripts and the wrapper library to help you get started. The Jupyter notebook file also provides examples of ways to construct atomic structures. To get the lab libraries and samples go to the ~/Software directory and type: bond@vmint ~/Software $ git clone https://github.com/bkoz37/labutil.git To get the latest updates to the scripts and libraries in the future go into the labutil director and type git pull. Problem 1: (20 points) Lattice constants and energies Goal: Find the ground-state energy and lattice parameter of FCC Al. In nature, a crystal in equilibrium is automatically in the lowest energy configuration (ground-state). That is, the lattice energy being at a minimum defines the lattice geometry and atomic positions. The exact crystal geometry is generally not known a priori in simulations. The best we can do is to start with a reasonable guess and try to find the lowest energy configuration from there. If the initial guess is close enough to the ground state, a feasible approach is to slightly adjust the atomic positions and lattice parameter until an energy minimum is found. This is commonly called relaxation, or optimization. A. Relaxing FCC Al using a Lennard-Jones (LJ) potential with ε=0.392ev and σ=2.62 A a. Find the equilibrium lattice constant by manually adjusting the lattice parameter. Start with a lattice parameter close to the relaxed lattice parameter (e.g. 3.9 A). Plot the crystal energy as a function of lattice parameter (from above to below the optimized value obtained in a), and identify the equilibrium lattice constant. Before running the calculations think of a reasonable range for the lattice constant, and how many steps to include. b. Calculate the lattice constant and cohesive energy (in ev) for FCC Al using the LJ potential and the built-in structure optimizer. See notes below on the input command to turn on lattice optimization. 3

B. Repeat the calculations by using the supplied Embedded-Atom-Method (EAM) potential (potential file: Al_zhou.eam.alloy in the LAMMPS /potential directory). C. Make a 2x2x2 supercell of the structure and compute the cohesive energy again as in part B. How do the results change, and why? D. The experimental lattice constant of Al is 4.046 A. How do the calculated lattice constants (LJ vs. EAM) compare to experiment? Is this expected? Comment on the absolute values of the lattice energy and their significance. Problem 2: (30 points) Vacancy formation energy Goal: Compute the vacancy formation energy in FCC Al. Learn about practical aspects of total energy calculations such as: supercell convergence, effect of relaxations, and shortcomings of some potentials. The vacancy formation energy Ev is defined as the energetic cost to remove an atom from the crystal and put it into the bulk: E v E n 1 n 1 E n perfect where Eperfect and En-1 are the energies of the perfect supercell with n atoms and of the defect cell, respectively. Because Eperfect scales with the number of atoms in the supercell, we can scale it with a multiplier (n-1)/n so that we re comparing the energy of a defective cell with n - 1 atoms to that of a perfect cell with n 1 atoms. A. Compute the vacancy formation energy with the provided LJ potential as a function of different supercell sizes, at the lattice parameter you found in Problem 1. Use ASE to build the supercell and to remove an atom. Do not relax the atoms after you took out an atom. What is the ratio of the vacancy formation energy to the cohesive energy? Is this what you would expect? B. Repeat your calculation, but this time relax the cell after creating the vacancy. How does the vacancy formation energy change compared to the unrelaxed calculations? C. Compute the vacancy formation energy using the provided EAM potential. Do it as accurately as you can. Use what you learned above. You may do it any way you want, but document your work. D. The experimental vacancy formation energy in fcc Al is 0.66 ev. How do the final results from B and C compare? Comment on your result in the light of your findings from problem 1. 4

Problem 3: (40 points) Surface energy of FCC Al Goal: Calculation of surface energies. Apply your know-how regarding relaxation and convergence to a different problem. A. Compute the surface energy of a solid (100) surface of FCC Al using the LJ potential. How you do this is up to you, but consider the issues of supercell sizes in all directions and the effect of relaxations. Document your approach and write down and explain the formulas you use. Give your result in ev/a 2. Hints: Think about which dimension supercell you use, keeping in mind periodic boundary conditions. Be computationally efficient. There are two size convergence issues to consider. B. Compute the surface energy of a solid (100) surface of Al using an EAM potential. Again, you may do this any way you want, but document your work. In the interest of time, you may skip relaxations. Problem 4: (5 points) Short answer When using potentials, the choice of potential is important. In this problem, we used the Lennard-Jones and EAM energy methods. A. For what other types of problems would you use Lennard-Jones potentials? B. When would you use EAM? C. When would neither be appropriate? Problem 5: (5 points) Short answer Given the simple form of the Lennard-Jones potential, why use computers to solve what at first glance appears to be a pencil and paper type problem? The following exercise should clarify the issue. Calculate the distance where the Lennard-Jones potential reaches the minimum value. 12 6 V ( r) 4 r r (In other words, express r0 in terms of ε and σ.) Plug in the values for ε and σ given for the Al Lennard-Jones potential Problem 1 and compare the result with your computed lattice parameter. Explain any discrepancies. In light of your finding, would you expect a top surface layer to relax inward or outward? 5