Skip to content

Create Adatom Defects on a Slab

1. Introduction

Create a slab with adatoms on its surface from a material. Each adatom is set by its chemical element, an approximate position on the surface and its distance from the surface, and is placed at that exact position, at the position equidistant from the closest surface atoms, or at the crystal site of the next layer closest to that position.

2. Open the notebook

In JupyterLite, the notebook is made/create_adatom_defect.ipynb, entry 3.1.1 "Adatom Defect on a Slab" of made/Introduction.ipynb.

3. Set the parameters

Cell 1.1 holds the parameters:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Index in the list of materials, to access as materials[MATERIAL_INDEX]
MATERIAL_INDEX = 0
ELEMENT = "Si"  # Chemical element of the adatom

# Dictionaries are validated and converted to AdatomDefectDict objects below
DEFECT_CONFIGS = [
    {
        "type": "adatom",
        "coordinate_2d": [0.5, 0.5], # Crystal coordinates on the surface (x, y)
        "distance_z": 1.0,  # Method to place the adatom
        "element": ELEMENT,
    }
]


PLACEMENT_METHOD = "new_crystal_site"  # Method to place the adatom, e.g., "new_crystal_site", "exact_coordinate", "equidistant"


# Slab parameters
MILLER_INDICES = (1, 1, 1)  # Miller indices of the surface
SLAB_THICKNESS = 3  # Thickness of the slab in unit cells
VACUUM = 5.0  # Vacuum thickness in Angstrom
XY_SUPERCELL_MATRIX = [[2, 0], [0, 2]]  # Supercell matrix for the slab
TERMINATION_FORMULA = None  # Stoichiometric formula of the slab termination to be used.

MATERIAL_INDEX picks the input material to use.

Each entry of DEFECT_CONFIGS is one adatom: coordinate_2d is its position on the surface in crystal coordinates, distance_z its distance from the surface, and element its chemical element, ELEMENT by default.

PLACEMENT_METHOD is "exact_coordinate", "equidistant" or "new_crystal_site".

SLAB_THICKNESS is the thickness of the slab in unit cells. The overview explains MILLER_INDICES, VACUUM, XY_SUPERCELL_MATRIX and TERMINATION_FORMULA.

4. Run and read the result

Run the notebook with Run > Run All. The notebook shows the slab from the top and from the side, then the slab before and after the adatoms are added, and passes it back with set_materials, as in Structure Notebooks.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for creating adatom defects can be accessed below.