replicate

Replicate the simulation cell along its three cell vectors.

Syntax

replicate <n_a> <n_b> <n_c>

Parameters

Here, n_a, n_b and n_c are the numbers of replicas in the \(a\), \(b\) and \(c\) directions. They must be positive integers.

Output

None.

Examples

Build a \(1 \times 2 \times 4\) supercell:

replicate 1 2 4

Notes

  • Use this command before loading the potential.

  • The group information and velocities of atoms are also replicated.

  • Do not replicate along nonperiodic directions.