| 1 |
# ------------------------------- Initialization Section -------------------- |
| 2 |
|
| 3 |
include system.in.init |
| 4 |
|
| 5 |
# ------------------------------- Atom Definition Section ------------------- |
| 6 |
|
| 7 |
|
| 8 |
# To run this simulation, you should first equilibrate the system at constant |
| 9 |
# pressure and temperature beforehand. If you run lammps with "run.in.npt", |
| 10 |
# it will generate a data file "system_after_npt.data" with reasonable |
| 11 |
# coordinates at that temperature and pressure. We load it now: |
| 12 |
|
| 13 |
read_data system_after_npt.data |
| 14 |
|
| 15 |
# ------------------------------- Settings Section -------------------------- |
| 16 |
|
| 17 |
include system.in.settings |
| 18 |
|
| 19 |
# ------------------------------- Run Section ------------------------------- |
| 20 |
|
| 21 |
|
| 22 |
timestep 0.01 |
| 23 |
dump 1 all custom 50000 traj_nvt.lammpstrj id mol type x y z ix iy iz |
| 24 |
|
| 25 |
|
| 26 |
thermo_style custom step temp pe etotal vol epair ebond eangle |
| 27 |
thermo 1000 # time interval for printing out "thermo" data |
| 28 |
|
| 29 |
velocity all create 1.1 12345 |
| 30 |
|
| 31 |
fix fxlan all langevin 1.1 1.1 500.0 48279 |
| 32 |
fix fxnve all nve |
| 33 |
|
| 34 |
# Note: The temperature is 1.1*ε |
| 35 |
# (ε = "epsilon" used by the coarse-grained lipid) |
| 36 |
# Note: The langevin damping parameter is "500.0" in units of time |
| 37 |
# (which are (m/(ε*σ^2))^(1/2) because we are using "units lj" |
| 38 |
# This is grossly underdamped compared to the real system, |
| 39 |
# but it leads to more efficient sampling.) |
| 40 |
|
| 41 |
|
| 42 |
# optional (not sure if this helps): |
| 43 |
# balance x uniform y uniform |
| 44 |
|
| 45 |
|
| 46 |
run 20000000 |
| 47 |
|
| 48 |
write_data system_after_nvt.data |
| 49 |
|