Skip to content

Create a Slab

1. Introduction

Create one or several slabs of a chosen orientation, thickness and termination from a bulk material.

2. Open the notebook

In JupyterLite, the notebook is made/create_slab.ipynb, entry 1.2.1 "Slabs. Create a slab from a bulk material" of made/Introduction.ipynb.

3. Set the parameters

The notebook takes the first of the input materials.

Cell 1.1 holds the parameters:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Enable interactive selection of terminations via UI prompt
IS_TERMINATIONS_SELECTION_INTERACTIVE = False

MILLER_INDICES = (0, 0, 1)
THICKNESS = 3  # in atomic layers
THICKNESSES = [] # for multiple slabs with different thicknesses, e.g., [3, 5, 7]
VACUUM = 10.0  # in angstroms
XY_SUPERCELL_MATRIX = [[1, 0], [0, 1]]
USE_ORTHOGONAL_C = True
USE_CONVENTIONAL_CELL = True

# Stoichiometric formula of the slab termination to be used.
SLAB_TERMINATION_FORMULA = None
# if None, the index of all possible terminations will be used
TERMINATION_INDEX = 0

A list in THICKNESSES creates one slab per thickness instead of THICKNESS.

Section 2 lists the terminations of the surface in the order TERMINATION_INDEX counts them. The overview explains MILLER_INDICES, THICKNESS, VACUUM, USE_ORTHOGONAL_C, USE_CONVENTIONAL_CELL, XY_SUPERCELL_MATRIX, SLAB_TERMINATION_FORMULA and IS_TERMINATIONS_SELECTION_INTERACTIVE.

4. Run and read the result

Run the notebook with Run > Run All. The notebook shows a slab for each possible termination from the side and prints the list of terminations. It then shows the slabs it created, each named with its thickness in layers (for example 3L), and passes them back with set_materials, as in Structure Notebooks.

5. Interactive JupyterLite notebook

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

The following specific examples use this notebook: Island Surface Defect in TiN, High-k Metal Gate Stack, Step Surface Defect on Pt(111) and SrTiO3 Slab.