| 1 |
import "oplsaa2024.lt" |
| 2 |
|
| 3 |
|
| 4 |
# The "oplsaa2024.lt" file defines these atom types: |
| 5 |
# @atom:145 "C - CA | Benzene C" |
| 6 |
# @atom:146 "H - HA | Benzene H" |
| 7 |
# The "oplsaa2024.lt" file is located at: |
| 8 |
# https://github.com/jewettaij/moltemplate/tree/master/moltemplate/force_fields/ |
| 9 |
# If you want to customize oplsaa2024.lt, download it and copy it to this folder |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
Benzene inherits OPLSAA { |
| 14 |
|
| 15 |
# atom-id mol-id atom-type charge X Y Z |
| 16 |
|
| 17 |
write("Data Atoms") { |
| 18 |
$atom:c1 $mol @atom:145 0.00 -0.739 1.189 -0.00733 |
| 19 |
$atom:c2 $mol @atom:145 0.00 0.614 1.208 0.35167 |
| 20 |
$atom:c3 $mol @atom:145 0.00 1.353 0.019 0.35867 |
| 21 |
$atom:c4 $mol @atom:145 0.00 0.739 -1.189 0.00667 |
| 22 |
$atom:c5 $mol @atom:145 0.00 -0.614 -1.208 -0.35133 |
| 23 |
$atom:c6 $mol @atom:145 0.00 -1.353 -0.019 -0.35833 |
| 24 |
$atom:h1 $mol @atom:146 0.00 -1.309 2.106 -0.01233 |
| 25 |
$atom:h2 $mol @atom:146 0.00 1.088 2.14 0.62267 |
| 26 |
$atom:h3 $mol @atom:146 0.00 2.397 0.034 0.63467 |
| 27 |
$atom:h4 $mol @atom:146 0.00 1.309 -2.106 0.01267 |
| 28 |
$atom:h5 $mol @atom:146 0.00 -1.088 -2.14 -0.62233 |
| 29 |
$atom:h6 $mol @atom:146 0.00 -2.397 -0.034 -0.63533 |
| 30 |
} |
| 31 |
|
| 32 |
# Note: You don't have to specify the charge in this example because we are |
| 33 |
# using the OPLSAA force-field which assigns charge according to |
| 34 |
# atom-type. Just leave these numbers as 0.00 for now. |
| 35 |
# Note: LAMMPS expects an integer in the 2nd column (the Molecule-ID number). |
| 36 |
# If we put "$mol" there, moltemplate will generate this integer for you |
| 37 |
|
| 38 |
# A list of the bonds in the molecule: |
| 39 |
# BondID AtomID1 AtomID2 |
| 40 |
|
| 41 |
write("Data Bond List") { |
| 42 |
$bond:c12 $atom:c1 $atom:c2 |
| 43 |
$bond:c23 $atom:c2 $atom:c3 |
| 44 |
$bond:c34 $atom:c3 $atom:c4 |
| 45 |
$bond:c45 $atom:c4 $atom:c5 |
| 46 |
$bond:c56 $atom:c5 $atom:c6 |
| 47 |
$bond:c61 $atom:c6 $atom:c1 |
| 48 |
$bond:c1h1 $atom:c1 $atom:h1 |
| 49 |
$bond:c2h2 $atom:c2 $atom:h2 |
| 50 |
$bond:c3h3 $atom:c3 $atom:h3 |
| 51 |
$bond:c4h4 $atom:c4 $atom:h4 |
| 52 |
$bond:c5h5 $atom:c5 $atom:h5 |
| 53 |
$bond:c6h6 $atom:c6 $atom:h6 |
| 54 |
} |
| 55 |
|
| 56 |
# In the "Data Bond List" section we don't have to specify the bond type. |
| 57 |
# The bond-type will be determined by the atom type (according to "oplsaa2024.lt") |
| 58 |
|
| 59 |
} # Benzene |