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
newNHFGandstk.Aldehyde. The issue is thatnewNHFGis not aFunctionalGroupclass, it is aFunctionalGroupFactoryinstance, butbond_odersexpects the set to hold twoFunctionalGroupclasses. TheSmartsFunctionalGroupFactorycreates instances ofGenericFunctionalGroupso if you do