2
import "alkanes.lt" # <-- Defines the atoms and force-field used for Alkanes
7
# atom-id mol-id atom-type charge x y z
10
$atom:C $mol:... @atom:c3 -0.120 0.000 0.000 0.000
11
$atom:H1 $mol:... @atom:h1 0.060 0.000 0.63104384422426 0.892430762954
12
$atom:H2 $mol:... @atom:h1 0.060 0.000 0.63104384422426 -0.892430762954
15
# Note: The "..." in "$mol:..." tells moltemplate that this molecule may
16
# be a part of a larger molecule, and (if so) to use the larger
17
# parent object's molecule id number as it's own.
18
# The CH2 group is part of the Hexadecane molecule.
20
# Now specify which pairs of atoms are bonded:
21
# bond-id bond-type atom-id1 atom-id2
24
$bond:b1 @bond:CH $atom:C $atom:H1
25
$bond:b2 @bond:CH $atom:C $atom:H2
33
# Atom charges for this example were taken from the OPLSAA force field file:
34
# http://dasher.wustl.edu/tinker/distribution/params/oplsaa.prm
36
######### (scratchwork calculations for the atomic coordinates) #########
37
# Lcc = 1.5350 # length of the C-C bond (Sp3)
38
# Lch = 1.0930 # length of the C-H bond
39
# theta=2*atan(sqrt(2)) # ~= 109.5 degrees = tetrahedronal angle (C-C-C angle)
40
# DeltaXc = Lcc*sin(theta/2) # = 1.2533222517240594
41
# DeltaYc = Lcc*cos(theta/2) # = 0.8862326632060754
42
# # 0.5*DeltaYc = 0.4431163316030377
43
# DeltaZh = Lch*sin(theta/2) # = 0.8924307629540046
44
# DeltaYh = Lch*cos(theta/2) # = 0.6310438442242609