Debian Codegraph @

examples/all_atom/force_field_OPLSAA/NIPAM_polymer+water+ions/moltemplate_files/NIPAM.lt

raw
1 # The oplsaa2024.lt file contains force-field parameters, atom type definitions,
2 # partial charges, masses and bond-angle rules for the atoms in your system.
3
4 import oplsaa2024.lt
5
6 # It defines these atom types used below:
7 # atom-type charge mass btype epsilon sigma description
8 # @atom:54 -0.18 12.011 CT 0.066 3.5 "n-CH3 all-atom C: alkanes"
9 # @atom:57 -0.12 12.011 CT 0.066 3.51 "CH2 all-atom C: alkanes"
10 # @atom:58 -0.06 12.011 CT 0.066 3.50 "CH all-atom C: alkanes"
11 # @atom:60 0.06 1.008 HC 0.026 2.48 "H all-atom H: alkanes"
12 # @atom:229 0.14 12.011 CT 0.066 3.50 "C on N: secondary N-CHR2 amide"
13 # @atom:235 0.5 12.011 C~ 0.105 3.75 "C: C=O in amide. Acyl R in amides"
14 # @atom:236 -0.5 15.999 O~ 0.21 2.96 "O: C=O in amide. is neutral - use"
15 # @atom:238 -0.5 14.007 N~ 0.17 3.25 "N: secondary amide 279 for formyl H"
16 # @atom:241 0.3 1.008 H~ 0 0 "H on N: secondary amide"
17 # (Note: Future versions of OPLSAA might use different @atom type numbers.)
18
19
20
21 NIPAM_monomer inherits OPLSAA {
22
23 # AtomId MoleculeId AtomType Charge(ignored) X Y Z
24 write("Data Atoms") {
25 $atom:c1 $mol:... @atom:57 0.0 -2.974852 5.522390 -0.018155
26 $atom:h1 $mol:... @atom:60 0.0 -3.724626 5.174570 0.701037
27 $atom:h2 $mol:... @atom:60 0.0 -2.719268 6.558371 0.228794
28 $atom:c2 $mol:... @atom:58 0.0 -1.735484 4.646281 0.029083
29 $atom:h3 $mol:... @atom:60 0.0 -1.508788 4.910628 -0.968071
30 $atom:c3 $mol:... @atom:235 0.0 -2.025682 3.209199 -0.359358
31 $atom:o $mol:... @atom:236 0.0 -3.048503 2.857213 -0.933433
32 $atom:n $mol:... @atom:238 0.0 -0.994962 2.354203 -0.028520
33 $atom:h4 $mol:... @atom:241 0.0 -0.125839 2.768432 0.286529
34 $atom:c4 $mol:... @atom:229 0.0 -0.984493 0.945198 -0.400372
35 $atom:h5 $mol:... @atom:60 0.0 -1.122032 0.893743 -1.487254
36 $atom:c5 $mol:... @atom:54 0.0 -2.106258 0.158743 0.279041
37 $atom:c6 $mol:... @atom:54 0.0 0.367445 0.328012 -0.042488
38 $atom:h6 $mol:... @atom:60 0.0 -2.084660 0.295039 1.365520
39 $atom:h7 $mol:... @atom:60 0.0 -3.090506 0.479803 -0.074254
40 $atom:h8 $mol:... @atom:60 0.0 -2.018551 -0.912126 0.064931
41 $atom:h9 $mol:... @atom:60 0.0 0.418128 -0.721000 -0.354464
42 $atom:h10 $mol:... @atom:60 0.0 1.185249 0.866898 -0.534741
43 $atom:h11 $mol:... @atom:60 0.0 0.548305 0.372184 1.038367
44 }
45
46 # (Charges are defined in oplsaa2024.lt and can be omitted. Leave them as 0.0)
47 #
48 # The "..." in "$mol:..." tells moltemplate that this monomer may be part
49 # of a larger molecule, and (if so) to associate the larger parent object's
50 # molecule-id number with each of its atoms.
51
52
53 write("Data Bond List") {
54 $bond:c1_h1 $atom:c1 $atom:h1
55 $bond:c1_h2 $atom:c1 $atom:h2
56 $bond:c1_c2 $atom:c1 $atom:c2
57 $bond:c2_h3 $atom:c2 $atom:h3
58 $bond:c2_c3 $atom:c2 $atom:c3
59 $bond:c3_o $atom:c3 $atom:o
60 $bond:c3_n $atom:c3 $atom:n
61 $bond:n_c4 $atom:n $atom:c4
62 $bond:n_h4 $atom:n $atom:h4
63 $bond:c4_h5 $atom:c4 $atom:h5
64 $bond:c4_c5 $atom:c4 $atom:c5
65 $bond:c4_c6 $atom:c4 $atom:c6
66 $bond:c5_h6 $atom:c5 $atom:h6
67 $bond:c5_h7 $atom:c5 $atom:h7
68 $bond:c5_h8 $atom:c5 $atom:h8
69 $bond:c6_h9 $atom:c6 $atom:h9
70 $bond:c6_h10 $atom:c6 $atom:h10
71 $bond:c6_h11 $atom:c6 $atom:h11
72 }
73
74 } # NIPAM_monomer inherits OPLSAA
75
76
77
78 # For convenience, move the monomer so that the first backbone atom ($atom:c1).
79 # is located at the origin 0,0,0. (This makes it easier to create polymers.)
80
81 NIPAM_monomer.move(2.974852, -5.522390, 0.018155)
82
83
84
85 # --- variants of NIPAM ---
86
87
88 # Define a version of NIPAM_monomer which can be used as the first monomer
89 # in a NIPAM polymer. The first backbone carbon (c1) should be capped with CH3.
90 # So we change the first carbon atom type to @atom:54 and add an extra hydrogen
91
92 NIPAM_begin inherits NIPAM_monomer {
93 write("Data Atoms") {
94 $atom:c1 $mol:... @atom:54 0.0 -2.974852 5.522390 -0.018155
95 $atom:hcap1 $mol:... @atom:60 0.0 -3.433951 5.511891 -1.012543
96 }
97 write("Data Bond List") {
98 $bond:c1_hcap1 $atom:c1 $atom:hcap1
99 }
100 }
101
102 # Define a version of NIPAM_monomer which can be used as the last monomer
103 # in a NIPAM polymer. So we change the type of the last backbone carbon (c2)
104 # to @atom:57 and add an extra hydrogen (keeping the coordinates the same).
105
106 NIPAM_end inherits NIPAM_monomer {
107 write("Data Atoms") {
108 $atom:c2 $mol:... @atom:57 0.0 -1.735484 4.646281 0.029083
109 $atom:hcap2 $mol:... @atom:60 0.0 -0.808067 5.026993 0.312817
110 }
111 write("Data Bond List") {
112 $bond:c2_hcap2 $atom:c2 $atom:hcap2
113 }
114 }
115
116 # Optional: Define a (free) version of NIPAM which is not part of a polymer.
117 # Both carbons on the backbone (c1, c2) are modified and hydrogens are added.
118 NIPAM inherits NIPAM_monomer {
119 write("Data Atoms") {
120 $atom:c1 $mol:. @atom:54 0.0 -2.974852 5.522390 -0.018155
121 $atom:hcap1 $mol:. @atom:60 0.0 -3.433951 5.511891 -1.012543
122 $atom:c2 $mol:. @atom:57 0.0 -1.735484 4.646281 0.029083
123 $atom:hcap2 $mol:. @atom:60 0.0 -0.808067 5.026993 0.312817
124 }
125 write("Data Bond List") {
126 $bond:c1_hcap1 $atom:c1 $atom:hcap1
127 $bond:c2_hcap2 $atom:c2 $atom:hcap2
128 }
129 }