Skip to content

Passivate the Surface of a Slab

1. Introduction

Passivate the surface of a slab with atoms such as hydrogen, each placed at a given bond length from a surface atom.

2. Open the notebook

In JupyterLite, the notebook is made/passivate_slab.ipynb, entry 4.1.1 "Slab Passivation" 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
25
26
# Material selection
MATERIAL_INDEX = 0  # Which material to use from input list

# Passivation parameters
PASSIVANT = "H"  # Chemical symbol of passivating atom
BOND_LENGTH = 1.0  # Distance from surface to passivant, in Angstroms
SURFACE = "top"  # Which surface to passivate: "top", "bottom" or "both"

# Surface detection parameters
SHADOWING_RADIUS = 2.5  # Radius to exclude subsurface atoms, in Angstroms
DEPTH = 5.0  # How deep to look for surface atoms, in Angstroms

BYPASS_SLAB_CREATION = False  # If True, will use input material directly

# Slab parameters for creating a new slab if previous option is set to True
DEFAULT_SLAB_PARAMETERS = {
    "miller_indices": (0, 0, 1),
    "thickness": 3,
    "vacuum": 10.0,
    "USE_ORTHOGONAL_C": True,
    "xy_supercell_matrix": [[3, 0], [0, 3]]
}

# Visualization parameters
SHOW_INTERMEDIATE_STEPS = True
CELL_REPETITIONS_FOR_VISUALIZATION = [1, 1, 1]  # Structure repeat in view

MATERIAL_INDEX picks the input material to use. DEFAULT_SLAB_PARAMETERS applies when it is not a slab, unless BYPASS_SLAB_CREATION = True uses the material as it is.

SURFACE is the surface passivated: "top", "bottom" or "both". The overview explains PASSIVANT and BOND_LENGTH.

Surface atoms are searched within DEPTH angstroms of the surface, and SHADOWING_RADIUS, in angstroms, excludes the atoms below them.

4. Run and read the result

Run the notebook with Run > Run All. The notebook centers the slab along z, prints the passivant, the bond length, the passivated surfaces and the number of atoms, shows the passivated slab from the top and from the side and passes it back with set_materials, as in Structure Notebooks.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for passivating a slab surface can be accessed below.

The specific example H-Passivated Silicon (100) Surface uses this notebook.