Debian Codegraph @

examples/coarse_grained/membrane_examples/membrane+protein_vesicle_Br2005+Be2010/moltemplate_files/CGLipidBr2005.lt

raw
1 # Note:
2 #
3 # This example may require additional features to be added to LAMMPS. If
4 # LAMMPS complains about an "Invalid pair_style", then download copy the
5 # "additional_lammps_code" from moltemplate.org, unpack it into your LAMMPS
6 # "src" directory and recompile LAMMPS.
7 #
8 # -------- Description --------
9 #
10 # This example contains an implementation of the DPPC lipid bilayer described in
11 # G. Brannigan, P.F. Philips, and F.L.H. Brown,
12 # Physical Review E, Vol 72, 011915 (2005)
13 # and:
14 # M.C. Watson, E.S. Penev, P.M. Welch, and F.L.H. Brown
15 # J. Chem. Phys. 135, 244701 (2011)
16 #
17 # As in Watson(JCP 2011), rigid bond-length constraints have been replaced
18 # by harmonic bonds.
19 #
20 # A truncated version of this lipid (named "DLPC") has also been added.
21 # Unlike the original "DPPC" molecule model, "DLPC" has not been carefully
22 # parameterized to reproduce the correct behavior in a lipid bilayer mixture.
23 #
24 # Units:
25 #
26 # The "epsilon" parameter in their model is approximately 2.75 kJ/mole
27 # ( = 0.657265774378585 kcal/mole, using 1kcal=4.184kJ)
28 # The "sigma" parameter corresponds to 7.5 angstroms.
29
30
31 CGLipidBr2005 {
32
33
34 write_once("In Init") {
35 # -- Default styles for "CGLipidBr2005" --
36 units lj #(temperature should be specified in energy units)
37 atom_style full
38 # (Hybrid force field styles were used for portability.)
39 bond_style hybrid harmonic
40
41 #angle_style hybrid cosine/delta # <- used in the original article
42 angle_style hybrid harmonic # <- prevents unphysical acute angle turns
43 # Explanation:
44 # angle_style cosine/delta: U(theta) = k*(1-cos(theta-theta0))
45 # angle_style harmonic: U(theta) = k*(theta-theta0)^2
46
47 dihedral_style none
48 improper_style none
49
50 pair_style hybrid table linear 1130 &
51 lj/charmm/coul/charmm/inter es4k4l 14.5 15
52
53 pair_modify mix arithmetic
54 special_bonds lj 0.0 0.0 1.0 # turn off pairs if "less than 3 bonds"
55 }
56
57
58 DPPC {
59 write("Data Atoms") {
60 $atom:h $mol:. @atom:head 0.0 0.00 0.00 33.75 # DPPC head atom
61 $atom:i $mol:. @atom:../int 0.0 -1.00 0.00 26.25
62 $atom:t1 $mol:. @atom:../tail 0.0 1.00 0.00 18.75
63 $atom:t2 $mol:. @atom:../tail 0.0 -1.00 0.00 11.25
64 $atom:t3 $mol:. @atom:../tail 0.0 1.00 0.00 3.75
65 }
66 write("Data Bonds") {
67 $bond:b1 @bond:../backbone $atom:h $atom:i
68 $bond:b2 @bond:../backbone $atom:i $atom:t1
69 $bond:b3 @bond:../backbone $atom:t1 $atom:t2
70 $bond:b4 @bond:../backbone $atom:t2 $atom:t3
71 }
72 write("Data Angles") {
73 $angle:a1 @angle:../backbone $atom:h $atom:i $atom:t1
74 $angle:a2 @angle:../backbone $atom:i $atom:t1 $atom:t2
75 $angle:a3 @angle:../backbone $atom:t1 $atom:t2 $atom:t3
76 }
77
78 # Define properties of the local (lipid-specific) atom:head type atom:
79 write_once("In Settings") {
80 pair_coeff @atom:head @atom:head lj/charmm/coul/charmm/inter 0.1643 7.5 0.4 0
81 pair_coeff @atom:../int @atom:head lj/charmm/coul/charmm/inter 0.1643 7.5 0.4 0
82 pair_coeff @atom:../tail @atom:head lj/charmm/coul/charmm/inter 0.1643 7.5 0.4 0
83 }
84 # masses were chosen so that a verlet timestep of 1.0 is numerically stable
85 write_once("Data Masses") {
86 @atom:head 5000.0
87 }
88
89 } #DPPC
90
91
92 DLPC {
93 write("Data Atoms") {
94 $atom:h $mol:. @atom:head 0.0 0.00 0.00 30.00 # DLPC head atom
95 $atom:i $mol:. @atom:../int 0.0 -1.00 0.00 22.50
96 $atom:t1 $mol:. @atom:../tail 0.0 1.00 0.00 15.00
97 $atom:t2 $mol:. @atom:../tail 0.0 -1.00 0.00 7.50
98 }
99 write("Data Bonds") {
100 $bond:b1 @bond:../backbone $atom:h $atom:i
101 $bond:b2 @bond:../backbone $atom:i $atom:t1
102 $bond:b3 @bond:../backbone $atom:t1 $atom:t2
103 }
104 write("Data Angles") {
105 $angle:a1 @angle:../backbone $atom:h $atom:i $atom:t1
106 $angle:a2 @angle:../backbone $atom:i $atom:t1 $atom:t2
107 }
108 # Define properties of the local (lipid-specific) atom:head type atom:
109 write_once("In Settings") {
110 pair_coeff @atom:head @atom:head lj/charmm/coul/charmm/inter 0.1643 7.5 0.4 0
111 pair_coeff @atom:../int @atom:head lj/charmm/coul/charmm/inter 0.1643 7.5 0.4 0
112 pair_coeff @atom:../tail @atom:head lj/charmm/coul/charmm/inter 0.1643 7.5 0.4 0
113 }
114 # masses were chosen so that a verlet timestep of 1.0 is numerically stable
115 write_once("Data Masses") {
116 @atom:head 5000.0
117 }
118 } #DLPC
119
120
121 # Particles and properties shared by all lipid types:
122
123 # masses were chosen so that a verlet timestep of 1.0 is numerically stable
124 write_once("Data Masses") {
125 @atom:int 5000.0
126 @atom:tail 5000.0
127 }
128
129 write_once("In Settings") {
130 # -- Default settings/parameters for "CGLipidBr2005" --
131 # (Hybrid bond & angle styles were used for portability.)
132
133 # As in Watson(JCP 2011), rigid bond-length constraints
134 # have been replaced by harmonic bonds.
135 # The k_theta parameter should lie in between 5*epsilon and 10*epsilon.
136 bond_coeff @bond:backbone harmonic 116.847 7.5 #<--2*5000*eps/sig^2
137 }
138
139 write_once("In Settings") {
140 # cosine/delta: U(theta) = k*(1-cos(theta-theta0))
141 #angle_coeff @angle:backbone cosine/delta 4.60086042 180 #<-- 7*eps
142 # harmonic: U(theta) = k*(theta-theta0)^2 not (k/2)*(theta-theta0)^2
143 angle_coeff @angle:backbone harmonic 9.85898661 180 #<-->30*eps
144 }
145 # I use a stiffer bond-angle than the original Brannigan & Brown 2005 paper
146 # to attempt to compensate for the fact that here we are using a lipid
147 # mixture of DPPC and DLPC. (The mixture of lipids introduces a great deal
148 # of disorder into the bilayer which would not be present in a DPPC bilayer.
149 # This causes pores to form. Increasing the angle stiffness prevents this.)
150
151 write_once("In Settings") {
152
153 # The interaction of "atom:int" with other "atom:int" atoms is given by
154 # epsilon*(0.4*(sigma/r)^12 - 3.0*(sigma/r)^2), shifted and cutoff at
155 # r=3*sigma. This was implemented using pair_style table.
156 # Unfortunately, mixing lj/charmm and "table" pair styles in the same
157 # simulation is very inneficient.
158
159 pair_coeff @atom:int @atom:int table table_int.dat INT
160
161 # The interaction of tail beads with eachother is given by the formula below
162 # and with other atoms ...using Lorenz-Berthelot and "repulsive wins" rules:
163 # epsilon*(0.4*(sigma/r)^12 - 1.0*(sigma/r)^6),
164 pair_coeff @atom:tail @atom:tail lj/charmm/coul/charmm/inter 0.1643 7.5 0.4 -1
165 pair_coeff @atom:int @atom:tail lj/charmm/coul/charmm/inter 0.1643 7.5 0.4 -1
166
167 # The interaction between head beads from different types of lipids
168 # is (currently) repulsive:
169 pair_coeff @atom:DPPC/head @atom:DLPC/head lj/charmm/coul/charmm/inter 0.1643 7.5 0.4 0
170
171 } # write_once("In Settings")
172
173
174 # Note: I divided epsilon by 4 to get "0.1643" because we are using the
175 # "es4k4l" coeffstyle, corresponding to U(r)=eps(4*K*(s/r)^12 + 4*L*(s/r)^6)
176 # (The "es4k4l" coeffstyle is the default.) Using this convention makes it
177 # easier to mix this coarse-grained lipid model with other molecular models.
178
179
180
181 } # CGLipidBr2005
182
183
184
185
186
187
188
189
190 # Note: This example has not been optimized for speed.
191 #
192 # Unfortunately, using both lj/charmm and "table" pair styles in the same
193 # simulation seems to be very inneficient. (The simulation is twice as slow
194 # as using only the "lj/charmm" pair styles for every pairwise interaction,
195 # ...and about 25% slower than using "table" for every pairwise interaction.
196 # However the lennard-jones pair styles support mixing, so we use them to
197 # make it easier to run these molecules with other molecules which don't use
198 # pair_table. I felt that portability was worth the extra 25% slow down.)
199