xnn.ffnn.models.gfnfflib.translation_list#

xnn.ffnn.models.gfnfflib.translation_list(cell, r2, cap=False)[source]#

Lattice shifts of a translation list with radius sqrt(r2) (Bohr) for a cell (rows, Angstrom): shifts in the box |n_i| <= ceil(R / h_i) (h_i the cell heights), ordered by shell s = max |n_i| and within a shell with the third index outermost and the first innermost; shells of two and more keep |T| (s - 1) / s < R. With cap the shells stop at ceil(R / a), a the shortest lattice vector.