Debian Codegraph @

examples/all_atom/force_field_OPLSAA/ethylene+benzene_PACKMOL/moltemplate_files/ethylene.lt

raw
1 import "oplsaa2024.lt"
2
3 # The "oplsaa2024.lt" file defines these atom types:
4 # @atom:143 "C - CM | alkene C (H2-C=)"
5 # @atom:144 "H - HC | alkene H (H-C=)"
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 Ethylene inherits OPLSAA {
13
14 # atom-id mol-id atom-type charge X Y Z
15
16 write('Data Atoms') {
17 $atom:c1 $mol @atom:143 0.0 -0.6695 0.00000 0.0
18 $atom:c2 $mol @atom:143 0.0 0.6695 0.00000 0.0
19 $atom:h11 $mol @atom:144 0.0 -1.23422 -0.85446 0.0
20 $atom:h12 $mol @atom:144 0.0 -1.23422 0.85446 0.0
21 $atom:h21 $mol @atom:144 0.0 1.23422 -0.85446 0.0
22 $atom:h22 $mol @atom:144 0.0 1.23422 0.85446 0.0
23 }
24
25 # Note: You don't have to specify the charge in this example because we are
26 # using the OPLSAA force-field which assigns charge according to
27 # atom-type. Just leave these numbers as 0.00 for now.
28 # Note: LAMMPS expects an integer in the 2nd column (the Molecule-ID number).
29 # If we put "$mol" there, moltemplate will generate this integer for you
30
31 # A list of the bonds in the molecule:
32 # BondID AtomID1 AtomID2
33
34 write('Data Bond List') {
35 $bond:c12 $atom:c1 $atom:c2
36 $bond:c1h1 $atom:c1 $atom:h11
37 $bond:c1h2 $atom:c1 $atom:h12
38 $bond:c2h1 $atom:c2 $atom:h21
39 $bond:c2h2 $atom:c2 $atom:h22
40 }
41
42 # In the "Data Bond List" section we don't have to specify the bond type.
43 # The bond-type will be determined by the atom type (according to "oplsaa2024.lt")
44
45 } # Ethylene
46