From one molecular unit to a nanotube: a practical pattern-building workflow

Repeating a molecular structure by hand is more than tedious: small differences in spacing or rotation can accumulate, leaving a model that is difficult to inspect or refine. Pattern editors offer a more controlled way to build repeated arrangements. In SAMSON, linear, circular, and curved pattern editors let you duplicate selected structures while adjusting their placement with interactive widgets.

A useful example is constructing a tube from rings. The key idea is to separate the task into two simple patterns: first arrange copies around a circle to make one ring, then duplicate that ring along an axis. This approach turns a repetitive placement problem into a sequence of adjustable steps.

Start with a clean, selected building unit

Create or load the structure you want to repeat, then select the structure to duplicate. Depending on the task, the selection can be atoms, a molecule, or a ring. For the nanotube workflow, begin with a ring, remove its hydrogen atoms, and rotate it so its edges are oriented for alignment.

Selection matters because the pattern editor works on the selected structure. Before making copies, check that the intended building unit—not unrelated atoms or molecules—is selected.

Make a ring with the Circular Pattern Editor

Activate the Circular Pattern Editor with W. Increase the number of instances; the documentation gives 12 as an example for forming a closed ring. Adjust the radius so neighboring edges line up as needed, then accept the pattern. The pattern preferences include an option to automatically merge nearby atoms, which can help when the copies are intended to join.

Rather than relying only on visual placement, use the on-screen widget to adjust the pattern and its values. Drag handles for interactive transformations. For more precise translations or rotations, hold Ctrl on Windows or Linux, or Cmd on macOS, and click a widget to enter values. Snapping can also constrain translation distances and rotation angles.

Extend the ring into a tube

Once the ring is assembled, align it—for example, to the XY plane—using Edit > Align. Then select the ring and activate the Linear Pattern Editor with L. Set the translation along the Z-axis; the documentation uses 2 Å as an example. If the geometry calls for it, add an incremental rotation between successive copies. Accept the pattern to create the extended structure.

These example values are starting points, not universal settings. The spacing and rotation you need depend on the building unit and the arrangement you are trying to create. Use the live preview to assess placement, and enter exact values when you need repeatable distances or angles.

Finish with a geometry check

After creating the tube, minimize the structure to relax its geometry. You can optionally add hydrogens as part of the follow-up workflow. Pattern preferences are available under Preferences > Edit > Create pattern (circular / curved / linear); options include automatically merging nearby atoms, adjusting hydrogen atoms, and choosing whether generated structures are grouped or combined with existing ones.

The same basic method applies beyond nanotubes: use a circular pattern when units need to form a ring, a linear pattern when they need to be repeated along a direction, or a curved pattern when the arrangement follows a curve. In every case, the practical sequence is similar: select the right unit, position and orient the copies, set their number, inspect the preview, and accept when the arrangement is correct.

Interactive tutorial in SAMSON
An interactive SAMSON tutorial can help with foundational tasks such as building with atoms before creating repeated structures.

For a video walkthrough and the complete instructions, see the SAMSON guide to creating patterns.

Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.

Comments are closed.