| 1 |
# This version of the methanol molecule was generated using 3rd party software |
| 2 |
# using parameters from the GAFF force field, and saved as a LAMMPS DATA file. |
| 3 |
# Then the resulting LAMMPS DATA file was converted to moltemplate format using |
| 4 |
# the "ltemplify.py" utility. (As a result of the conversions, the atom type |
| 5 |
# names listed no longer follow GAFF force field conventions.) |
| 6 |
# (BCC) Charges were assigned using AmberTools |
| 7 |
|
| 8 |
Methanol { |
| 9 |
|
| 10 |
# NOTE: This molecule uses "atom_style hybrid sphere dipole molecular" |
| 11 |
# (This is the same atom_style used by ELBA.) Hence the extra |
| 12 |
# columns for "diam", "mux", "muy", "muz" are not relevant |
| 13 |
# for this molecule and can be ignored.) |
| 14 |
|
| 15 |
write("Data Atoms") { |
| 16 |
# Atom-ID AtomType x y z diam dens charge mux muy muz mol-ID |
| 17 |
$atom:o @atom:O 0.708 0.0 0.0 0.0 16.0 -0.5988 0.0 0.0 0.0 $mol:m |
| 18 |
$atom:c @atom:C -0.708 0.0 0.0 0.0 12.01 0.1167 0.0 0.0 0.0 $mol:m |
| 19 |
$atom:hc1 @atom:HC -1.073 -0.769 0.685 0.0 1.008 0.0287 0.0 0.0 0.0 $mol:m |
| 20 |
$atom:hc2 @atom:HC -1.073 -0.195 -1.011 0.0 1.008 0.0287 0.0 0.0 0.0 $mol:m |
| 21 |
$atom:hc3 @atom:HC -1.063 0.979 0.331 0.0 1.008 0.0287 0.0 0.0 0.0 $mol:m |
| 22 |
$atom:ho @atom:HO 0.994 -0.88 -0.298 0.0 1.008 0.3960 0.0 0.0 0.0 $mol:m |
| 23 |
} |
| 24 |
|
| 25 |
write_once("Data Masses") { |
| 26 |
@atom:O 16.0 |
| 27 |
@atom:C 12.01 |
| 28 |
@atom:HO 1.008 |
| 29 |
@atom:HC 1.008 |
| 30 |
} |
| 31 |
|
| 32 |
# Note: The "m" in "$mol:m" just refers to this object's molecule-ID. |
| 33 |
# If there are multiple molecules contained in this object, |
| 34 |
# then you can give them different names, eg "$mol:m1", "$mol:m2" |
| 35 |
# and they will be assigned to different numbers by moltemplate. |
| 36 |
# If this molecule is part of a larger molecule, then use "$mol:..." |
| 37 |
|
| 38 |
# --- bonded interactions --- |
| 39 |
|
| 40 |
write("Data Bonds") { |
| 41 |
$bond:b1 @bond:O_H $atom:o $atom:ho |
| 42 |
$bond:b2 @bond:C_H $atom:c $atom:hc1 |
| 43 |
$bond:b3 @bond:C_H $atom:c $atom:hc2 |
| 44 |
$bond:b4 @bond:C_H $atom:c $atom:hc3 |
| 45 |
$bond:b5 @bond:C_O $atom:c $atom:o |
| 46 |
} |
| 47 |
|
| 48 |
write("Data Angles") { |
| 49 |
$angle:an1 @angle:O_C_H $atom:o $atom:c $atom:hc1 |
| 50 |
$angle:an2 @angle:O_C_H $atom:o $atom:c $atom:hc2 |
| 51 |
$angle:an3 @angle:O_C_H $atom:o $atom:c $atom:hc3 |
| 52 |
$angle:an4 @angle:C_O_H $atom:c $atom:o $atom:ho |
| 53 |
$angle:an5 @angle:H_C_H $atom:hc1 $atom:c $atom:hc2 |
| 54 |
$angle:an6 @angle:H_C_H $atom:hc1 $atom:c $atom:hc3 |
| 55 |
$angle:an7 @angle:H_C_H $atom:hc2 $atom:c $atom:hc3 |
| 56 |
} |
| 57 |
|
| 58 |
write("Data Dihedrals") { |
| 59 |
$dihedral:d1 @dihedral:H_O_C_H $atom:ho $atom:o $atom:c $atom:hc1 |
| 60 |
$dihedral:d2 @dihedral:H_O_C_H $atom:ho $atom:o $atom:c $atom:hc2 |
| 61 |
$dihedral:d3 @dihedral:H_O_C_H $atom:ho $atom:o $atom:c $atom:hc3 |
| 62 |
} |
| 63 |
|
| 64 |
# --- force field parameters --- |
| 65 |
|
| 66 |
write_once("In Settings") { |
| 67 |
pair_coeff @atom:O @atom:O lj/charmm/coul/long 0.2104 3.066473 |
| 68 |
pair_coeff @atom:C @atom:C lj/charmm/coul/long 0.1094 3.399670 |
| 69 |
pair_coeff @atom:HC @atom:HC lj/charmm/coul/long 0.0157 2.47135 |
| 70 |
pair_coeff @atom:HO @atom:HO lj/charmm/coul/long 0.0 0.0 |
| 71 |
} |
| 72 |
|
| 73 |
write_once("In Settings") { |
| 74 |
bond_coeff @bond:C_O harmonic 316.7 1.4233 |
| 75 |
bond_coeff @bond:O_H harmonic 371.4 0.973 |
| 76 |
bond_coeff @bond:C_H harmonic 330.6 1.0969 |
| 77 |
} |
| 78 |
|
| 79 |
write_once("In Settings") { |
| 80 |
angle_coeff @angle:O_C_H harmonic 50.93 110.26 |
| 81 |
angle_coeff @angle:C_O_H harmonic 47.38 107.26 |
| 82 |
angle_coeff @angle:H_C_H harmonic 39.24 108.46 |
| 83 |
} |
| 84 |
|
| 85 |
write_once("In Settings") { |
| 86 |
dihedral_coeff @dihedral:H_O_C_H harmonic 0.166666667 1 3 |
| 87 |
} |
| 88 |
|
| 89 |
# --- groups --- |
| 90 |
|
| 91 |
write_once("In Settings") { |
| 92 |
group gMethanol type @atom:O @atom:C @atom:HO @atom:HC |
| 93 |
} |
| 94 |
|
| 95 |
} # end of "Methanol" type definition |