Bond orders and optimizer issues #296
-
I'm building COFs which have double bonds between the building blocks, but due to the nature of the repeat units, I have had to define by own functional groups. However, using GenericReactionFactory to define the bond orders, it defaults to 1 such that I have trivalent carbons. Additionally, both MCHammer and Collapser result in slight distortions to the hexagonal geometry; the bonds remain as long as ever! Any help or suggestions would be greatly appreciated!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hi @benedictsaunders, welcome to stk! bonder ordersI think the issue here is that in your mapping reaction_factory=stk.GenericReactionFactory(
bond_orders={
frozenset({newNHFG, stk.Aldehyde}): 2,
},
), Your set consists of reaction_factory=stk.GenericReactionFactory(
bond_orders={
frozenset({stk.GenericFunctionalGroup, stk.Aldehyde}): 2,
},
), it should create double bonds bonds between optimizersFor your second question, I think thats becuse I haven't merged this PR by @andrewtarzia (#282) so I will merge it today and you should be able to use features from there from tomorrow. |
Beta Was this translation helpful? Give feedback.
Hi @benedictsaunders, welcome to stk!
bonder orders
I think the issue here is that in your mapping
Your set consists of
newNHFG
andstk.Aldehyde
. The issue is thatnewNHFG
is not aFunctionalGroup
class, it is aFunctionalGroupFactory
instance, butbond_oders
expects the set to hold twoFunctionalGroup
classes. TheSmartsFunctionalGroupFactory
creates instances ofGenericFunctionalGroup
so if you do