LAMMPS (18 Feb 2013)
# This script reproduces stress trajectories from Fig. 1 in
# Ravelo, Holian, Germann, and Lomdahl, PRB 70 014103 (2004)
#
# Three thermostatting scenarios are visited: undamped (nodrag),
# damped (drag) and Nose-Hoover chain (nhchains).
#
# The axial and shear stress trajectories are printed to the
# file "stress_vs_t.dat". For the damped case, the original figure
# seems to be a plot of 2*tau, rather than tau.
#
# The script also demonstrates how to
# orient a crystal along <110>,
# and how to use the lj/cubic pair style.

units           lj
boundary        p p p

atom_style	atomic

# Set up FCC lattice with z axis along <110>

lattice                fcc 1.4142136                        orient x 0 0 1                        orient y 1 -1 0                        orient z 1 1 0
Lattice spacing in x,y,z = 1.41421 2 2

region         mycell block 0.0 5.0 0.0 5.0 0.0 5.0 units lattice
create_box     1 mycell
Created orthogonal box = (0 0 0) to (7.07107 10 10)
  1 by 2 by 2 MPI processor grid
mass           * 1.0
create_atoms   1 box
Created 1000 atoms

# Using units of Rmin, so sigma = 2^-1/6 = 0.8908987

pair_style lj/cubic
pair_coeff * * 1.0 0.8908987

# Relax box dimensions

fix             3 all box/relax aniso 0.0 vmax 1.0e-4 nreset 100

thermo          100
thermo_style	custom step temp pe etotal pxx pyy pzz lx ly lz

min_modify      line quadratic
minimize	0.0 1.0e-6 10000 100000
WARNING: Resetting reneighboring criteria during minimization (min.cpp:173)
Memory usage per processor = 2.77704 Mbytes
Step Temp PotEng TotEng Pxx Pyy Pzz Lx Ly Lz 
       0            0   -6.2937539   -6.2937539   -2.7722431   -2.7722431   -2.7722431    7.0710677    9.9999999    9.9999999 
     100            0   -6.3319018   -6.3319018  -0.75971321  -0.75971321  -0.75971321    7.0003571    9.8999999    9.8999999 
     134            0   -6.3344257   -6.3344257 -4.4436885e-13 -4.8889278e-13 -4.8955934e-13    6.9780266    9.8684199    9.8684199 
Loop time of 0.0323071 on 4 procs for 134 steps with 1000 atoms

Minimization stats:
  Stopping criterion = force tolerance
  Energy initial, next-to-last, final = 
         -6.2937539309     -6.33442568056     -6.33442568056
  Force two-norm initial, final = 3395.29 5.75073e-10
  Force max component initial, final = 1960.27 3.37121e-10
  Final line search alpha, max atom move = 1 3.37121e-10
  Iterations, force evaluations = 134 137

Pair  time (%) = 0.0166269 (51.4651)
Neigh time (%) = 0.000261307 (0.80882)
Comm  time (%) = 0.00654018 (20.2438)
Outpt time (%) = 2.61664e-05 (0.0809927)
Other time (%) = 0.0088526 (27.4014)

Nlocal:    250 ave 305 max 205 min
Histogram: 1 0 0 0 2 0 0 0 0 1
Nghost:    829 ave 874 max 774 min
Histogram: 1 0 0 0 0 0 2 0 0 1
Neighs:    5250 ave 6445 max 4305 min
Histogram: 1 0 0 2 0 0 0 0 0 1

Total # of neighbors = 21000
Ave neighs/atom = 21
Neighbor list builds = 1
Dangerous builds = 0

# Define initial velocity

velocity        all create 0.01 87287 mom yes rot yes dist gaussian
write_restart restart.equil

# Start Run #1

log log.nodrag
