=================== Boundary mode =================== The ``boundary`` key in :mod:`Batoms ` is used to search atoms outside the cell. The default value is [0, 0, 0], thus no atoms outside the cell will be search. >>> from ase.build import bulk >>> from batoms.batoms import Batoms >>> au = bulk("Au", "fcc", cubic=True) >>> au = Batoms(label = "au", from_ase = au) >>> au.get_image(viewport = [1, -0.3, 0.1], output = "au.png") .. image:: /images/build_bulk_au.png :width: 5cm Then we change boundary to [0.02, 0.02, 0.02]: >>> au.boundary = [0.02, 0.02, 0.02] In this case, atoms in the range of [-0.02, 1.02] of the unit cell will be searched. Because the structure is periodic, so we get more Au atoms in the boundary (corner and face). .. image:: /images/boundary_au_cubic.png :width: 5cm >>> au.boundary = [0.02, 2, 0.02] .. image:: /images/boundary_au_cubic_1.png :width: 10cm Search additional atoms if species1 is included in the boundary: >>> from batoms.batoms import Batoms >>> from batoms.bio import read >>> tio2 = read("tio2.cif") >>> tio2.boundary = 0.01 >>> tio2.model_style = 2 .. image:: /images/bondsetting_tio2_3.png :width: 8cm