| 1 |
# --- Running LAMMPS --- |
| 2 |
# |
| 3 |
# The 2 files "run.in.npt", and "run.in.nvt" are LAMMPS |
| 4 |
# input scripts which link to the input scripts and data files |
| 5 |
# you hopefully have created earlier with moltemplate.sh: |
| 6 |
# system.in.init, system.in.settings, system.data |
| 7 |
# If not, carry out the instructions in "README_setup.sh". |
| 8 |
# |
| 9 |
# -- Instructions: -- |
| 10 |
# If "lmp_mpi" is the name of the command you use to invoke lammps, |
| 11 |
# then you would run lammps on these files this way: |
| 12 |
|
| 13 |
|
| 14 |
lmp_mpi -i run.in.npt # minimization and simulation at constant pressure |
| 15 |
lmp_mpi -i run.in.nvt # simulation at constant volume |
| 16 |
|
| 17 |
#(Note: The constant volume simulation lacks pressure equilibration. These are |
| 18 |
# completely separate simulations. The results of the constant pressure |
| 19 |
# simulation might be ignored when beginning the simulation at constant |
| 20 |
# volume. (This is because restart files in LAMMPS don't always work, |
| 21 |
# and I was spending a lot of time trying to convince people it was a |
| 22 |
# LAMMPS bug, instead of a moltemplate bug, so I disabled restart files.) |
| 23 |
# Read the "run.in.nvt" file to find out how to use the "read_restart" |
| 24 |
# command to load the results of the pressure-equilibration simulation, |
| 25 |
# before beginning a constant-volume run. |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
# If you have compiled the MPI version of lammps, you can run lammps in parallel |
| 32 |
#mpirun -np 4 lmp_mpi -i run.in.npt |
| 33 |
#mpirun -np 4 lmp_mpi -i run.in.nvt |
| 34 |
# (assuming you have 4 processors available) |