Table of Contents
USER-MOLFILE package..............................................................................................................57
USER-OMP package......................................................................................................................57
USER-PHONON package..............................................................................................................57
USER-QMMM package.................................................................................................................57
USER-QTB package.......................................................................................................................58
USER-REAXC package.................................................................................................................58
USER-SMD package......................................................................................................................59
USER-SPH package........................................................................................................................59
5. Accelerating LAMMPS performance................................................................................................60
5.1 Measuring performance............................................................................................................60
5.2 General strategies......................................................................................................................61
5.3 Packages with optimized styles................................................................................................62
5.4 Comparison of various accelerator packages............................................................................64
6. How-to discussions............................................................................................................................66
6.1 Restarting a simulation.............................................................................................................66
6.2 2d simulations...........................................................................................................................68
6.3 CHARMM, AMBER, and DREIDING force fields.................................................................68
6.4 Running multiple simulations from one input script................................................................69
6.5 Multi-replica simulations..........................................................................................................71
6.6 Granular models........................................................................................................................71
6.7 TIP3P water model...................................................................................................................72
6.8 TIP4P water model...................................................................................................................73
6.9 SPC water model.......................................................................................................................75
6.10 Coupling LAMMPS to other codes........................................................................................75
6.11 Visualizing LAMMPS snapshots............................................................................................76
6.12 Triclinic (non-orthogonal) simulation boxes..........................................................................77
6.13 NEMD simulations.................................................................................................................81
6.14 Finite-size spherical and aspherical particles..........................................................................81
6.15 Output from LAMMPS (thermo, dumps, computes, fixes, variables)....................................85
6.16 Thermostatting, barostatting, and computing temperature.....................................................89
6.17 Walls.......................................................................................................................................91
6.18 Elastic constants......................................................................................................................92
6.19 Library interface to LAMMPS................................................................................................93
6.20 Calculating thermal conductivity............................................................................................94
6.21 Calculating viscosity...............................................................................................................95
6.22 Calculating a diffusion coefficient..........................................................................................96
6.23 Using chunks to calculate system properties..........................................................................97
6.24 Setting parameters for the kspace_style pppm/disp command...............................................99
6.25 Polarizable models................................................................................................................100
6.26 Adiabatic core/shell model...................................................................................................101
6.27 Drude induced dipoles..........................................................................................................104
7. Example problems...........................................................................................................................106
8. Performance & scalability...............................................................................................................108
9. Additional tools...............................................................................................................................109
amber2lmp tool.............................................................................................................................110
binary2txt tool...............................................................................................................................110
ch2lmp tool...................................................................................................................................110
chain tool.......................................................................................................................................110
LAMMPS Users Manual
ii