Skip to content

Create an Interface with Minimal Strain (ZSL)

1. Introduction

Create an interface between two materials with minimal strain: a substrate slab and a film slab, each of a chosen orientation, thickness and termination, matched with the Zur and McGill superlattice (ZSL) algorithm. The interface is built from one of the matches found, by default the one with the lowest strain and the fewest atoms.

2. Open the notebook

In JupyterLite, the notebook is made/create_interface_with_min_strain_zsl.ipynb, entry 2.1.1 "Interface with Zur and McGill Superlattice (ZSL) strain matching" 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
27
28
29
30
31
32
33
34
FILM_INDEX = 1  # Index in the list of materials, to access as materials[FILM_INDEX]
FILM_MILLER_INDICES = (0, 0, 1)
FILM_THICKNESS = 1  # in atomic layers
FILM_TERMINATION_FORMULA = None  # if None, the first termination will be used
FILM_VACUUM = 0.0  # in angstroms
FILM_XY_SUPERCELL_MATRIX = [[1, 0], [0, 1]]
FILM_USE_ORTHOGONAL_C = True

SUBSTRATE_INDEX = 0
SUBSTRATE_MILLER_INDICES = (0, 0, 1)
SUBSTRATE_THICKNESS = 3  # in atomic layers
SUBSTRATE_TERMINATION_FORMULA = None  # if None, the first termination will be used
SUBSTRATE_VACUUM = 0.0  # in angstroms
SUBSTRATE_XY_SUPERCELL_MATRIX = [[1, 0], [0, 1]]
SUBSTRATE_USE_ORTHOGONAL_C = True

INTERFACE_DISTANCE = 3.0  # Gap between substrate and film, in Angstrom. If None, calculated automatically using RDF
INTERFACE_VACUUM = 10.0  # Vacuum over film, in Angstrom
CENTER_IN_Z = True  # Centre the interface along z in the cell

# Whether to convert materials to conventional cells before creating slabs.
# To create interfaces with smaller cells, set this flag to False. (and pass already conventional cells as input)
USE_CONVENTIONAL_CELL = True

# Maximum area for the superlattice search algorithm (the final interface area will be smaller)
MAX_AREA = 150  # in Angstrom^2
# Additional fine-tuning parameters (increase values to get more strained matches):
MAX_AREA_TOLERANCE = 0.09  # in Angstrom^2
MAX_LENGTH_TOLERANCE = 0.05
MAX_ANGLE_TOLERANCE = 0.02

# Whether to reduce the resulting interface cell to the primitive cell after the interface creation.
# If the reduction causes unexpected results, try increasing the `MAX_AREA` for search.
REDUCE_RESULT_CELL_TO_PRIMITIVE = True

SUBSTRATE_INDEX and FILM_INDEX pick the substrate and the film from the input materials; with one input material, it is used as both. INTERFACE_DISTANCE = None estimates the gap from the radial distribution functions of the two materials. selected_index in cell 2.9 picks the match, 0 being the one with the lowest strain and the fewest atoms. FILM_MILLER_INDICES, FILM_THICKNESS and FILM_TERMINATION_FORMULA, and their SUBSTRATE_ counterparts, set the orientation, thickness and termination of each slab. The overview explains MAX_AREA and the tolerances, INTERFACE_DISTANCE and INTERFACE_VACUUM.

4. Run and read the result

Run the notebook with Run > Run All. Cell 2.8 plots the matches found by strain and number of atoms, and section 4 shows the interface from the top and from the side.

The builder labels each atom with the part it belongs to: 0 for the substrate and 1 for the film. The interface is named <film>-<substrate>, Interface, Strain <strain>pct, with the formula and Miller indices of each slab. The last cell calls set_materials(interface), which passes the interface to Materials Designer and writes it to the uploads folder, as in Structure Notebooks.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for creating an interface with minimal strain can be accessed below.

The Valence Band Offset notebook computes the valence band offset of the interface this notebook saves.

The following specific examples build their interfaces with this notebook: Cu / SiO2 Interface, Graphene / SiO2 Interface, High-k Metal Gate Stack and Gr/Ni(111) Interface Optimization.

The pymatgen documentation describes the ZSL implementation the notebook uses.