Debian Codegraph @

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