Move atoms
Move selected atoms by a distance in Å. Use this to shift an adsorbate, adjust an interlayer gap, or translate an ion along a channel.
Where: switch to Edit, select atoms, then return focus to the viewport.
Shortcut: press G, then an optional axis, then a distance. These are
successive keys: G → X → 1 → Enter moves by +1 Å along global x.
Choose a direction and distance
Input |
Result |
|---|---|
|
Translation in the current screen plane |
|
Translation along that global Cartesian axis |
|
Exactly +1.5 Å along x, subject to active constraints |
|
Exactly −2 Å along z, subject to active constraints |
|
Commit the preview |
|
Cancel and restore the starting coordinates |
Type a number after choosing an axis for an unambiguous distance. The axes
are Cartesian x/y/z, not the a/b/c vectors of a skewed cell. Outside a transform,
X, Y, and Z align the camera instead.
For pointer movement in fixed steps, set Build > Transform & cell match >
Move increment / A. 0 means continuous movement; 0.1 snaps pointer movement
to 0.1 Å steps. Typed distances bypass this increment.
Translate coordinates without relaxation
In Edit, open Build → Rigid translation → Translate coordinates. Build → Transform cell → Translate coordinates… opens the same controls. Choose All atoms or Selected atoms, Cartesian / Å or Fractional / a,b,c, and Current frame or All frames, enter three offsets, then click Translate coordinates. Fractional offsets are multiplied by each frame’s own full cell matrix; no unit cell is required for Cartesian offsets.
This is a physical rigid shift. It retains the cell, arrays, labels and stored
constraints, but deliberately does not project the offset through those
constraints or start an optimizer. Use constrained G movement or the optional
workflow below when motion must obey individual positional constraints.
Undo/Redo covers the chosen frames. For composition only, use Style → Cell →
Translate atoms, which leaves ASE coordinates unchanged.
Example: Li moving through a carbon nanotube
Download fixedline.traj. This input contains 128 C atoms and
Li #128, with an existing FixedLine([0, 0, 1]) constraint on Li. Indices are
zero-based. The geometry is an illustrative channel, not a diffusion calculation.
v_ase gui fixedline.traj --interactive
1. Select the mobile ion
Click Li in the center of the tube. Check Li #128 in the selection readout. Leave Apply constraints on. Orbit with the middle mouse button until the channel is visible from the side. The example camera makes global z run horizontally on screen; screen-horizontal does not imply global x.
Step 1. Initial Li position. A short cyan segment indicates its allowed line.
2. Move in the allowed direction
Press G → Z → 2.2. The long cyan guide passes through the original Li position.
Inspect the preview, then press Enter. Its z coordinate increases by 2.2 Å;
x and y remain unchanged. The carbon coordinates are unchanged.
Step 2. Positive z displacement in the GIF. The line remains anchored at the starting position.
3. Compare the opposite displacement
Undo with Ctrl+Z to restore the initial position. Use G → Z → -2.2 → Enter.
The ion now moves to the other side. Undo again when finished.
Step 3. Negative z displacement. The same allowed line is used in both directions.
The stills are extracted from the existing animation, which sweeps continuously between approximately ±2.2 Å. The typed values above reproduce its endpoints; the selected GIF frames lie near those endpoints.
How constraints change a move
Constraint |
What you see |
What is committed |
|---|---|---|
|
Distinct fixed surface; an X marker in flat 2D |
The atom stays fixed |
|
Short cyan axis; a longer line during |
Only displacement along the allowed line |
|
Ring, crosshair and normal; translucent plane during |
Only displacement within the allowed plane |
|
Cell-aware line or plane for allowed fractional directions |
Motion consistent with the original cell-based mask |
For the nanotube example, G → X → 1 → Enter has no allowed component and Li
stays put. For an oblique FixedLine, ASE can project a requested x displacement
onto that oblique line: the final motion need not remain parallel to x.
Check the committed coordinates, not only the mouse preview. See
Constraints for creation, removal and combined constraints.
Move the picture or move the structure?
Use camera pan to move the view, or Visual Translation to offset displayed
atoms without changing ASE positions. G in Edit changes coordinates. Physical
trajectory-wide translations are a separate cell operation.
If a light, plane or insertion region is selected, G controls that object;
select the atoms first. Save a project to keep edits and style.