large scale parallel materials simulations with …...industrial forum for multiscale materials...

24
Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials Simulations with LAMMPS Dr. Axel Kohlmeyer Senior Scientific Computing Expert The Abdus Salam International Centre for Theoretical Physics & Associate Dean for Scientific Computing College of Science and Technology Temple University http://sites.google.com/site/akohlmey/

Upload: others

Post on 09-Jun-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

Large Scale Parallel MaterialsSimulations with LAMMPS

Dr. Axel Kohlmeyer

Senior Scientific Computing ExpertThe Abdus Salam International Centre

for Theoretical Physics&

Associate Dean for Scientific ComputingCollege of Science and Technology

Temple University

http://sites.google.com/site/akohlmey/

Page 2: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

2Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

What LAMMPS Is

● Large-scale Atomic/Molecular Massively Parallel Simulator● Classical Molecular Dynamics (MD) framework for a variety of

force fields and methods: biomolecules and polymers (soft matter), materials science (solids), mesoscale to continuum

● Open source, portable and extensible C++● Home page: http://lammps.sandia.gov

Page 3: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

3Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

LAMMPS General Properties

● Serial execution, MPI parallel, OpenMP parallel, CUDA and OpenCL acceleration

● Easy to compile and install, few dependencies● Many pairwise, many-body and bonded models● Analysis and post-processing during MD run,

“rerun” option for additional post-processing● Easy to extend with custom features

(usually sufficient to just add C++ classes)● Active developer and user community

(Most of LAMMPS written by >100 contributors)

Page 4: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

4Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

Not so Commonly Found Features

● Generalized Aspherical Particles (lines/meshes, “multi-bodies” with internal+external integrator)

● Stochastic Rotation Dynamics (SRD)● Grand Canonical Monte Carlo (GCMC)● Peridynamics mesoscale modeling● Atom-to-Continuum coupling to FE solvers and back● Discrete Element Modeling with CFD coupling

(LIGGGHTS + OpenFOAM = CFDEM)● Electron Force Field (eFF)● Kinetic Monte Carlo Coupling (to SPPARKS)

Page 5: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

5Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

Popular in Materials Modeling● Integrated scripting language

● Loops, conditions, variables/functions etc. allow to build workflows for complex multi-step operations

● Build complex systems from inside the MD code● Python interface for more complex scripting and

integration into external frameworks

● Hybrid and multi-scale models● Combine multiple force field types via overlays

or mechanical coupling● Coupling to external codes: FE, kMC, QM/MM

Page 6: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

6Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

Hybrid Models● Solid/liquid interfaces, solid/solid interfaces

=> mechanical coupling, simple model (LJ) for interface● Metal islands on amorphous

(LJ) substrate● Specify 2 (or more) pair

potentials:A-A, B-B, A-B, etc

● Overlay potentials:add explicit h-bondsadd coulomb

● Hybrid in two ways:potentials (pair, bond, etc)atom style (bio, metal, etc)

Page 7: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

7Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

LAMMPS Development Trends

Coupling to Other Length Scales

Enhanced Sampling Methods

More AccuratePotentials

(QM w/o QM)Coarse Grain& Mesoscale

Optimization,Load Balancing,Parallelization,Accelerators

Classical MDNot Much To Do

GUI Frontends,Visualization,

Interactive MD

Page 8: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

8Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

Methods to Bridge Time Scales

● Metadynamics, Adaptive Biasing Forces, Steered MD, Targeted MD and more=> available via specialized fixes or commands => available via packages: USER-COLVARS (ported from NAMD) or PLUMED (external)

● Temperature Accelerated MD, Parallel Replica MD, Parallel Tempering Replica Exchange=> available via internal commands=> extensions under development externally (not always or not yet contributed back)

Page 9: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

9Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

Moore's Law for Potentials

Page 10: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

10Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

Mesoscale Modeling via Peridynamics

● Particle-based meshless non-local continuum model

● Constituent model implemented as pairwise force

● Particularly suited to model fracture of brittle materials=> mesh-based models always exhibit bias in fracture=> peridynamics leads to consistent results, even when using a coarse representation (few particles)

Page 11: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

11Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

Stochastic Rotation Dynamics

● Effective model for solvated nanoparticles● No solvent-solvent interactions to compute● Simulation of micron-size partcles for seconds● Study particle diffusivity, viscosity, aggregation

Page 12: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

12Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

Atom-to-Continuum Package (AtC)

● Estimate continuum fields from atomistic simulation data through consistent coarse graining methods

● Couple atomistic and finite element regions for thermal, mechanical, electrostatic, charge and mass transport simulations

Stress field around crack at finite temperature

Compressive stress field for an atomic simulation of shock loading

Page 13: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

13Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

AtC Library Components

● Meshes (hexagonal, tetragonal)● Filters (temporal and spatial)● Coarse grain (transfer to mesh):

– mass/charge density, dipole moment– dislocation, velocity, temperature– electric potential, stress and more

● Coupling:– charge diffusion, two-temperature– mechanical (momentum)– thermal (energy) and more

Saltwater-electrode-CNT system: mesh overlaps exactly

with water-CNT atom region

Page 14: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

14Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

AtC Example: Electrostatics

- Surrogate model for electron density- Electrons segregate to tip- Potential drop across short axis of CNT- Mutual repulsion opens tip- Net charge causes net tip displacement - CNT anchored in a warm substrate

Page 15: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

15Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

AtC: Electrical Double Layers

z

V

Compact DiffusePolarization across the channelComputing the polarization field

Page 16: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

16Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

LIGGGHTS: Mesoscale Modeling for Granular Materials

● LIGGGHTS: fork of LAMMPS enhanced for discrete element modeling with CAD meshes

● Coupling to OpenFOAM (=> CFDEM) allows modeling of dry and wet granular materials

Page 17: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

17Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

CFDEM Modeling Approaches

• Immersed Boundary Method• Fictitious Domain Method

Computational Fluid Dynamics (CFD)

Discrete Element Method (DEM)

Fluid-particle interaction

• unresolved CFD-DEM

• resolved CFD-DEM

+

• CFD-DEM1• coarse grained CFD-DEM 2 • MP-PIC3 1) Goniva, C., Kloss, C., Deen, N.G., Kuipers, J.A.M. and Pirker, S. (2012): “Influence of Rolling Friction Modelling on Single Spout Fluidized Bed

Simulations”, Particuology, DOI 10.1016/j.partic.2012.05.002

2) Radl S., Radeke, Ch., Khinast, J., Sundaresan, S. (2011) : ”Parcel-Based Approach for the Simulation of Gas-Particle Flows” , Proc. CFD 2011 Conference, Trondheim, Norway

3) Andrews, M.J., O’Rourke, P.J. (1996): “The multi-phase particle-n-cell (MP-PIC) method for dense particle flow”, Int. J. Multiphase Flow, 22, 379-402

Page 18: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

18Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

Transfer Chute Dust EmissionOriginal Geometry

Cross windentrains dustfrom transfer-chute

Dust is sucked into transfer-chute

Optimized Geometry

- Transported particles modeled via LIGGGHTS- Conveyor and chute geometries from CAD meshes- Dust modeled as continuum interacting with wind via OpenFOAM

Page 19: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

19Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

Modeling of River Bed Erosion

- turbulent lift force is essential; best performance with Zanke (2003) model

Erosion profile

Publications:

Gruber, K., Kloss, C., Goniva, C: NUMERICAL AND EXPERIMENTAL STUDY OF EROSION IN OPEN CHANNEL FLOW; Proc. IHAR 2012

Zanke, U. (2003). On the influence of turbulence on the initiation of sediment motion. International Journal of Sediment Research, pp. 17-31 Chepil, W. (1961). The use of evenly spheres to measure lift and drag on wind-eroded soil grains. Soil Sci. Soc. Am, pp. 343-345

Page 20: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

Movies From Internal Visualization

● Sputter example with ambient occlusion

● Indent example using time averaged virial stress for colorization

Page 21: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

21Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

LAMMPS for Outreach:The Nano Dome

● Single person immersive, stereo-3d, haptic, and interactive simulation/visualization environment

● Combines HPC, visualization, molecular simulation, virtual reality, and STEM outreach

Page 22: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

LAMMPS MVPs

● Steve Plimpton (The Man)● Aidan Thompson, Paul Croszier (His Deputies)● Reese Jones, Jeremy Alan Templeton,

Jonathan Zimmerman (Atom-to-Continuum)● Christoph Kloss, Christoph Goniva (CFDEM)● Greg Scantlen (Nanodome)● ... and many more that don't all fit into this slide

or the photo in the background

Page 23: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

23Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

lammps.sandia.gov

Page 24: Large Scale Parallel Materials Simulations with …...Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy Large Scale Parallel Materials

Industrial Forum for Multiscale Materials Modeling and Training, 11-13 Sept. 2013, Bologna, Italy

LAMMPS Workshop & Symposium@ ICTP, March 17 – 21st 2014

● First in such activity europe after three successful workshops in Albuquerque(Feb 2010, Aug 2011, Aug 2013)

● Bring together LAMMPS contributors and users● Easier to reach from Europe and ICTP support

for researcher from developing countries● Two Tracks: a) In depth tutorial for beginners,

b) developer training for experienced users● General Symposium on March 21st 2014