| 1 |
# PREREQUISITES: |
| 2 |
# |
| 3 |
# 1) You must use moltemplate.sh to create 4 files: |
| 4 |
# system.data system.in.init system.in.settings system.in.charges |
| 5 |
# (Follow the instructions in README_setup.sh, |
| 6 |
# or run the file as a script using ./README_setup.sh) |
| 7 |
# 2) You must equilibrate the system beforehand using "run.in.npt". |
| 8 |
# This will create the file "system_after_npt.data" which this file reads. |
| 9 |
# (Note: I have not verified that this equilibration protocol works well.) |
| 10 |
|
| 11 |
# ------------------------------- Initialization Section -------------------- |
| 12 |
|
| 13 |
include "system.in.init" |
| 14 |
|
| 15 |
# ------------------------------- Atom Definition Section ------------------- |
| 16 |
|
| 17 |
# Read the coordinates generated by an earlier NPT simulation |
| 18 |
|
| 19 |
read_data "system_after_npt.data" |
| 20 |
|
| 21 |
# OPLSAA atom charges are stored in a separate file. |
| 22 |
# Load that file now: |
| 23 |
|
| 24 |
include "system.in.charges" |
| 25 |
|
| 26 |
# ------------------------------- Settings Section -------------------------- |
| 27 |
|
| 28 |
include "system.in.settings" |
| 29 |
|
| 30 |
|
| 31 |
# (The "write_restart" and "read_restart" commands were buggy in 2012, |
| 32 |
# but they should work also. I prefer "write_data" and "read_data".) |
| 33 |
|
| 34 |
# ------------------------------- Settings Section -------------------------- |
| 35 |
|
| 36 |
include system.in.settings |
| 37 |
|
| 38 |
# ------------------------------- Run Section ------------------------------- |
| 39 |
|
| 40 |
# -- simulation protocol -- |
| 41 |
|
| 42 |
|
| 43 |
timestep 1.0 |
| 44 |
dump 1 all custom 5000 traj_nvt.lammpstrj id mol type x y z ix iy iz |
| 45 |
fix fxnvt all nvt temp 300.0 300.0 500.0 tchain 1 |
| 46 |
thermo 500 |
| 47 |
#thermo_modify flush yes |
| 48 |
|
| 49 |
run 200000 |
| 50 |
|
| 51 |
write_data system_after_nvt.data |