- The parts of the panel
- Drawing in the 2D editor
- From the drawing to the 3D model and back
- Looking up a molecule by name
- Rotating, zooming and moving the model
- The JSmol menu
- Measuring distances, angles and dihedrals
- The console: typed commands
- Saving the drawing, the model or an image
- If something does not work
1. The parts of the panel
- 2D editor (on the left; on a phone, at the top). This is JSME, a structure editor by Peter Ertl and Bruno Bienfait. You draw the formula as you would on paper, without writing the hydrogens on carbon.
- Middle buttons. View in 3D → turns the drawing into a three-dimensional model; ← View in 2D does the reverse.
- 3D viewer (on the right; on a phone, below). This is JSmol, the browser version of Jmol. It shows the model with all its atoms, hydrogens included, on a black background.
- Search box (below the viewer). Loads a molecule from the PubChem database from its name.
- Course molecules (below the panel). A drop-down list of about 170 molecules from the 3D models in the courses, grouped by course and topic; those from the course you came from are listed first. When you choose one it appears in the viewer and, except for the animations, in the 2D editor too. Some come with measurements or colours, as on their page.
Converting to 3D and searching by name use external services (the NCI/CADD Chemical Identifier Resolver and PubChem), so they need an internet connection. Rotating, measuring or changing the style of the model do not.
2. Drawing in the 2D editor
The basics
- Choose a bond tool (the single bond — is selected at the start) and click an empty spot in the white area: a C–C bond appears.
- Click an atom to add a new bond to it, or drag from an atom to draw the bond in the direction you want.
- To turn a bond into a double or triple bond, choose = or ≡ and click that bond.
- To change an atom, choose the element in the left-hand column (C, N, O, S, F, Cl, Br, I, P) and click the atom. With X you can type any other symbol.
- Do not draw the hydrogens on carbon: the editor assumes them and the 3D model adds them by itself.
The editor buttons
The drawing does not need to be neat: for the 3D model all that matters is which atoms are joined and by which bonds. The lengths and angles in the drawing are ignored.
3. From the drawing to the 3D model and back
- View in 3D → sends the formula to the NCI Chemical Identifier Resolver, which returns reasonable three-dimensional coordinates with all the hydrogens. It takes a second or two.
- ← View in 2D draws in the editor the molecule that is in the viewer. This is useful after looking up a molecule by name, to see its formula or modify it. The hydrogens of OH or NH groups may appear drawn.
A good exercise: draw cyclohexane, convert it to 3D and rotate it until you can see the chair and the axial and equatorial hydrogens. Then draw cis- and trans-1,2-dimethylcyclohexane with wedges and compare the two models.
The model you get has an approximate geometry, not necessarily the most stable conformation. To improve it, open the menu and choose Computation › Optimize structure (or type minimize in the console): JSmol refines it with a force field.
4. Looking up a molecule by name
Type the name in the box below the viewer and press Enter or the Search button. JSmol downloads the 3D model from PubChem.
- Common names, IUPAC names and trade names all work (aspirin, 2-propanol, paracetamol). If the molecule is not found, try a synonym.
- Once it is loaded you can press ← View in 2D to see its formula in the editor.
- Very large molecules, or those without a 3D model in PubChem (some polymers, proteins or salts), may not load.
5. Rotating, zooming and moving the model
7. Measuring distances, angles and dihedrals
Each measurement starts and ends with a double-click; atoms in between are marked with a single click:
- Distance (in Å): double-click the first atom and double-click the second.
- Bond angle: double-click the first atom, click the central atom and double-click the third.
- Dihedral angle (torsion): double-click the first atom, click the second, click the third and double-click the fourth. This is the angle in Newman projections: for example, about 60° between the methyl groups of butane in the staggered gauche conformation and 180° in the anti one.
Measurements stay drawn and rotate with the model. To delete them: Measurements › Delete measurements in the menu. If double-clicking is awkward (on a laptop or a phone), choose Click for distance measurement (or angle, or torsion) in the same menu and mark the atoms with single clicks.
8. The console: typed commands
Everything the menu does, and much more, can be typed. Open the menu and choose Console; type the command at the bottom and press Enter or Run. You can chain several commands by separating them with semicolons. The Try buttons in this table run the command straight in the viewer.
To act on only part of the molecule, use select before the command: select oxygen; spacefill 50% enlarges only the oxygen atoms, and select all selects everything again. The complete guide to the commands is in the Jmol documentation.
9. Saving the drawing, the model or an image
- The 2D drawing: the blue triangle in the editor copies the molecule as SMILES or as a MOL file, which you can paste into another program or save in a text file. Paste MOL or SDF pastes a file back into the editor.
- An image of the 3D model: File › Export › Export PNG image in the menu. The background will be black.
- The 3D model: File › Save in the menu; the first option saves a copy of the file with the coordinates, which you can open later with File › Load › Open local file.
10. If something does not work
- I press “View in 3D” and nothing happens. Check your internet connection and that the drawing is a single molecule, with no stray atoms or impossible valences. If the NCI service does not respond, try again a little later or look up the molecule by name.
- The search cannot find the molecule. Try another synonym or the IUPAC name, or draw it.
- The model has a strange geometry. Use Computation › Optimize structure. Check the wedges too: a wrong wedge changes the configuration.
- The panels do not appear. The page needs JavaScript and does not work when opened as a local file (file://); on the website it works in any current browser, phones included.
- The menu is in another language. Choose Idioma › en_US - American English (or Language) in the menu itself.