Editing Atoms
This tutorial covers how to edit atomic structures in ACoord.
Adding Atoms
Method 1: Top Toolbar Atom Brush
- Choose an element from Add Atom... in the top toolbar.
- Enable Brush. The active button and crosshair cursor indicate brush mode.
- Press the left mouse button on an existing atom, drag in the desired direction, and release to create one new atom at the preview endpoint.
- Set Max length to cap how far the new atom can be pulled. The default is
1.54 Å, approximately a typical C–C single-bond length. Dragging farther keeps the endpoint at this limit instead of creating atoms indefinitely. - Press
Esc, pressA, or click Brush again to leave brush mode.
The blue preview line shows direction and the endpoint ring shows the final position. Tiny movements below the activation threshold are ignored, and a drag must start on an existing atom. The gesture runs in the camera-facing plane through the source atom. Atom color and radius come from the current display brush settings.
Copying Cartesian Coordinates
Select one atom and click Copy x, y, z in the right-side Properties panel. The clipboard receives plain comma-separated values such as 1.25,-2,3.123456789, without spaces, parentheses, or an element label.
Copying Selected Atom Indices
The right-side Atom Selection panel simultaneously lists 1-based and 0-based atom indices, each with its own copy button. Runs of three or more consecutive atoms are compressed, for example 1,2,5-8,10, with no spaces.
Method 2: Keyboard Shortcut
- Press
Ato enter add atom mode - Type the element symbol (e.g., "C", "H", "O")
- Click in the 3D canvas to place the atom
- Press
Escto exit add mode
Method 3: Right-Click Menu
- Right-click in the 3D canvas
- Navigate to Add atom submenu
- Select the element
- Atom is added at the click position
Method 4: Quick Add Panel
- Locate the Quick Add section in the Properties panel
- Enter element symbol and coordinates (x, y, z)
- Click Add
Inserting Ghost Atoms
The right-side Ghost Atom panel inserts a basis-only center. ACoord uses an H basis by default: Gaussian writes Bq, while ORCA writes H:.
- Select one or more atoms.
- Choose Geometric center or Center of mass.
- Enter a signed Plane-normal offset (Å). Use
0to insert directly at the center; positive and negative values place the ghost on opposite sides. - Click Insert H Ghost Atom.
A non-zero normal offset requires at least three non-collinear selected atoms. Three atoms define an exact plane. Four or more atoms use a PCA least-squares best-fit plane, so every selected atom contributes to the normal. If the fitted plane RMS deviation exceeds 0.1 Å, ACoord warns that the selection is noticeably non-planar but still inserts the ghost. Collinear selections are rejected. The normal direction is normalized deterministically, so changing selection order does not randomly swap the positive and negative sides. Ghost and dummy atoms do not participate in automatic bonding or mass calculations.
Ghost versus dummy
A ghost atom has no nucleus or electrons but carries basis functions. A dummy atom is only a geometric reference point and has no basis. They are stored and exported as different atom roles.
Deleting Atoms
- Select the atom(s) to delete
- Press Delete or Backspace
- Or right-click → Delete atom
Moving Atoms
Drag to Move
- Left-click and drag on an atom to move it in the viewing plane
Precise Position
- Select the atom
- In the Properties panel, enter exact X, Y, Z coordinates
- Click Apply
Move Multiple Atoms
- Select atoms, then right-click + Shift + Alt + drag
Rotate Selection
- Select atoms, then right-click + Shift + drag to rotate around center
Copying Atoms
- Select atom(s)
- Press Ctrl+C (or right-click → Copy)
- Press Ctrl+V to paste
- New atoms appear at offset position
Changing Atom Properties
Change Element
- Select the atom
- Right-click → Change element → select new element
- Color and radius update automatically
Change Color
- Select the atom(s)
- Right-click → Set color...
- Choose a new color
Note: Custom colors are saved only in
.acoordformat
Fix/Unfix Atoms
Fixed atoms are constrained during geometry optimization (e.g., in VASP calculations).
- Select the atom(s)
- Right-click → Fix atom or Unfix atom
- A white 3D cross marker appears on fixed atoms
Visual Indicator
The 3D cross marker is visible from any viewing angle and respects depth occlusion (hidden when behind other atoms).
Constraint Export
Fixed atoms are synced with format-native movement constraints where supported:
- POSCAR: selective dynamics flags
- QE:
ATOMIC_POSITIONSif_posflags - ABACUS STRU: atom movement flags
- OpenMX:
MD.Fixed.XYZ - CASTEP cell:
IONIC_CONSTRAINTS
If every atom is free, ACoord omits redundant fixed/free flags when the target format allows the constraint fields to be left blank.
Undo and Redo
- Undo: Ctrl+Z (or Cmd+Z on macOS)
- Redo: Ctrl+Y (or Cmd+Y on macOS)
Saving Edits
- Save: Ctrl+S (or click Save button in toolbar)
- Save As: Click Save As button, choose format
For full fidelity (preserving colors, labels, etc.), save as .acoord format.
Keyboard Shortcuts
| Key | Action |
|---|---|
A | Enter add atom mode |
D | Delete mode |
V | Select mode |
Ctrl+Z | Undo |
Ctrl+Y | Redo |
Ctrl+S | Save |
Ctrl+C | Copy selected atoms |
Ctrl+V | Paste atoms |
Delete/Backspace | Delete selected |
Esc | Cancel current operation |
