| 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 |
|
| 18 |
# Read the coordinates generated by an earlier NPT simulation |
| 19 |
|
| 20 |
read_data system_after_eq3_npt.data |
| 21 |
|
| 22 |
# (The "write_restart" and "read_restart" commands were buggy in 2012, |
| 23 |
# but they should work also. I prefer "write_data" and "read_data".) |
| 24 |
|
| 25 |
|
| 26 |
# ------------------------------- Settings Section -------------------------- |
| 27 |
|
| 28 |
include system.in.settings |
| 29 |
include system.in.charges |
| 30 |
|
| 31 |
# ------------------------------- Run Section ------------------------------- |
| 32 |
|
| 33 |
# -- simulation protocol -- |
| 34 |
|
| 35 |
|
| 36 |
timestep 1.0 |
| 37 |
dump 1 all custom 500 traj_nvt.lammpstrj id mol type x y z ix iy iz |
| 38 |
fix fxnvt all nvt temp 270.0 270.0 500.0 tchain 1 |
| 39 |
thermo_style custom step temp pe etotal epair ebond eangle edihed |
| 40 |
thermo 100 |
| 41 |
thermo_modify norm yes |
| 42 |
|
| 43 |
run 50000 |
| 44 |
|
| 45 |
write_data system_after_nvt.data |