Debian Codegraph @

examples/coarse_grained/membrane_examples/membrane_Cooke_Kremer_DesernoPRE2005/moltemplate_files/system.lt

raw
1 # Description:
2
3 # This constructs a bilayer constructed from coarse-grained lipids
4 # (implicit solvent). "Tunable generic model for fluid bilayer membranes"
5 # Cooke IR, Kremer K, Deserno M, Physical Review E, 2005
6
7
8
9 import "cooke_deserno_lipid.lt"
10
11 lipids = new CDlipid [32].move(1.178585, 0, 0)
12 [37].move(0.589293, 1.02068, 0)
13 [2].rot(180, 1, 0, 0)
14
15
16 # Move the lipds up to the center of the box
17 lipids[*][*][*].move(0,0,10.0)
18
19
20 # Although this patch of lipids is not square or rectangular, (it looks
21 # like a parallelogram), this is no longer the case after rectangular
22 # periodic boundary conditions are applied. We apply them below:
23 # width: 37.71472 = 32 * 1.05 * 2^(1/6)
24 # height: 37.76516 = 37 * 1.05 * 2^(1/6) * sqrt(3)/2
25
26 write_once("Data Boundary") {
27 0 37.71472 xlo xhi
28 0 37.76516 ylo yhi
29 0 20.0 zlo zhi
30 }
31
32
33
34
35
36
37
38
39 # -------------- File ends here. Only comments below.-------------------
40
41 # ------------------------------------
42 # ------------- COMMENTS: ------------
43 # ------------------------------------
44 #
45 # A note on geometry:
46 # We want to create a bilayer arranged in a hexagonal lattice consisting of
47 # 32 rows (each row is aligned with the x-axis)
48 # 37 columns (aligned at a 60 degree angle from the x axis)
49 # When wrapped onto a rectangular box, the dimensions of the system are:
50 # 32 * 2^(1/6) σ units in the X direction
51 # 37 * 2^(1/6) * sqrt(3)/2 σ units in the Y direction
52 # ------------------------------------
53 #
54 # Below I show simple ways to create a lipid bilayer:
55 #
56 # 1) If you just want to make lipid bilayer out of lipids,
57 # without specifying the location of each lipid, you could use this syntax:
58 # lipids = new CDlipid [32][37][2] # 3-D array
59 # Later you can load in the coordinates of the lipds from a PDB file.
60 # Alternately you could also use a 1-dimensional array:
61 # lipids = new CDlipid [2368] # 1-D array. Note: 2368 = 32x37x2
62 # It does not matter as long as the number of lipids is correct.
63 # Multidimensional arrays are only useful if you plan to apply independent
64 # coordinate transformations to each row and column and monolayer as above.
65 #
66 # 2) If you want to create a bilayer from a mixture of two lipids (named
67 # "lipidA", "lipidB"), you must replace "CDlipid" in the command above with
68 # random([lipidA,lipidB],[710,1658],12345)
69 # Here "710,1658" are the number of each molecule type (must sum to 32*37*2),
70 # and "12345" is an optional random seed:
71 # lipids = new random([lipidA,lipidB], [710,1658], 12345)
72 # [32].move(1.178585, 0, 0)
73 # [37].move(0.589293, 1.02068, 0)
74 # [2].rot(180, 1, 0, 0)