A Brief User’s Guide and Developer’s Introduction to...

31
R. S. Elliott Start from the beginning (Linux setup) Building KIM and LAMMPS Test the setup with the KIM example in LAMMPS Setup to execute an OpenKIM Test with the local LAMMPS Prepare and run the Tests locally Compare the results 1/31 A Brief User’s Guide and Developer’s Introduction to OpenKIM Ryan S. Elliott and Ellad B. Tadmor [email protected] University of Minnesota, Minneapolis, MN, USA Funding from NSF: CDI & CDS&E LAMMPS Workshop and Symposium Albuquerque, NM — Aug. 1–3, 2017

Transcript of A Brief User’s Guide and Developer’s Introduction to...

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

1/31

A Brief User’s Guide and Developer’sIntroduction to OpenKIM

Ryan S. Elliott and Ellad B. Tadmor

[email protected]

University of Minnesota, Minneapolis, MN, USA

Funding from NSF: CDI & CDS&E

LAMMPS Workshop and SymposiumAlbuquerque, NM — Aug. 1–3, 2017

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

2/31

Outline

1 Start from the beginning (Linux setup)

2 Building KIM and LAMMPS

3 Test the setup with the KIM example in LAMMPS

4 Setup to execute an OpenKIM Test with the local LAMMPS

5 Prepare and run the Tests locallyJohnson ModelMishin–Mehl Model

6 Compare the results

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

3/31

Initial filesThis version of Install.py will be included in the next stable release of LAMMPS

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

4/31

Vagrant fileVagrant (http://www.vagrantup.com) and Virtual Box (http://www.virtualbox.org) are not necessary.

This demonstration should work on most Linux systems.

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

5/31

Boot the VM

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

6/31

Login to the VM

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

7/31

Install the compilers

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

8/31

Unpack LAMMPS

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

9/31

The KIM Install.py script

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

10/31

OpenKIM Cu Models

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

11/31

The Mishin–Mehl EAM Model

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

12/31

Build KIM with example Models and Mishin–Mehl

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

13/31

Locally available Model listing

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

14/31

Build LAMMPS with KIM support

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

15/31

Find the KIM example provided with LAMMPS

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

16/31

Run the KIM example in LAMMPS

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

17/31

Put LAMMPS (temporally) on the system PATH

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

18/31

Find OpenKIM.org Test Drivers that use LAMMPS

Nearly all OpenKIM.org Test Drivers use either:Atomic Simulation Environment (ASE) OR LAMMPS

The Test Drivers that use LAMMPS are:

• ClusterEnergyAndForces TD 000043093022 001

• CohesiveEnergyVsLatticeConstant TD 554653289799 001

• Grain Boundary Symmetric Tilt Relaxed Energy vs Angle Cubic Crystal TD 410381120771 000

• LammpsExample2 TD 887699523131 002

• LammpsExample TD 567444853524 003

• LatticeConstant2DHexagonalEnergy TD 034540307932 000

• LatticeConstantHexagonalEnergy TD 942334626465 002

• LinearThermalExpansionCoeffCubic TD 522633393614 000

• TriclinicPBCEnergyAndForces TD 892847239811 001

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

19/31

OpenKIM.org Test Drivers

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

20/31

OpenKIM.org LAMMPS Test Driver

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

21/31

Cu FCC Test from OpenKIM.org

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

22/31

Download the Test and Test Driver

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Johnson Model

Mishin–Mehl Model

Compare theresults

23/31

Unpack the Test and Test Driver

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Johnson Model

Mishin–Mehl Model

Compare theresults

24/31

Listing of Test files and pipeline.stdin.tpl

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Johnson Model

Mishin–Mehl Model

Compare theresults

25/31

Preparing the ex model Cu PF Johnson Test

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Johnson Model

Mishin–Mehl Model

Compare theresults

26/31

Running the ex model Cu PF Johnson Test

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Johnson Model

Mishin–Mehl Model

Compare theresults

27/31

Results from the ex model Cu PF Johnson Test

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Johnson Model

Mishin–Mehl Model

Compare theresults

28/31

Preparing and running the Mishin–Mehl Test

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Johnson Model

Mishin–Mehl Model

Compare theresults

29/31

Results from the Mishin–Mehl Test

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

30/31

Listing of results directories

R. S. Elliott

Start from thebeginning(Linux setup)

Building KIMand LAMMPS

Test the setupwith the KIMexample inLAMMPS

Setup toexecute anOpenKIMTest with thelocalLAMMPS

Prepare andrun the Testslocally

Compare theresults

31/31

Plot of Energy vs. Lattice Constant results

Using your favorite edn parser and visualization packages,we can visualize and compare the results

-4

-3.5

-3

-2.5

-2

-1.5

-1

-0.5

0

0.5

1

1.5

2.5 3 3.5 4 4.5 5 5.5

Energ

y (e

V)

Lattice spacing (angstrom)

Cohesive energy relation cubic crystal

Mishin-MehlJohnson