Regarding no bond types defined error in moltemplate

Dear all,

I am using moltemplate to create polypyyrole through oplsaa force field. But is showing no bond types defined error for N1 and C1. Please suggest the possible changes to make it run. Below is the file script given:-

import “oplsaa.lt

polypyyrole inherits OPLSAA {

write(“Data Atoms”){

$atom:N1 $mol:. @atom:542 -0.386 0.333027661 -0.630282819 0.809109151
$atom:C1 $mol:. @atom:543 0.107 0.826397657 0.631712914 0.894071341
$atom:C2 $mol:. @atom:544 -0.215 -0.078939579 1.347391367 1.745424986
$atom:C3 $mol:. @atom:543 0.107 -0.857833087 -0.736436725 1.435065269
$atom:C4 $mol:. @atom:544 -0.215 -1.143145323 0.520025074 2.043035984
$atom:H1 $mol:. @atom:547 0.141 0.134288847 2.288927555 2.261750460
$atom:H2 $mol:. @atom:547 0.141 -1.919234037 0.684654653 2.808942080
$atom:H3 $mol:. @atom:545 0.320 0.737331629 -1.357692599 0.209184319
$atom:N2 $mol:. @atom:542 -0.386 2.643757582 2.108017683 0.375176489
$atom:C5 $mol:. @atom:543 0.107 3.979922771 2.023151636 0.330208063
$atom:C6 $mol:. @atom:544 -0.215 4.292936325 0.638428628 0.194988132
$atom:C7 $mol:. @atom:543 0.107 2.069571972 0.880711555 0.369072169
$atom:C8 $mol:. @atom:544 -0.215 3.108684778 -0.047034409 0.085038289
$atom:H4 $mol:. @atom:547 0.141 5.302228451 0.218583629 0.051443387
$atom:H5 $mol:. @atom:547 0.141 2.982743740 -1.137641907 -0.037547749
$atom:H6 $mol:. @atom:545 0.320 2.073581696 2.957173824 0.314810961
$atom:N3 $mol:. @atom:542 -0.386 -2.655276775 -2.151268959 2.091363430
$atom:C9 $mol:. @atom:543 0.107 -1.370457649 -1.978452444 1.723165393
$atom:C10 $mol:. @atom:544 -0.215 -0.620186269 -3.081378937 2.222573757
$atom:C11 $mol:. @atom:543 0.107 -2.803003073 -3.315794468 2.764536858
$atom:C12 $mol:. @atom:544 -0.215 -1.503291368 -3.858621836 2.938310623
$atom:H7 $mol:. @atom:547 0.141 0.471378922 -3.116929293 2.314051390
$atom:H8 $mol:. @atom:547 0.141 -1.269267082 -4.728475571 3.549527645
$atom:H9 $mol:. @atom:545 0.320 -3.412815571 -1.548543572 1.750159025
$atom:N4 $mol:. @atom:542 -0.386 -4.087960243 -5.022926807 3.780756235
$atom:C13 $mol:. @atom:543 0.107 -4.016739368 -3.833448172 3.134131908
$atom:C14 $mol:. @atom:544 -0.215 -5.358705044 -3.367287159 2.939029932
$atom:C15 $mol:. @atom:543 0.107 -5.430344582 -5.306302547 4.030596733
$atom:C16 $mol:. @atom:544 -0.215 -6.210676193 -4.329612732 3.435102940
$atom:H10 $mol:. @atom:547 0.141 -5.666235447 -2.458347321 2.430020809
$atom:H11 $mol:. @atom:547 0.141 -7.290938854 -4.238509655 3.550587177
$atom:H12 $mol:. @atom:545 0.320 -3.304335117 -5.672347069 3.896619797
$atom:N5 $mol:. @atom:542 -0.386 6.164700985 2.822291851 0.576635301
$atom:C17 $mol:. @atom:543 0.107 6.896225929 4.008178234 0.556941450
$atom:C18 $mol:. @atom:544 -0.215 6.067457676 5.030169487 0.217444345
$atom:C19 $mol:. @atom:543 0.107 4.863918304 3.085927963 0.307019085
$atom:C20 $mol:. @atom:544 -0.215 4.787744999 4.491345882 0.062122378
$atom:H13 $mol:. @atom:547 0.094 6.367958546 6.076605797 0.133373961
$atom:H14 $mol:. @atom:547 0.094 3.918897629 5.070856571 -0.277386010
$atom:H15 $mol:. @atom:545 0.320 6.513509750 1.927702665 0.944682717
$atom:H16 $mol:. @atom:547 0.094 7.933161736 3.971566439 0.885974646
$atom:N6 $mol:. @atom:542 -0.386 -5.062047958 -6.751646519 6.053655624
$atom:C21 $mol:. @atom:543 0.107 -5.871558666 -6.107636929 5.117469788
$atom:C22 $mol:. @atom:544 -0.215 -7.183024406 -6.078368664 5.608414173
$atom:C23 $mol:. @atom:543 0.107 -5.926793098 -7.177649498 7.087605953
$atom:C24 $mol:. @atom:544 -0.215 -7.205166817 -6.755064964 6.818383694
$atom:H17 $mol:. @atom:547 0.094 -8.000783920 -5.505655289 5.164098740
$atom:H18 $mol:. @atom:547 0.094 -8.075121880 -6.907007217 7.462220669
$atom:H19 $mol:. @atom:545 0.320 -4.037288189 -6.800549507 6.110610008
$atom:H20 $mol:. @atom:547 0.094 -5.526987553 -7.716153622 7.949554920
}

write(“Data Bond List”){
$bond:b1 $atom:N1 $atom:C1
$bond:b2 $atom:N1 $atom:C3
$bond:b3 $atom:C1 $atom:C2
$bond:b4 $atom:C2 $atom:C4
$bond:b5 $atom:C3 $atom:C4
$bond:b6 $atom:N1 $atom:H3
$bond:b7 $atom:C2 $atom:H1
$bond:b7 $atom:C4 $atom:H2
$bond:b9 $atom:N2 $atom:C5
$bond:b10 $atom:N2 $atom:C7
$bond:b11 $atom:C5 $atom:C6
$bond:b12 $atom:C6 $atom:C8
$bond:b13 $atom:C7 $atom:C8
$bond:b14 $atom:N2 $atom:H6
$bond:b15 $atom:C6 $atom:H4
$bond:b16 $atom:C8 $atom:H5
$bond:b17 $atom:N3 $atom:C9
$bond:b18 $atom:N3 $atom:C11
$bond:b19 $atom:C9 $atom:C10
$bond:b20 $atom:C10 $atom:C12
$bond:b21 $atom:C11 $atom:C12
$bond:b22 $atom:N3 $atom:H9
$bond:b23 $atom:C10 $atom:H7
$bond:b24 $atom:C12 $atom:C8
$bond:b25 $atom:N4 $atom:C13
$bond:b26 $atom:N4 $atom:C15
$bond:b27 $atom:C13 $atom:C14
$bond:b28 $atom:C14 $atom:C16
$bond:b29 $atom:C15 $atom:C16
$bond:b30 $atom:N4 $atom:H12
$bond:b31 $atom:C14 $atom:H10
$bond:b32 $atom:C16 $atom:H11
$bond:b33 $atom:N5 $atom:C17
$bond:b34 $atom:N5 $atom:C19
$bond:b35 $atom:C17 $atom:C18
$bond:b36 $atom:C16 $atom:C20
$bond:b37 $atom:C19 $atom:C20
$bond:b38 $atom:N5 $atom:H15
$bond:b39 $atom:C18 $atom:H13
$bond:b40 $atom:C20 $atom:H14
$bond:b41 $atom:N6 $atom:C23
$bond:b42 $atom:C21 $atom:C22
$bond:b43 $atom:C22 $atom:C24
$bond:b44 $atom:C23 $atom:C24
$bond:b45 $atom:N6 $atom:H19
$bond:b46 $atom:C22 $atom:H17
$bond:b47 $atom:C24 $atom:H18
$bond:b48 $atom:N6 $atom:C21
$bond:b49 $atom:H16 $atom:C17
$bond:b50 $atom:C19 $atom:C5
$bond:b51 $atom:C7 $atom:C1
$bond:b52 $atom:C3 $atom:C9
$bond:b53 $atom:C11 $atom:C13
$bond:b54 $atom:C15 $atom:C21
$bond:b55 $atom:C23 $atom:H20

}

}

The types you are using for “N1” and “C1” both have masses of 1.008, suggesting they are actually hydrogen atoms, and as such there is no defined bond potential between them since it would never form in any sane molecule other than H2. I would verify that you are actually building the correct system.

For reference, the bond parameters are determined from the oplssa.lt file. Each atom type is given a unique ID. For your case above, atom “N1” is id=542. Similarly “C1” is id=543. Many of the bonded parameters are the same, so you can go the the ‘Equivalence Categories’ section of the oplssa.lt file and find that these atom types both have bond type 49, so the bond parameters you are looking for are @bond:49-49, however, this bond doesn’t exist for the reason I pointed out above.

David