| 1 |
# -------- REQUIREMENTS: --------- |
| 2 |
# 1) This example may require additional features and bug fixes for LAMMPS. |
| 3 |
# Be sure to download and copy the "additional_lammps_code" from |
| 4 |
# http://moltemplate.org (upper-left corner menu) |
| 5 |
# 2) Unpack it |
| 6 |
# 3) copy the .cpp and .h files to the src folding of your lammps installation. |
| 7 |
# 4) Compile LAMMPS. |
| 8 |
# |
| 9 |
# (If LAMMPS complains about an "Invalid pair_style" |
| 10 |
# then you made a mistake in the instructions above.) |
| 11 |
# |
| 12 |
|
| 13 |
# -- Init Section -- |
| 14 |
|
| 15 |
include system.in.init |
| 16 |
|
| 17 |
# -- Atom Definition Section -- |
| 18 |
|
| 19 |
#read_data system.data # <-- this also works, but commenting out |
| 20 |
read_data system_after_min.data # read the minimized coordinates |
| 21 |
|
| 22 |
|
| 23 |
# -- Settings Section -- |
| 24 |
|
| 25 |
include system.in.settings |
| 26 |
|
| 27 |
# -- Run Section -- |
| 28 |
|
| 29 |
|
| 30 |
timestep 6.0 # The time-step in Watson et. al 2011 was 0.002*3ps = 6fs |
| 31 |
dump 1 all custom 5000 traj_npt.lammpstrj id mol type x y z ix iy iz |
| 32 |
|
| 33 |
|
| 34 |
thermo_style custom step temp pe etotal vol epair ebond eangle |
| 35 |
thermo 1000 # time interval for printing out "thermo" data |
| 36 |
|
| 37 |
|
| 38 |
fix fxlan all langevin 300.0 300.0 120 48279 |
| 39 |
fix fxnph all nph x 0 0 1000 y 0 0 1000 couple xy |
| 40 |
|
| 41 |
|
| 42 |
# Note: The temperature 300.0 K corresponds to 0.907033536873*epsilon |
| 43 |
# for the "epsilon" used by the coarse-grained lipid. |
| 44 |
# Note: The langevin damping parameter "120" corresponds to |
| 45 |
# the 0.12ps damping time used in Watson et. al JCP 2011. |
| 46 |
# Note: We maintain the system system at constant (zero) tention |
| 47 |
# using a barostat damping parameter Pdamp=1000 ("0 0 1000") |
| 48 |
|
| 49 |
|
| 50 |
# optional (not sure if this helps): |
| 51 |
# balance x uniform y uniform |
| 52 |
|
| 53 |
|
| 54 |
#restart 1000000 |
| 55 |
|
| 56 |
run 2000000 |
| 57 |
|
| 58 |
write_data system_after_npt.data |
| 59 |
|