Debian Codegraph @

examples/all_atom/force_field_OPLSAA/waterSPCE+methane/moltemplate_files/methane.lt

raw
1 import "oplsaa2024.lt"
2
3 # The "oplsaa2024.lt" file defines these atom types:
4 # @atom:138 CH4 C: methane mod 1/2020
5 # @atom:140 H H: alkanes
6 # The "oplsaa2024.lt" file is located at:
7 # https://github.com/jewettaij/moltemplate/tree/master/moltemplate/force_fields/
8 # If you want to customize oplsaa2024.lt, download it and copy it to this folder.
9
10
11
12 Methane inherits OPLSAA {
13
14 # atomID molID atomTyle charge X Y Z
15 write('Data Atoms') {
16 $atom:c $mol:. @atom:138 0.0 0.000000 0.000000 0.000000
17 $atom:h1 $mol:. @atom:140 0.0 0.000000 0.000000 1.089000
18 $atom:h2 $mol:. @atom:140 0.0 1.026719 0.000000 -0.363000
19 $atom:h3 $mol:. @atom:140 0.0 -0.513360 -0.889165 -0.363000
20 $atom:h4 $mol:. @atom:140 0.0 -0.513360 0.889165 -0.363000
21 }
22
23 # Charges will be assigned by OPLSAA2008, so we leave them 0.0 here.
24 #
25 # (The "." in "$mol:." refers to this molecule-object's molecule-ID number.
26 # The "." simply means this molecule is not a part of a larger molecule.)
27
28 write('Data Bond List') {
29 $bond:ch1 $atom:c $atom:h1
30 $bond:ch2 $atom:c $atom:h2
31 $bond:ch3 $atom:c $atom:h3
32 $bond:ch4 $atom:c $atom:h4
33 }
34
35 } # Methane