SMILES notation for cyclic compounds

I am using the polymer.esh file (given bellow) to make sevaral polymers. Everything was working until I tried to make polyDADMAC. From the document I made the monomer like this: @CCC1C[N+](C)(C)CC1C$.[Cl-] ($, @ and % are intentionally used instead of * here) and terminal like *C. But I am getting error saying “Found nrings != nlinks”

ITEM OPTIONS

replace true
field opls-aa
density 0.85
ntotal 1000

ITEM END

Groups

ITEM GROUPS

monomer %CCC1CN+(C)CC1C$,1,monomer:2
terminator *C,1,monomer:1,1,monomer:2

ITEM END

Clusters

ITEM CLUSTERS

poly alternate 1

ITEM END

Polymers

ITEM POLYMERS

poly
1 monomer,2,terminator,2

ITEM END

Unfortunately, your .esh and SMILES did not come through quite right. The editor of this website creates verbatim output when you start your line with four spaces after an empty line, i.e.

This is a verbatim line in which you can use *C*, etc.

To address your SMILES issue, I would assume, that you are looking for the following:

*CC(*)C1CN(C)(C)CC1C.[Cl-]

You do not have to explicitly define the charge on the nitrogen if you define four connections. Note that the repeat connections can also be placed on a side branch.

1 Like