| 1 |
|
| 2 |
import "gaff2.lt" |
| 3 |
|
| 4 |
# The "gaff2.lt" file is usually located in the "force_fields" |
| 5 |
# subdirectory distributed with moltemplate. |
| 6 |
# Excerpt: |
| 7 |
# |
| 8 |
# @atom:ca # Sp2 C in pure aromatic systems |
| 9 |
# @atom:ha # H bonded to aromatic carbon |
| 10 |
# |
| 11 |
# WARNING: CHARGES ARE INCORRECT |
| 12 |
# For this example, I manually looked up the charge of each atom using the |
| 13 |
# OPLSAA parameters from the "oplsaa.prm" file distributed with TINKER: |
| 14 |
# http://dasher.wustl.edu/tinker/distribution/params/oplsaa.prm |
| 15 |
# -----> DO NOT DO THIS! <----- |
| 16 |
# Normally simulations in AMBER are assigned charges using the |
| 17 |
# "HF/6-31G* RESP2" or "AM1-BCC3" methods using AmberTools. |
| 18 |
# Using the OPLSAA charges instead will NOT reproduce the behavior of AMBER. |
| 19 |
# For more details how to calculate charges correctly, see: |
| 20 |
# https://github.com/jewettaij/moltemplate/blob/master/examples/all_atom/force_field_AMBER/README.md |
| 21 |
|
| 22 |
|
| 23 |
Benzene inherits GAFF2 { |
| 24 |
|
| 25 |
# atomID molID atomType charge X Y Z |
| 26 |
write('Data Atoms') { |
| 27 |
$atom:c1 $mol @atom:ca -0.115 -0.739 1.189 -0.00733 |
| 28 |
$atom:c2 $mol @atom:ca -0.115 0.614 1.208 0.35167 |
| 29 |
$atom:c3 $mol @atom:ca -0.115 1.353 0.019 0.35867 |
| 30 |
$atom:c4 $mol @atom:ca -0.115 0.739 -1.189 0.00667 |
| 31 |
$atom:c5 $mol @atom:ca -0.115 -0.614 -1.208 -0.35133 |
| 32 |
$atom:c6 $mol @atom:ca -0.115 -1.353 -0.019 -0.35833 |
| 33 |
$atom:h11 $mol @atom:ha 0.115 -1.309 2.106 -0.01233 |
| 34 |
$atom:h21 $mol @atom:ha 0.115 1.088 2.14 0.62267 |
| 35 |
$atom:h31 $mol @atom:ha 0.115 2.397 0.034 0.63467 |
| 36 |
$atom:h41 $mol @atom:ha 0.115 1.309 -2.106 0.01267 |
| 37 |
$atom:h51 $mol @atom:ha 0.115 -1.088 -2.14 -0.62233 |
| 38 |
$atom:h61 $mol @atom:ha 0.115 -2.397 -0.034 -0.63533 |
| 39 |
} |
| 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:h11 |
| 49 |
$bond:c2h2 $atom:c2 $atom:h21 |
| 50 |
$bond:c3h3 $atom:c3 $atom:h31 |
| 51 |
$bond:c4h4 $atom:c4 $atom:h41 |
| 52 |
$bond:c5h5 $atom:c5 $atom:h51 |
| 53 |
$bond:c6h6 $atom:c6 $atom:h61 |
| 54 |
} |
| 55 |
|
| 56 |
} # Benzene |
| 57 |
|