Crystals and unit cells
Molkit draws a crystal as its unit cell: the box, three small arrows beside it that show which way a, b and c point, and every atom of the cell as an ordinary atom you can select, move and style. There are two kinds of crystal picture:
- A crystal: real atoms from a file or from Molkit’s library. Use it when the structure matters: a CIF from a database, a VASP calculation, a mineral.
- A lattice figure: a picture of a textbook lattice (simple, body-centered or face-centered cubic, or rock salt) with the counting written out. Use it to teach how atoms are shared between cells.

Crystal files Molkit reads
Section titled “Crystal files Molkit reads”| File | How Molkit knows it |
|---|---|
| CIF | the .cif extension |
| POSCAR or CONTCAR (VASP) | the .vasp, .poscar or .contcar extension, or a file named POSCAR or CONTCAR |
| Extended XYZ | the .extxyz extension, or an .xyz file whose second line has Lattice= |
| PDB | the .pdb or .ent extension, with a real cell on its CRYST1 line |
There are three ways in:
- File > Open… opens the crystal in a new tab, named after the file.
- File > Import Crystal File… adds it to the current canvas, in the middle of the view.
- Drop the file on the canvas to add it where you drop it.
A file Molkit cannot read is refused with the reason, for example “it has no atom sites”. When Molkit has to make a choice while reading the file, such as keeping the major part of a disordered site, a message says so.
A CIF may name its space group without listing its symmetry operators. Molkit then builds the operators from the name (its Hall symbol, its Hermann-Mauguin name, or its number). When a name leaves a choice open, such as the two origins of diamond’s Fd3m, Molkit takes the one that gives sensible distances and says which.
A CIF that gives an R space group on rhombohedral axes (a = b = c, all three angles equal) is drawn on its hexagonal axes, as International Tables gives it first and the powder diffraction file uses. Calcite from COD then has a = 4.98 Å, c = 17.02 Å and Z = 6, and its strongest X-ray line is (104), as in every reference pattern. Molkit says so in a message.
A PDB file is read as a crystal only when its CRYST1 line gives a real cell. A PDB of a protein (over 2,000 atoms) is refused. A PDB with no cell is a molecule, not a crystal, and Molkit says so.
A VASP 4 file does not name its elements. Molkit asks for them, in the order of the file’s counts, and fills in its guess from the file’s first line. Molkit never assumes the elements.
How the cell is drawn
Section titled “How the cell is drawn”-
The atoms of one cell. Each atom of the cell is a real Molkit atom. An atom on a corner, an edge or a face belongs to several cells, so it is drawn at every corner, edge or face it stands for. Rock salt’s 4 Na+ and 4 Cl− fill 8 corners, 12 edges, 6 faces and the center. Each copy moves with the atom it stands for, and a click on a copy picks the whole crystal.
-
Whole ions and molecules. A polyatomic ion (carbonate, nitrate, sulfate) or a molecule is never cut at a face. When its center sits on a corner, an edge or a face, Molkit places it by its center and draws all of it at every corner, edge or face that center stands for, so a molecule on a corner reaches past the box, as textbooks draw it. A molecule of more than 10 atoms (benzene, ferrocene, C60) is drawn once, whole, with its center in the cell: eight copies at the corners would hide each other.
-
Charges. An ionic crystal shows its ions’ charges and no lines between ions. A covalent crystal (diamond) shows its bonds; a bond that leaves the cell is drawn as a short stub.

Diamond, a covalent crystal: bonds instead of charges. -
No implicit hydrogens or lone pairs. A crystal file lists its hydrogens, or has none.
-
Hydrogens as stick ends. A bonded hydrogen is drawn as the end of its bond, with no H label: drawn to scale, an O-H bond is too short to show between two labels. A lone or charged hydrogen (a hydride ion) keeps its label.
-
One ordered arrangement. Where a file gives partly filled hydrogens in two arrangements at once (the 8 half-filled H around each N in NH4Cl, the half H of ice), Molkit draws one arrangement whole: each NH4+ a tetrahedron, each water with two H. The formula still counts every site.
-
A layered crystal. Graphite opens looking down onto its layers, 3 by 3 cells, so its hexagons show. Half of the other layer’s atoms sit in the centers of the hexagons; the rest are hidden behind atoms of the first layer. Choose Textbook view in Look along, or Show in 3D, to see the layers stacked.
-
One object. Click any atom to select the whole crystal. The panel’s title reads, for example, “Crystal · Sodium chloride (rock salt)”.
Change the view
Section titled “Change the view”Select the crystal. The Crystal group at the top of the properties panel shows its formula (an ionic crystal cation first, as in NaCl), Z (formula units per cell), its kind (ionic, metallic, network or molecular), the density worked out from the cell, and the space group.

| Setting | What it does |
|---|---|
| Repeat | Draws up to 4 cells along each of a, b and c. Every cell after the first is drawn as Copies sets: lighter by default. |
| Copies | With Repeat: Lighter (the default) keeps the first cell in front, Solid draws every cell alike, the textbook lattice, and Faint leaves the copies barely there. In a script: copies: solid. |
| Look along | Turns the view; see Look along. |
| Hexagonal prism | Shown for any hexagonal cell. Draws the crystal as textbooks draw hexagonal close packing: the hexagonal prism of three cells with every atom in it, the unit cell outlined inside in blue. Magnesium shows 12 atoms at the corners, 2 in the centers of the hexagons and 3 inside. A cell with no atom at its corner (wurtzite, graphite, ice, quartz and many CIF files) first has its origin moved onto an atom: the same crystal, described from another corner, in one undo step, and the panel says which atom. Displacement ellipsoids are not kept through the move. Off with Repeat. In a script: prism: on. |
| Cell parameters | Writes the cell’s lengths and angles above it, equal ones together as a textbook does: a = b = c = 5.64 Å and α = β = γ = 90° for rock salt. In a script: parameters: on. |
| Heights | Shown when you look along an axis. Writes each atom’s height along that axis beside it, as a fraction of the cell (0, 1/2, 1/4). Atoms of one element one behind another share a line (0, 1), and an atom of another element hidden behind is named on a line of its own (Cl 1/2), so the flat picture still places every atom. This is the standard exam drawing. In a script: heights: on. |
| Depth | Draws the atoms and bonds farther back lighter, so the cell reads in depth; the drawing stays a parallel projection, as crystal drawings are. Subtle is the default, None draws every atom alike, and Strong fades the back more. In a script: depth: strong. |
| Atoms | Labels draws each atom as its element symbol, as a structure is drawn. Balls draws shaded balls and sticks, the textbook look of an ionic or metallic crystal, in the 3D view’s colors: an ionic crystal’s ions are sized by their ionic radii, so Cl− is larger than Na+. The atoms stay editable underneath, and a click on a ball selects the crystal. In a script: atoms-as: balls. |
| Show charges | Shown when the crystal has charged atoms. Clear it to draw Na and Cl instead of Na+ and Cl−, for example to ask students for the charges. The atoms keep their charges, so the count, the numbers and the 3D view still use them. In a script: charges: off. |
Each change is one undo step. The cell stays where it is on the canvas.
Look along
Section titled “Look along”A crystal is never flipped, rotated or resized like a drawing, because that would pull its atoms off the cell. To turn it, choose a view in Look along:
- Textbook view: turns and tilts the cell so its depth shows, as a textbook draws it. You see it from above and the right: a comes toward you and down to the left, b goes to the right, c goes up, and the three dashed edges meet at the origin at the back.
- Axis a, Axis b, Axis c: looks straight down that axis. You see one layer, and an atom exactly behind another is hidden.
- Body diagonal [111]: looks along the cube’s diagonal.
In a view along an axis or the diagonal, a bond to a hidden atom is drawn faint and dashed, and a line above the cell says which way it looks, such as viewed along [001]. When a whole kind of atom is hidden (K+ behind the nitrate N in KNO3), a line under the cell says so.



Moving and changing atoms
Section titled “Moving and changing atoms”- Move the crystal: drag it, or use the arrow keys. The box moves with it.
- Turn, flip, or resize the crystal: not available, because its atoms would leave the cell. A selection that holds a crystal shows no scale handles, and the flip, rotate, and resize commands say why they do nothing. To see the crystal from another side, use Look along.
- Move one atom: Molkit works out its new place in the cell from where you drop it, in the plane of the view (its depth stays).
- Delete an atom: its place in the cell goes too. Deleting every atom deletes the crystal.
- Change an element or a charge: the cell stays. A new element is written into the cell, so the formula, the count and the 3D view follow: make every Na a K and rock salt reads KCl.
- Any other edit the cell cannot hold, such as drawing a bond from a crystal atom to a new atom: the cell is taken off and its atoms stay as drawn. A message says the edit does not fit a repeating cell, and one Undo brings the cell back.
Count the atoms
Section titled “Count the atoms”Select the crystal and turn on Count atoms in the Crystal group (in a script: change nacl-1 counting: on).
-
Every atom of the cell is tinted by where it sits:
Place Shared by Counts as (a cell with right angles) Corner 8 cells 1/8 Edge 4 cells 1/4 Face 2 cells 1/2 Inside 1 cell 1 -
Under the cell, each kind of atom is summed, for example Na+: 8 corners × 1/8 + 6 faces × 1/2 = 4.
-
With Repeat on, the count is for one cell.
-
A partly filled site counts its share times how full it is: a site half filled counts 1 inside × 0.5 filled = 0.5. A disordered ion is counted whole: the 8 half-filled H around each N in NH4Cl make one NH4+.
-
A polyatomic ion or a molecule is counted whole, by where its center sits: in iodine, I2: 8 corners × 1/8 + 6 faces × 1/2 = 4. The ring marks the center, on the corner or face the molecule stands for. A large molecule drawn once is counted once: C10H10Fe: 2 drawn once, whole = 2.

The numbers
Section titled “The numbers”Open Numbers in the Crystal group to see what the cell works out to:
- Density, step by step: density = Z × M / (NA × V). M includes every atom on a shared or partly filled site.
- Coordination: how many nearest neighbors each kind of atom has, and how far they are. When a second shell is close (body-centered cubic: 8, then 6 more), it is named too.
- An ionic crystal counts the ions of the other sign. A polyatomic ion counts as one ion: in calcite, each Ca2+ has 6 carbonate oxygens.
- The central atom of a polyatomic ion lists the atoms bonded to it (C 3 bonded in carbonate).
- When the neighbors are at slightly different distances, the range is shown (rutile’s Ti: 6 at 1.84 to 2.06 Å).
- A molecular crystal has none: its molecules touch, not its atoms.
- Packing fraction: the part of the cell filled by the atoms.
- A crystal of one element takes its atoms as touching spheres (simple cubic 52%, body-centered 68%, face-centered 74%, diamond 34%).
- An ionic crystal of single-atom ions takes its ions’ Shannon radii (R. D. Shannon, 1976) for the coordination found.
- When the radii do not fit the cell (a high-pressure cell), Molkit says so instead of giving a number.
- Radius ratio, for a two-ion crystal: r+ / r-, the coordination it predicts, and whether the crystal agrees. It is a rule of thumb that often fails, and Molkit says so.
The molecule
Section titled “The molecule”A crystal made of molecules (aspirin, urea, ice, most organic COD entries) has a Draw the molecule button in the Crystal group. It draws the molecule the crystal is made of below it, as an ordinary molecule: you can edit it, name it, or show it in 3D like any other.
- One of each kind is drawn. The copies the crystal’s symmetry makes are the same molecule, so aspirin’s cell of 4 gives one aspirin.
- A molecule cut by the cell’s faces is drawn whole.
- Solvent molecules, such as water or methanol, are left out unless you select with solvent. A crystal of water alone (ice) draws its water.
- A disordered molecule, one whose atoms are only partly filled, is left out, and the message says so.
- A file without hydrogen positions, as many older X-ray structures are, still gives the right molecule: Molkit reads the bond orders from the bond lengths and adds the hydrogens.
- The crystal itself does not change.
- A sandwich compound such as a ferrocene is drawn with every metal-carbon bond, so its rings look crowded in a flat drawing.
In a script: derive aspirin-1 views: molecule, with solvent: keep to draw the solvent too.
The crystal in 3D
Section titled “The crystal in 3D”Click Show in 3D in the Crystal group. A 3D view of the crystal goes beside its drawing:
- the same atoms, the atoms on the faces, edges and corners, and the repeated cells;
- the cell’s edges, with the three at the back corner dashed;
- with Count atoms on, the first cell’s atoms tinted the same way as on the drawing, with a key under the picture;
- in an ionic crystal, each ion sized by its ionic radius, so Cl− is larger than Na+, as in a textbook model;
- with Cut at the cell faces in 3D on, each atom on a face, an edge or a corner drawn as only its part inside the cell: half a sphere, a quarter, an eighth. It shows why those atoms count 1/2, 1/4 and 1/8, and it reads best with the space-filling look. One cell only, and for an ionic or metallic crystal: in a covalent network such as diamond the spheres overlap at their bonds. In a script:
cut: on.

The 3D view opens the way the drawing looks. Double-click it to turn it, or to draw it ball-and-stick or space-filling, as any 3D view. A Repeat, Look along or Count atoms change on the crystal redraws it, keeping the angle you turned it to. The 3D view takes up to 999 atoms.
Thermal ellipsoids in 3D (in the Crystal group, for a crystal from a file that gives displacement parameters, as most COD entries do) draws each atom in the 3D view as its thermal ellipsoid, the ORTEP picture: the shape inside which the atom is found half the time as it vibrates. A long ellipsoid shows the direction the atom moves most. A hydrogen the file gives only one size for is drawn as a small sphere, as published ORTEP figures do, and so is any atom the file gives no usable parameters for. The ellipsoids are in the 3D view’s picture; when you double-click it to turn it, the live view shows balls. In a script: ellipsoids: on.
Flatten from 3D (in the Crystal group, once the crystal has a 3D view) turns the 2D drawing to look at the cell as the 3D view is turned. Turn the 3D view to the angle you want, then click it. A direction close to a whole-number one, such as [110], snaps to it. In a script: change nacl-1 along: from-3d.
While you turn it, click an atom: dashed lines go to its nearest neighbors, and the bar under the view says how many there are and how far, for example “Cl−: 6 neighbors at 2.81 Å”.
On a web page
Section titled “On a web page”An SVG export of a crystal carries the crystal for a web page. On a page with the Molkit Viewer:
- the 3D button shows the crystal in 3D, as Show in 3D draws it: the cell’s edges, the repeated cells, the counting tints, holes or layers, a Miller plane, and coordination polyhedra;
- the 3D view’s View menu turns it face on along a, b or c, edge on, along the body diagonal, back to the textbook view, or level;
- a page can open the crystal in 3D from the start with the viewer’s
initial: '3d'option (the viewer); - a line under the 3D view names the crystal (formula, kind, space group, cell, Z), with the key when its atoms are tinted;
- the title gives the formula unit, NaCl and 58.44 g/mol, not the cell’s Na4Cl4.
Ions drawn on their own (Na+ beside Cl−) have no cell, so the viewer does not offer 3D for them.
Molkit’s library
Section titled “Molkit’s library”These crystals are built in, so they work offline. Choose Insert > Crystal…, search by name or formula, and click one: it is drawn in the middle of the view. In a script, name it: crystal quartz.
| Kind | Crystal | Names you can use |
|---|---|---|
| Ionic | Sodium chloride (rock salt) | NaCl, rock salt, halite, sodium chloride |
| Ionic | Cesium chloride | CsCl, cesium chloride, caesium chloride |
| Ionic | Zinc blende | ZnS, zinc blende, sphalerite, zinc sulfide |
| Ionic | Wurtzite | wurtzite |
| Ionic | Fluorite | CaF2, fluorite, calcium fluoride |
| Ionic | Rutile | TiO2, rutile, titanium dioxide |
| Ionic | Perovskite | SrTiO3, perovskite, strontium titanate |
| Metal | Copper (face-centered cubic) | Cu, copper |
| Metal | Aluminum (face-centered cubic) | Al, aluminum, aluminium |
| Metal | Iron (body-centered cubic) | Fe, iron |
| Metal | Sodium (body-centered cubic) | Na, sodium |
| Metal | Magnesium (hexagonal close packed) | Mg, magnesium |
| Metal | Zinc (hexagonal, c/a 1.856) | Zn, zinc |
| Metal | Polonium (simple cubic) | Po, polonium |
| Covalent | Diamond | diamond, C |
| Covalent | Graphite | graphite |
| Covalent | Quartz | SiO2, quartz, silica |
| Molecular | Ice Ih | ice, H2O |
| Molecular | Iodine | I2, iodine |
- Four come from the Crystallography Open Database (public domain), with their authors credited.
- The rest were built from published structures (Wyckoff’s Crystal Structures and the papers credited for each crystal).
- Real ice Ih has its hydrogens disordered. Molkit’s ice is one ordered arrangement in which every oxygen has two hydrogens (the ice rules).
- Zinc’s c/a ratio (1.856) is longer than the ideal 1.633, so it is not truly close packed. Its 12 neighbors are 6 at 2.66 Å and 6 at 2.91 Å.
Crystals from the Crystallography Open Database
Section titled “Crystals from the Crystallography Open Database”A crystal that is not in the library can come from the Crystallography Open Database (COD), a free collection of published crystal structures.
- Choose Insert > Crystal… and type a name, a mineral name or a formula: calcite, pyrite, CaCO3.
- Click Search COD under the library’s crystals, or press Enter when the library has none by that name.
- Molkit lists COD’s entries, the best first. Each line gives the space group, the cell, the authors and year, and the COD number.
- Click one. Molkit reads its CIF and draws it, as if you had opened the file.
Which entries come first:
- an entry named exactly as you typed (Calcite before Magnesian calcite);
- then one measured at room temperature and pressure (not a high-pressure phase);
- then the one with the lowest R factor (the best fit to its data).
COD’s data is open (CC0), and its authors ask to be credited. Molkit says where a crystal came from, for example “COD 1010928: Elliott (1937)”, in the message after it is drawn and in the Crystal group.
The search is sent to COD through molkit.com. If Molkit cannot reach it (you are offline), it says so. You can still download a CIF from the COD website and open it with File > Open….
Holes and layers
Section titled “Holes and layers”Many crystals are one kind of atom in a close-packed array, with the other atoms in its holes. For such a crystal, the Crystal group shows more controls:
- Holes: marks the array’s octahedral holes, its tetrahedral holes, or both. Under the controls, Molkit says what fills them.
- Hole marks (shown while Holes is on): Rings on empty holes, the default, draws a ring at each empty hole, purple for octahedral and orange for tetrahedral; an ion in a hole is its own mark, and the key under the drawing names it, for example “Na+ in the octahedral holes”. Shapes on every hole draws a square at each octahedral hole and a triangle at each tetrahedral hole, outlined around the atom when the hole is filled. In Molkit Script:
holes-as: ringsorholes-as: shapes. - Stacking layers: rings each atom of the array by its close-packed layer. Turning it on also turns the view along the layers’ direction.
| Crystal | What Molkit says |
|---|---|
| Rock salt | Na+ fills all 4 octahedral holes of the fcc Cl− array |
| Zinc blende | Zn2+ fills half (4 of 8) tetrahedral holes of the fcc S2− array |
| Fluorite | F− fills all 8 tetrahedral holes of the fcc Ca2+ array |
| Wurtzite | Zn2+ fills half (2 of 4) tetrahedral holes of the hcp S2− array |
| Diamond | C fills half (4 of 8) tetrahedral holes of the fcc C array |
| Array | Layers | Seen along |
|---|---|---|
| Face-centered cubic (copper) | A B C A B C | the body diagonal [111] |
| Hexagonal close packed (magnesium) | A B A B | c |

![Copper seen along [111] with Stacking layers on: the atoms ringed red, blue and green for layers A, B and C.](/img/chemistry/crystal-stacking.png)
Coordination polyhedra
Section titled “Coordination polyhedra”Choose an element in Polyhedra in the Crystal group to draw the solid that each of its atoms’ nearest neighbors make:
- Molkit draws every polyhedron of that element that fits inside the cell (the 4 tetrahedra of zinc blende around S). When none fits, it draws the one nearest the center.
- Its faces are tinted, and its back edges are dashed.
- Under the cell, Molkit names the shape: for rock salt around Cl, “octahedron (6 Na around each Cl)”.
- The 3D view draws the same polyhedra.
| Crystal | Around | Shape |
|---|---|---|
| Rock salt | Cl− or Na+ | octahedron (6) |
| Cesium chloride | Cs+ | cube (8) |
| Zinc blende | Zn2+ or S2− | tetrahedron (4) |
| Perovskite (SrTiO3) | Ti4+ | octahedron of O2− (6) |
| Copper (cubic close packed) | Cu | cuboctahedron (12) |
| Magnesium (hexagonal close packed) | Mg | anticuboctahedron (12) |
Copper’s and magnesium’s shells both have 8 triangles and 6 squares. The cuboctahedron has a center of symmetry; the anticuboctahedron (the shell of ABA stacking) has none, and Molkit names each.
The list holds only the elements whose first shell closes around them. Choose Off to remove the polyhedra.
Miller planes
Section titled “Miller planes”Type three Miller indices h, k and l in Plane in the Crystal group (0 0 0 turns it off):
- Molkit draws the (hkl) plane where it crosses the cell: (111) is the triangle through the ends of a, b and c.
- The atoms on the plane are ringed.
- Under the controls, Molkit gives the spacing d of the planes. In a cubic cell, d = a / √(h2 + k2 + l2), the d in Bragg’s law, nλ = 2d sin θ.

Powder X-ray pattern
Section titled “Powder X-ray pattern”Click Powder pattern in the Crystal group (in a script: xrd nacl-1) to see the pattern a powder diffractometer would record from the crystal:
- Each peak is a family of planes (hkl), the planes the crystal’s symmetry makes alike. Two different families at one angle are both named, as (300)/(221) in CsCl. A negative index has a bar over it: (110). It sits at the angle 2θ that Bragg’s law, nλ = 2d sin θ, gives for the planes’ spacing d.
- Its height, relative to the strongest peak at 100, comes from the structure factor (how the atoms of the cell scatter X-rays together) and the Lorentz-polarization factor. Planes with the same spacing add up.
- Point at a peak to name it: its (hkl), 2θ, d, intensity and how many planes share it.
- Click a peak to draw its plane in the cell, as Plane does, with Bragg’s law in numbers.
- X-rays chooses the source: copper Kα1 (1.5406 Å; a laboratory tube also gives the weaker Kα2 line, which is not simulated), molybdenum or cobalt.
- Insert into drawing puts the chart on the canvas; Copy table copies every peak as a table.
| Crystal | Strongest peaks (Cu Kα1) |
|---|---|
| Rock salt | (200) at 31.8°, (220) at 45.6° |
| Copper | (111) at 43.3°, (200) at 50.5° |
| Quartz | (101) at 26.6°, (100) at 20.9° |
| Calcite | (104) at 29.4°, (113) at 39.5° |
The pattern is simulated from the cell. A measured pattern also shows texture, extinction and absorption, so its peak heights can differ (rock salt’s weak (111) measures stronger). The peak positions match.
Primitive cells
Section titled “Primitive cells”A POSCAR or extended XYZ file often holds the primitive cell, the smallest cell of the lattice. The primitive cell of copper holds 1 atom and is not a cube. When Molkit finds the primitive cell of a face-centered or body-centered cubic lattice:
- the Crystal group says so, and offers Show conventional cell;
- a click redraws the crystal as the textbook cube with all of its atoms (4 for copper), in the same place, as one undo step.
Lattice figures
Section titled “Lattice figures”Insert > Lattice… draws a textbook cubic lattice as a figure:
- sc (simple cubic), bcc (body-centered cubic), fcc (face-centered cubic, also called cubic close-packed), or nacl (rock salt).
- The unit cell layout shades each atom by where it sits and writes the counting under it: 8 corners × 1/8 + 6 faces × 1/2 = 4 atoms per cell.
- The (100) layer layout draws the flat net of one face, 3 by 3 cells, with one cell outlined.
The figure is a picture, not a crystal: its atoms are not editable. Double-click it to change it. It follows the theme and the document’s text style, as the other figures do.


In a script
Section titled “In a script”crystal NaClchange nacl-1 along: c counting: onderive nacl-1 views: 3dcrystal diamond repeat: [2, 2, 1] right-of: nacl-1-3dcrystal NaCl holes: octahedral plane: [1, 1, 1] below: nacl-1crystal Cu stacking: on right-of: nacl-2lattice fcc below: nacl-2lattice nacl layout: layer right-of: lattice-1crystal <name>draws a crystal from the library. A script cannot read a file on your computer; open a file with File > Open….- A name not in the library is looked up in COD:
crystal calcitedraws COD’s best entry, and the log writes it ascrystal calcite cod: 1010928, so the script draws the same entry next time.cod:draws an entry by its number. repeat:,along:(clinographic, a, b, c or diagonal, the body diagonal) anddirection:([u, v, w], for example [1, 1, 0]) set the view, oncrystaland onchange.counting: oncounts the atoms;derive nacl-1 views: 3dmakes the 3D view.holes:(octahedral, tetrahedral, both or off),stacking: onandplane: [h, k, l]show the holes, the layers and a Miller plane, oncrystaland onchange.plane: [0, 0, 0]removes the plane.change cu-1 cell: conventionalredraws a primitive cell as its conventional cube.describe nacl-1lists the cell, the space group, Z, the density, where each atom sits, the counting and the numbers.- How it is drawn, on
crystaland onchange:atoms-as: balls,copies: solid,charges: off,depth: strong,heights: on,parameters: on,prism: on,polyhedra: Cl,cut: onandellipsoids: on.change nacl-1 along: from-3dturns the drawing as its 3D view is turned. derive aspirin-1 views: moleculedraws a crystal’s own molecules, withsolvent: keepfor the solvent too.
What is saved
Section titled “What is saved”- In a Molkit file, a crystal keeps everything: its cell, every atom’s place in it, its displacement parameters, its source and credit, and every view setting above. It opens again exactly as you left it.
- In a script (when Molkit writes the canvas as script lines, or with the Recorder), a library or COD crystal is written as one
crystalline with its settings. A crystal opened from a file on your computer cannot be written, since a script cannot read your files, and the log says so. - A few things have no script equivalent, so the log notes them instead of writing them as script lines: a view flattened from 3D along a direction that is not whole numbers, its turn in the plane, and atoms you moved or changed in a COD or library crystal.
- An export (SVG or PNG) is the drawing as it is on the canvas, the crystal and its 3D view alike.
Limits
Section titled “Limits”- A cell of up to 500 atoms is drawn, and up to 2,000 atoms with Repeat. A larger cell, such as a protein crystal, is refused with the reason.
- A 3D view holds up to 999 atoms, Repeat included.
- A disordered site is drawn as one arrangement: its major part, or one ordered set of partly filled hydrogens. The formula and the count still include every site.
- Thermal ellipsoids appear in the 3D view’s picture, not in the live view you turn by double-clicking, and only for a file that gives displacement parameters.
- Draw the molecule is for crystals made of molecules. An ionic, metallic or network crystal has no single molecule to draw.
- Looking up a crystal by name in COD needs Molkit’s server. Offline, open a CIF you have downloaded with File > Open….
- Describe as script writes a library or COD crystal as its
crystalline. A crystal from a file is written as a note.
See Commands for every option.