| 1 |
# PREREQUISITES: |
| 2 |
# |
| 3 |
# You must use moltemplate.sh to create 3 files: |
| 4 |
# system.data system.in.init system.in.settings |
| 5 |
# |
| 6 |
# ------------------------------- Initialization Section -------------------- |
| 7 |
|
| 8 |
include "system.in.init" |
| 9 |
|
| 10 |
# ------------------------------- Atom Definition Section ------------------- |
| 11 |
|
| 12 |
read_data "system.data" |
| 13 |
|
| 14 |
# ------------------------------- Settings Section -------------------------- |
| 15 |
|
| 16 |
include "system.in.settings" |
| 17 |
include "system.in.charges" |
| 18 |
|
| 19 |
# ------------------------------- Run Section ------------------------------- |
| 20 |
|
| 21 |
|
| 22 |
# -- minimization protocol -- |
| 23 |
|
| 24 |
# Note: The minimization step is not necessary in this example. However |
| 25 |
# in general, it's always a good idea to minimize the system beforehand. |
| 26 |
|
| 27 |
thermo 50 |
| 28 |
dump 1 all custom 50 traj_min.lammpstrj id mol type x y z ix iy iz |
| 29 |
minimize 1.0e-4 1.0e-6 100000 400000 |
| 30 |
|
| 31 |
|
| 32 |
# (The "write_restart" and "read_restart" commands were buggy in 2012, |
| 33 |
# but they should work also. I prefer "write_data" and "read_data".) |
| 34 |
|
| 35 |
write_data system_after_min.data |
| 36 |
|
| 37 |
|