Hands-on: Data analysis and advanced scripting. Mario Orsi m.orsi@qmul.ac.uk www.orsi.sems.qmul.ac.uk



Similar documents
Hands-on exercises on solvent models & electrostatics EMBnet - Molecular Modeling Course 2005

Summary. Load and Open GaussView to start example

PyRy3D: a software tool for modeling of large macromolecular complexes MODELING OF STRUCTURES FOR LARGE MACROMOLECULAR COMPLEXES

Trace Layer Import for Printed Circuit Boards Under Icepak

OPTIMIZATION OF VENTILATION SYSTEMS IN OFFICE ENVIRONMENT, PART II: RESULTS AND DISCUSSIONS

Customer Training Material. Lecture 2. Introduction to. Methodology ANSYS FLUENT. ANSYS, Inc. Proprietary 2010 ANSYS, Inc. All rights reserved.

Word 2010: Mail Merge to with Attachments

Sentaurus Workbench Comprehensive Framework Environment

Data Visualization for Atomistic/Molecular Simulations. Douglas E. Spearot University of Arkansas

CFD SIMULATION OF SDHW STORAGE TANK WITH AND WITHOUT HEATER

Analysis, post-processing and visualization tools

CHEMICAL FORMULA COEFFICIENTS AND SUBSCRIPTS. Chapter 3: Molecular analysis 3O 2 2O 3

1 FTire/editor s Main Menu 1

ME6130 An introduction to CFD 1-1

Turbulence, Heat and Mass Transfer (THMT 09) Poiseuille flow of liquid methane in nanoscopic graphite channels by molecular dynamics simulation

Appendix A. An Overview of Monte Carlo N-Particle Software

Beginner s Matlab Tutorial

A TOOL FOR SUPPORTING THE PROCESS OF PROPERTY MANAGEMENT AND THE CREATION OF TECHNICAL DRAWINGS

Installing and Running the Google App Engine On Windows

Dimensional analysis is a method for reducing the number and complexity of experimental variables that affect a given physical phenomena.

Group Mail Lists. Group Mailing Lists. Populating a Global Mail Lists 4. The Problem 6. The Solution 8. Scheduling Regular Updates 17

MATLAB DFS. Interface Library. User Guide

MultiAlign Software. Windows GUI. Console Application. MultiAlign Software Website. Test Data

PaperStream Connect. Setup Guide. Version Copyright Fujitsu

Contamination Transport from Wafer to Lens

SAnDReS Tutorial 01 Prof. Dr. Walter F. de Azevedo Jr.

Linear Static Analysis of a Cantilever Beam Using Beam Library (SI Units)

Microsoft Windows PowerShell v2 For Administrators

10.7 Kinetic Molecular Theory Kinetic Molecular Theory. Kinetic Molecular Theory. Kinetic Molecular Theory. Kinetic Molecular Theory

Program COLANY Stone Columns Settlement Analysis. User Manual

How is EnSight Uniquely Suited to FLOW-3D Data?

Lesson 3. Chemical Bonding. Molecular Orbital Theory

IDEAL AND NON-IDEAL GASES

SQL Server Instance-Level Benchmarks with DVDStore

MATLAB Functions. function [Out_1,Out_2,,Out_N] = function_name(in_1,in_2,,in_m)

Project 2B Building a Solar Cell (2): Solar Cell Performance

We know from the information given that we have an equal mass of each compound, but no real numbers to plug in and find moles. So what can we do?

CE 504 Computational Hydrology Computational Environments and Tools Fritz R. Fiedler

Mesh Discretization Error and Criteria for Accuracy of Finite Element Solutions

Name Partners Date. Energy Diagrams I

A Step-by-Step Tutorial: Divergence Time Estimation with Approximate Likelihood Calculation Using MCMCTREE in PAML

FIRST STEPS WITH SCILAB

CHAPTER 3 Calculations with Chemical Formulas and Equations. atoms in a FORMULA UNIT

Test Bank - Chapter 3 Multiple Choice

Lab 0: Preparing your laptop for the course OS X

LECTURE 11 : GLASSY DYNAMICS - Intermediate scattering function - Mean square displacement and beyond - Dynamic heterogeneities - Isoconfigurational

Prepare the environment Practical Part 1.1

Balancing Chemical Equations

Introduction to acoustic imaging

TDS. Dirk Rosenthal Department of Inorganic Chemistry Fritz-Haber-Institut der MPG Faradayweg 4-6, DE Berlin

Clouds. Ulrike Lohmann Department of Physics and Atmospheric Science, Dalhousie University, Halifax, N. S., Canada

Modeling with Python

Mulliken suggested to split the shared density 50:50. Then the electrons associated with the atom k are given by:

Programming Exercise 3: Multi-class Classification and Neural Networks

Tutorial 2: Reading and Manipulating Files Jason Pienaar and Tom Miller

Advanced Visualization for Chemistry

Introduction to CFD Analysis

Python Analysis / LATAnalysisScripts / Lightcurves / Fitting Issues

CHAPTER 12. Gases and the Kinetic-Molecular Theory

Manual Analysis Software AFD 1201

SIMPLIFIED PERFORMANCE MODEL FOR HYBRID WIND DIESEL SYSTEMS. J. F. MANWELL, J. G. McGOWAN and U. ABDULWAHID

University Turbine Systems Research 2012 Fellowship Program Final Report. Prepared for: General Electric Company

Probit Analysis By: Kim Vincent

Chapter 2 Fractal Analysis in CNC End Milling

Visualizing molecular simulations

Processing Data with rsmap3d Software Services Group Advanced Photon Source Argonne National Laboratory

The atomic packing factor is defined as the ratio of sphere volume to the total unit cell volume, or APF = V S V C. = 2(sphere volume) = 2 = V C = 4R

Psychology 205: Research Methods in Psychology

Visual Studio.NET Database Projects

Eulerian-Domain shape optimization for airbag deployment

COC131 Data Mining - Clustering

Introduction to RStudio

This presentation explains how to monitor memory consumption of DataStage processes during run time.

Economic Mass Producible Mirror Panels for Solar Concentrators

Computational Mathematics with Python

ExcelInterface A Tool for Interfacing Dymola through Excel

MS Data Analysis I: Importing Data into Genespring and Initial Quality Control

Certified Instructors & Curriculum

DKE Fiber Tractography Module: User s Guide Version 1 Release Date: July 2015

Experiment 5 ~ Friction

Surface Tension. the surface tension of a liquid is the energy required to increase the surface area a given amount

Creating a universe on Hive with Hortonworks HDP 2.0

COS702; Assignment 6. Point Cloud Data Surface Interpolation University of Southern Missisippi Tyler Reese December 3, 2012

Integrative Optimization of injection-molded plastic parts. Multidisciplinary Shape Optimization including process induced properties

Using Monte Carlo method for simulation of electromagnetic radiation penetration in body ' s tissues

Surface Area and Porosity

1 Energy Data Problem Domain. 2 Getting Started with ESPER. 2.1 Experimental Setup. Diogo Anjos José Cavalheiro Paulo Carreira

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

Assignment 4 CPSC 217 L02 Purpose. Important Note. Data visualization

KaleidaGraph Quick Start Guide

Example: Credit card default, we may be more interested in predicting the probabilty of a default than classifying individuals as default or not.

Visual Tutorial Basic Edition 1. Visual. Basic Edition Tutorial.

Data Mining Lab 5: Introduction to Neural Networks

Gases. Macroscopic Properties. Petrucci, Harwood and Herring: Chapter 6

Computational Assignment 4: Discriminant Analysis

Kinetic Friction. Experiment #13

Appendix 4 Simulation software for neuronal network models

Physics 9e/Cutnell. correlated to the. College Board AP Physics 1 Course Objectives

Creating a Java application using Perfect Developer and the Java Develo...

Transcription:

Hands-on: Data analysis and advanced scripting Mario Orsi m.orsi@qmul.ac.uk www.orsi.sems.qmul.ac.uk LAMMPS workshop, ICTP Trieste, 25 March 2014

Learning objectives On-the-fly analysis: use LAMMPS to compute/accumulate/average properties of interest while the simulation is running Use variable commands to perform simple calculations Use compute and fix commands for more elaborate calculations Post-processing: use external tools (Python scripts) to perform additional analysis at the end of the simulation This hands-on activity was derived from actual research work (see paper in reference folder)

Bulk water basic simulation Enter directory simulation-bulk/1 Inspect input files: in.bulk, forcefield.tip3p, data.singletip3p Run: $ lammps < in.bulk Inspect output Visualize: Directly (.jpg,.mpg) With VMD (.lammpstrj) Pregenerated visuals available in viz subdirectory

Bulk water potential energy Work in directory 1/ Task: modify input script to compute and output the potential energy per molecule in units of kcal/mol Hints: Check out compute pe command Remember to normalize by the number of molecules Result should be ~ -9.9 kcal/mol When finished, compare your script and results with content of directory 2/

Bulk water mass density Work in directory 2/ Task: modify input script to compute and output the system density in units of g/cm 3 Hints: Use variable commands: To define useful constants (molecular mass, Avogadro s number, conversion factors, etc.) To perform the actual calculation Result should be ~ 1 g/cm 3 When finished, compare your script and results with content of directory 3/

Bulk water radial distribution function (RDF) Work in directory 3/ Task: modify input script to compute and output the oxygen-oxygen RDF Hints: Use compute rdf Obtain oxygen type from data file Use fix ave/time to generate output file When finished, compare your script and results with content of directory 4/

Bulk water radial distribution function (RDF) post-processing Work in directory 4/ Output goo.rdf contains comments, extra data, cannot be plot directly File goo.rdf needs to be post-processed Check out analysis-tools/rdf2data.py (open with text editor and see comments for usage instructions) Example: $ python../../analysis-tools/rdf2data.py goo.rdf > goo.dat goo.dat is now 2-column matrix (r goo) which can be plotted together with reference experimental data: $ xmgrace goo.dat../../reference/goo-exp.dat Compare results with 4-post

RDF: simulation vs. experiment Simulation curve is noisy because of short simulation time. For converged results, see paper in reference folder.

Bulk water mean squared Work in directory 4 displacement (MSD) Task: compute and output the MSD Hints: Use compute msd Assume oxygen MSD = water MSD Use fix ave/time to generate output file When finished, compare your script and results with content of directory 5

Bulk water Diffusion Work in directory 5 Diffusion coefficient defined as: D = MSD(t) / 6t with t sufficiently large to get convergence MSD data can be post-processed to obtain D: Check out analysis-tools/msd2diff.py (open with text editor and see comments for usage instructions) Example: $ python../../analysis-tools/msd2diff.py wat.msd 2 3 > wat.diff Compare with 5-post

MSD and diffusion Converged results from paper in reference folder

Water/vapor interface basic simulation Enter directory simulation-interface/1 Inspect input script Notice how the change_box command is used to increase z dimension and create water layers separated by vacuum layers Run: $ lammps < in.liquid-vapor Inspect output Visualize: Directly (.jpg,.mpg) With VMD (.lammpstrj) Pregenerated visuals available in viz subdirectory

Water surface tension Work in directory 1/ Task: modify input script to compute and output the surface tension of the water-vacuum system in units of mn/m (millinewton/meter) Surface tension = Lz * [ Pz - ( Px + Py ) / 2 ] / 2 Hints: Use equal-style variables Average with fix ave/time Define conversion factors between LAMMPS units and required output units When finished, compare your script and results with content of directory 2/

Water number density profile Work in directory 2/ Task: modify input script to compute and output the number density profile across the water-vacuum interface Hints: Use fix ave/spatial with appropriate keywords Compute individual profiles for H and O When finished, compare your script and results with content of directory 3/

Water mass density profile Work in directory 3/ Task: post-process H and O number density profiles to obtain total H 2 O mass density profile Hints: Use../../analysis-tools/numDens2massDens.py (open file with text editor and see comments about usage) Compute individual profiles for H and O To get total profile, see../../analysistools/sumprofile.py When finished, compare your results with content of directory 3-post/

Mass density profile across watervapor interface for various models Converged results (see paper in reference folder)