| 1 |
# You would probably run lammps this way: |
| 2 |
# |
| 3 |
# lmp_ubuntu -i run.in.nvt |
| 4 |
|
| 5 |
# The files "run.in.min", and "run.in.nvt" are LAMMPS input scripts which refer |
| 6 |
# to the input scripts & data files you created earlier when you ran moltemplate |
| 7 |
# system.in.init, system.in.settings, system.data |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
# ----------------------------------- |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
LAMMPS_COMMAND="lmp_mpi" |
| 17 |
|
| 18 |
# Here "$LAMMPS_BINARY" is the name of the command you use to invoke lammps |
| 19 |
# (such as lmp_ubuntu, lmp_mac_mpi, lmp_cygwin etc...). Change if necessary. |
| 20 |
|
| 21 |
# Run lammps using the following 3 commands: |
| 22 |
|
| 23 |
"$LAMMPS_COMMAND" -i run.in.min # minimize (OPTIONAL) |
| 24 |
"$LAMMPS_COMMAND" -i run.in.nvt # production run |
| 25 |
|
| 26 |
# Alternately, if you have MPI installed, try something like this: |
| 27 |
|
| 28 |
#NUMPROCS=4 |
| 29 |
#mpirun -np $NUMPROCS "$LAMMPS_COMMAND" -i run.in.min # minimize (OPTIONAL) |
| 30 |
#mpirun -np $NUMPROCS "$LAMMPS_COMMAND" -i run.in.nvt # production run |
| 31 |
|