| 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 # start with the minimized coordinates |
| 21 |
|
| 22 |
# -- Settings Section -- |
| 23 |
|
| 24 |
include system.in.settings |
| 25 |
|
| 26 |
# -- Run Section -- |
| 27 |
|
| 28 |
|
| 29 |
timestep 0.01 |
| 30 |
dump 1 all custom 5000 traj_npt.lammpstrj id mol type x y z ix iy iz |
| 31 |
|
| 32 |
|
| 33 |
thermo_style custom step temp pe etotal vol epair ebond eangle |
| 34 |
thermo 200 # time interval for printing out "thermo" data |
| 35 |
|
| 36 |
velocity all create 1.1 12345 |
| 37 |
|
| 38 |
fix fxlan all langevin 1.1 1.1 50.0 48279 |
| 39 |
fix fxnph all nph x 0 0 1000 y 0 0 1000 couple xy |
| 40 |
|
| 41 |
# Note: The temperature is 1.1*ε |
| 42 |
# (ε = "epsilon" used by the coarse-grained lipid) |
| 43 |
# Note: The langevin damping parameter is now "50.0" in units of time |
| 44 |
# (which are (m/(ε*σ^2))^(1/2) because we are using "units lj" |
| 45 |
# This is grossly underdamped compared to the real system, |
| 46 |
# but it leads to more efficient sampling.) |
| 47 |
# Note: We maintain the system system at constant (zero) tention |
| 48 |
# using a barostat damping parameter Pdamp=1000 ("0 0 1000") |
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
# optional (not sure if this helps): |
| 53 |
# balance x uniform y uniform |
| 54 |
|
| 55 |
|
| 56 |
run 1000000 |
| 57 |
|
| 58 |
write_data system_after_npt.data |
| 59 |
|