Dear support,
using Build > Insert > Nanoribon I created 2x2 “armchair” minigraphene sheet, C14:
However, uponon adding hydrogens I got some of them at unwanted positions, see the final C14H24 :
However, when I manually constructed C14 “nanoribon”, and added hydrogens, they are attached to proper C atoms (C14H24) :
Please help. This is the default build-ase plugin 0.1.0, which generates graphene nanoribons.
Hmm. Seems like bond order perception isn’t happening.
I implemented a new bond order code for 2.1 that was really good on PDB ligands, etc. but it seems like it’s not working well on these carbon structures without the hydrogens present. (I managed to get a benzene ring with no hydrogens turn into C=C=C.)
Let me see if I can make some progress. In the meantime, I’d suggest Open Babel => Perceive Bonds to use that implementation.
I’ll probably need a few more days before I merge this, but it seems like I’m making progress:
I can probably also put in a minor bug fix for “don’t make two double bonds to a carbon with 120° angles” and “adjust some bonds even if it’s not a perfect match” - in case we decide to do a 2.1.1 release.
As I said, in the meantime, the Open Babel implementation is a decide workaround, although it can get slow on larger nanocarbons. (That’s why I’m writing a new version.)
Okay, I also updated the build-ase plugin to add hydrogens, so this won’t be likely in the meantime (e.g., with the hydrogen termination, the code easily figures out bond orders)
I think the 0.2.0 release of the build-ase plugin should be available now too.
Thanks for the bug report! (And there should be a little
button in the plugin manager now to report these directly via GitHub.)