Skip to content

Commit

Permalink
Add docs and screenshots for the template tool
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Nov 19, 2023
1 parent b7f3190 commit 17deeaf
Show file tree
Hide file tree
Showing 18 changed files with 97 additions and 0 deletions.
Binary file added source/_static/FeBipy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Ligand-AddCentroid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Ligand-CentroidMenu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Ligand-SelectAtoms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/OctIron.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/OtherFunctionalGroup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Template-COD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Template-COD2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Template-COD3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Template-COD4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Template-CenterDialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Template-Coordination.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Template-Element.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Template-Ligand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Template-LigandDialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/Template-LigandPerpendicular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/anhydride.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 97 additions & 0 deletions source/docs/tools/template-tool.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
(template-tool)=

# Template Tool

The template tool makes it easy to build up molecules from pre-defined ligands or functional groups, for example metal complexes or organometallic species.

![Template tool window indicating menus for element, formal charge, and coordination geometry](../../_static/Template-CenterDialog.png)

## Inserting Atoms with Specific Geometry

The "Element" menu includes many common transition metals as well as carbon, phosphorous and sulfur, as well as "Other…" which brings up a periodic table to select any element.

![Menu of elements, including carbon, phosphorus, sulfur, and transition metals](../../_static/Template-Element.png)

The "Formal Charge" menu allows you to specify a formal charge on the atom, which is used to calculate the total molecular charge for a calculation or force field optimization.

The "Coordination" menu allows you to specify the number of attachment points and geometry of the atom, including common arrangements from one to eight ligands. This includes linear, trigonal planar, tetrahedral, square planar, trigonal bipyramidal, octahedral, as well as less common geometries such as square pyramidal, trigonal prism, pentagonal bipyramidal, and square antiprism.

![Menu of coordination geometries including linear, trigonal planar, tetrahedral, square planar, trigonal bipyramidal, and octahedral](../../_static/Template-Coordination.png)

After selecting a coordination type from the menu, the preview will update to reflect the geometry.

Once you have selected the element, formal charge (if desired), and coordination, click in the scene to insert the atom.

![Image of octahedral iron atom with six white hydrogen atoms](../../_static/OctIron.png)

## Attaching Ligands

The second tab in the template tool window allows you to select from a range of ligand types, including common [bidentate](https://en.wikipedia.org/wiki/Denticity), [tridentate](https://en.wikipedia.org/wiki/Tridentate_ligand), [tetradentate](https://en.wikipedia.org/wiki/Tetradentate_ligand), and [hexadentate](https://en.wikipedia.org/wiki/Hexadentate_ligand) ligands as well as conjugated [haptic ligands](https://en.wikipedia.org/wiki/Hapticity).

![Dialog of ligand types in Avogadro](../../_static/Template-LigandDialog.png)

After you change the type of ligand, the list of ligands will change accordingly. Similarly, after chosing a particular ligand, the preview image will update.

For monodentate or haptic ligands, click on a hydrogen atom to attach the new ligand.

![Example of ammine ligand attached to an octahedral iron atom](../../_static/Template-Ligand.png)

For bidentate, tridentate, tetradentate, and hexadentate ligands, click on multiple hydrogen atoms and the ligand will be attached accordingly. For example for a tridentate ligand, click on three atoms in order. If you click on three sites in a line, but the tridentate ligand is a triangle, Avogadro will attach a "best fit."

![Iron bipyridine molecule](../../_static/FeBipy.png)

## Attaching Functional Groups

Functional groups are similar to monodentate ligands in that they attach to a molecule through one new bond.

Beyond the common choices, "Other…" includes a library of over 100 functional groups organized by element, e.g., sulfonates, acid anhydrides, boronic acids, etc.

![Selecting other functional groups in a dialog organized by element](../../_static/OtherFunctionalGroup.png)

After selecting a group, a preview will appear. Click the "Insert" button and click on a hydrogen atom in the scene to attach the fragment of your choice.

## Creating New Ligands

While the ligand library includes many common ligands, you may wish to create your own or tweak a ligand before attachment.

As an example, we will build the salen ligand and add the attachment point for this tetradentate ligand. The process is similar for other ligands -- Avogadro will use the location of a dummy atom (element zero) to determine where to attach to a metal or molecule.

After creating your ligand molecule, you should select the atoms which will be the attachement sites:

![salen molecule with four selected atoms: two oxygen and two nitrogen](../../static/Ligand-SelectAtoms.png)

The Build ⇒ Add Centroid command will add a dummy atom at the center of the selected atoms:

![menu indicating "Add Centroid" command](../../static/Ligand-CentroidMenu.png)

The ligand will now have a centroid dummy atom added. Draw bonds as desired to the attachment sites.

![salen ligand with four selected atoms and new centroid dummy atom](../../static/Ligand-AddCentroid.png)

The ligand can either be copied to the clipboard to insert via the Clipboard ligand type, or saved as CJSON to contribute to the [fragment repository](https://github.com/openchemistry/fragments)

## Creating New Haptic Ligands

Haptic ligands indicate bonding between a metal center and a delocalized pi system, such as an aromatic ligand.

As an example, we will build up an η4-cyclooctatetraene ligand. Either draw the molecule or use File ⇒ Import ⇒ Download by Name… to insert the basic molecule.

![cyclooctatetraene molecule](../../static/Template-COD.png)

Now select the four atoms to use for the haptic ligand:

![cyclooctatetraene molecule indicating four selected carbon atoms](../../static/Template-COD2.png)

Now use the "Add Centroid" command to add a dummy atom at the centroid of the selected atoms. This is useful to create distinct hapticity (e.g., η3 cyclopentadienyl after selecting three carbon atoms instead of five):

![cyclooctatetraene molecule indicating four selected carbon atoms and dummy attachment point](../../static/Template-COD3.png)

For a haptic ligand, we need one more dummy atom, perpendicular to the pi system. We can add an additional dummy atom **perpendicular** to the centroid:

![Menu indicating "Add Perpendicular" item for haptic attachment points](../../static/Template-LigandPerpendicular.png)

After adding the perpendicular attachment, draw a bond between the centroid and the attachment site.

![](../../static/Template-COD4.png)

You can either save this file as CJSON to contribute to the repository, or "Select None" to deselect all atoms and copy the ligand to insert into a new molecule.

0 comments on commit 17deeaf

Please sign in to comment.