| 1 |
# Running LAMMPS on this file (eg. "lmp_mpi -i run.in.nvt") simulates a |
| 2 |
# vesicle at constant NVT conditions. |
| 3 |
# |
| 4 |
# THIS SIMULATION WAS RUN AT HIGH TEMPERATURE (345K) IN ORDER |
| 5 |
# TO ENCOURAGE THE LIPIDS TO FORM A SMOOTH SPHERICAL VESICLE. |
| 6 |
# (At 300K, the lipids used in this particular coarse-grained model tend to be |
| 7 |
# stuck in a "gel"-like phase when arranged in a small vesicle shape, leading |
| 8 |
# to lumps and discontinuities. We raised the temperature to avoid this.) |
| 9 |
# |
| 10 |
# -------- PREREQUISITES: --------- |
| 11 |
# 1) This example requires the "EXTRA-MOLECULE" package. |
| 12 |
# If you encounter the error *"Invalid dihedral_style"*, then see this page: |
| 13 |
# https://lammps.sandia.gov/doc/Build_package.html |
| 14 |
# for instructions to compile LAMMPS to support this package. |
| 15 |
# 2) It also may require additional features and bug fixes for LAMMPS. |
| 16 |
# So, after typing "make yes-user-misc" in to the shell, ... |
| 17 |
# be sure to download and copy the "additional_lammps_code" from |
| 18 |
# http://moltemplate.org (upper-left corner menu) |
| 19 |
# 3) Unpack it |
| 20 |
# 4) copy the .cpp and .h files to the src folding of your lammps installation. |
| 21 |
# 5) Compile LAMMPS. |
| 22 |
# 6) Build the system using PACKMOL and MOLTEMPLATE |
| 23 |
# (Follow the instructions in README_setup.sh, or run that file as a script.) |
| 24 |
# 7) Minimize the system using: |
| 25 |
# lmp_mpi -i run.in.npt |
| 26 |
# (assuming "lmp_mpi" is the name of the lammps binary you created in step 5) |
| 27 |
# 8) Distribute the lipids uniformly on the spherical surface using: |
| 28 |
# lmp_mpi -i run.in.make_uniform |
| 29 |
# (Why? The software tool (PACKMOL) that we used to create the initial |
| 30 |
# geometry for this example often leaves gaps in the packing of spherical |
| 31 |
# surfaces. The "make_uniform" step should help close these holes.) |
| 32 |
# |
| 33 |
# If LAMMPS complains about an "Invalid pair_style", or "Invalid dihedral_style" |
| 34 |
# then you made a mistake in the instructions above. |
| 35 |
# |
| 36 |
# ------------------------------- Initialization Section -------------------- |
| 37 |
|
| 38 |
include system.in.init |
| 39 |
|
| 40 |
# ------------------------------- Atom Definition Section ------------------- |
| 41 |
|
| 42 |
# Commenting out: |
| 43 |
# |
| 44 |
# read_data system.data |
| 45 |
# |
| 46 |
# Instead read the data file created by "run.in.min". |
| 47 |
|
| 48 |
# Commenting out these old commands: |
| 49 |
# |
| 50 |
# read_data system.data |
| 51 |
# read_data system_after_min.data |
| 52 |
# |
| 53 |
# Instead, read the coordinates from the uniform simulation: |
| 54 |
|
| 55 |
read_data system_uniform.data |
| 56 |
|
| 57 |
|
| 58 |
# ------------------------------- Settings Section -------------------------- |
| 59 |
|
| 60 |
include system.in.settings |
| 61 |
|
| 62 |
# ------------------------------- Run Section ------------------------------- |
| 63 |
|
| 64 |
timestep 1.0 # (the mass of each particle must be chosen accordingly) |
| 65 |
dump 1 all custom 500000 traj_T=345K.lammpstrj id mol type x y z ix iy iz |
| 66 |
|
| 67 |
|
| 68 |
thermo_style custom step temp pe etotal vol epair ebond eangle |
| 69 |
thermo 100 # time interval for printing out "thermo" data |
| 70 |
thermo_modify norm yes flush yes |
| 71 |
|
| 72 |
|
| 73 |
# distribute particles evenly on available processors: |
| 74 |
fix fxbal all balance 100000 1.05 shift xyz 20 1.05 |
| 75 |
|
| 76 |
# To use Langevin dynamics in LAMMPS you need both "fix langevin" and "fix nve". |
| 77 |
# (See http://lammps.sandia.gov/doc/fix_langevin.html for details.) |
| 78 |
# (Note: We are using "units lj", which means temperature is specified |
| 79 |
# in units of energy. kB*Temp = 0.001987207*345 kcal/mole = 0.685586415) |
| 80 |
fix fxlan all langevin 0.685586415 0.685586415 40000 48279 |
| 81 |
fix fxnve all nve |
| 82 |
|
| 83 |
run 5000000 # (This might not be long enough for equilibration.) |
| 84 |
|
| 85 |
write_data system_T=345K.data |
| 86 |
|