Potential "Ring Fusion" in Template Tool

Proposal: Ring Fusion in the Template Tool

tldr: A new Rings tab in the Template tool would let you click a bond to fuse a ring onto it, ChemDraw-style, so naphthalene, tetracene or fluorene take just a few clicks. Avogadro would choose the 3D placement, fix the hydrogens and bond orders, and merge overlapping atoms, leaving a structure that’s ready to optimize.

Building fused ring systems in Avogadro can be slow. You can insert a complete template such as naphthalene, anthracene, import by name, or insert molecule. If the system you need isn’t in the list, though, you have to build it (e.g., indene).

ChemDraw and similar 2D editors solve this with ring fusion: pick a ring and click an existing bond, and the new ring is fused onto that bond. Naphthalene is two clicks and tetracene is four.

What it would look like

A new “Rings” tab

The Template tool gets a fourth tab, Rings, with these choices:

Ring Key shortcut
Cyclopropane … cyclooctane C3 … C8 (existing shortcuts)
Benzene a (existing phenyl shortcut)
Cyclopentadiene cp (an existing ligand shortcut)
Cyclohexene to be decided

Heterocycles are not included. To make one, fuse the carbocycle and then click
an atom to change its element, which the Template and Draw tools already
support.

What a click does in the Rings tab

You click Result
A bond Ortho-fusion: the new ring shares the two atoms of that bond.
A hydrogen Same as today: the ring is attached as a substituent in place of that H.
A carbon with two or more H Spiro-fusion: the new ring shares only that atom. Not available for benzene.
A ring-fusion carbon with no H Peri-fusion: the new ring shares that atom and one neighbor on each side, as with naphthalene → phenalene. Both neighbors must carry an H.
Anything else Nothing.

Ctrl-click (⌘-click on macOS) gives the alternative placement where one
exists. See Which side the ring goes on.

Any bond qualifies as long as each of its atoms has a hydrogen to give up. That
includes bonds in chains, not only bonds in rings.

Example build sequences

Start from Ring Click Result
benzene benzene any C–C naphthalene
naphthalene benzene C2–C3 anthracene
naphthalene benzene C1–C2 phenanthrene
butane benzene C2–C3 o-xylene
cyclohexane benzene any C–C tetralin (the shared carbons become sp²)
benzene cyclohexane any C–C tetralin
cyclohexane cyclohexane any C–C trans-decalin; Ctrl-click gives cis-decalin
planar [5]helicene benzene the fjord-side bond of a terminal ring coronene, because the new ring’s atoms merge with the first ring’s (see Overlapping atoms)

Behavior in detail

Which side the ring goes on

The new ring is built on the side where the clicked atoms’ hydrogens point,
and those hydrogens are replaced. This rule covers the common cases:

  • Bond in an aromatic ring: each atom has one H, pointing away from the
    ring. The new ring goes on the outside and in the same plane, as in
    naphthalene.
  • Bond in a chain: the hydrogens fix which side the ring goes on.
    Ctrl-click puts it on the other side.
  • Bond in a saturated ring: by default, each atom loses the H that points
    most directly toward the new ring. On a cyclohexane chair those are the two
    equatorial hydrogens, which gives a trans ring fusion. Ctrl-click replaces
    one axial and one equatorial H instead, which gives cis.

Rings that aren’t symmetric (cyclopentadiene and cyclohexene) can be
fused in two orientations, depending on which shared atom ends up next to the
double bond or the CH₂. I propose that the end of the bond you click nearer
decides this.

Hydrogens

  • The clicked atoms’ hydrogens are replaced as described above.
  • If the new ring needs the shared atoms to be sp², each shared atom also
    loses an extra H. This happens when fusing benzene onto a saturated bond
    (cyclohexane → tetralin, butane → o-xylene) and when cyclopentadiene’s
    shared bond is a double bond. ChemDraw behaves the same way.
  • The ring templates carry their own hydrogens. Hydrogens on the shared and
    new atoms are then adjusted, so chain atoms and the like end up with the
    right count.
  • If an atom doesn’t have enough hydrogens to give up, as on a fully
    substituted carbon, the click does nothing.

Bond orders and aromaticity

When the new ring is aromatic (benzene), the alternating single and double
bonds (the Kekulé structure) are reassigned across the whole fused aromatic
system, not just the new ring, as ChemDraw does. Fusing benzene onto
naphthalene therefore always produces a valid Kekulé structure for anthracene
or phenanthrene, whatever the clicked bond’s order was.

Bond orders outside the affected aromatic system are left alone. If the
reassignment fails, the new ring keeps the template’s alternating bonds and
the fusion still goes through. Failure is possible with odd-membered systems:
1H-phenalene, for example, needs one CH₂.

Overlapping atoms

If a new carbon lands within about 0.5 Å of an existing carbon, the two are
merged into one atom, and any hydrogen on the existing atom that the new ring
displaces is removed. This is how the planar [5]helicene in the examples
closes up into coronene.

A near miss is left alone. Two atoms that are close to each other but
outside the merge distance are not merged, and the clash is not refused. The
crowded fjord of a helicene is an example.

The helicene caveat: if [5]helicene is still perfectly flat, as it is after
a series of clicks with no optimization, the sixth ring lands exactly on the
first and merges into coronene. To build [6]helicene, optimize the geometry
first so that the helix twists, then add the sixth ring. See also the
open questions.

Geometry and optimization

The new ring is placed using template geometry, such as a chair for
cyclohexane. Nothing is optimized automatically. The result is meant to be a
reasonable starting point for Extensions → Optimize Geometry (or AutoOpt),
not a final structure.

Not planned

  • Heterocyclic ring templates: change elements after fusing instead
  • Automatic geometry optimization after each fusion
  • A separate control for cis/trans fusion: Ctrl-click covers it

Open questions

  1. Shortcuts for cyclopentadiene and cyclohexene. a (benzene) and
    C3–C8 already exist. Cyclopentadiene is cp as a ligand. Should cyclohexene use C6=, something like chx, or no shortcut at all?
  2. Default orientation for cyclohexene. When cyclohexene is fused onto
    benzene, should the double bond sit next to the ring fusion
    (1,2-dihydronaphthalene) or one carbon further away
    (1,4-dihydronaphthalene)? I lean toward next to the fusion, with the end
    nearer the click getting the double bond.
  3. A modifier to turn off merging? Shift-click could mean “fuse, but don’t
    merge overlapping atoms”, which would let you build [6]helicene from a flat
    [5]helicene without optimizing first. Is that worth having, or is “optimize
    first” enough?
  4. Merge distance. Is 0.5 Å right? It needs to be large enough to catch
    ring closures in structures that have already been optimized, but small
    enough not to merge atoms in crowded regions such as helicene fjords.
  5. Spiro and peri. If only one of the two makes it into 2.2, which matters
    more to you?
  6. Are any rings missing from the list that you’d use often, such as
    cyclooctatetraene or the cyclohexane boat?