Skip to content

Create a Twisted Interface between Nanoribbons

1. Introduction

Create a twisted interface of two nanoribbons: the nanoribbons are stacked, the top one rotated by a twist angle.

2. Open the notebook

In JupyterLite, the notebook is made/create_twisted_interface_with_nanoribbons.ipynb, entry 2.2.1 "Twisted Nanoribbon Interface/Stack" 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
# Material selection and basic parameters
FILM_INDEX = 0 # Index in the list of materials, to access as materials[FILM_INDEX]
SUBSTRATE_INDEX = None  # Can be None to use same material as film

# Twisted interface parameters
TARGET_TWIST_ANGLE = 17.9  # in degrees
INTERFACE_DISTANCE = 3.0  # in Angstroms
INTERFACE_VACUUM = 20.0  # in Angstroms

# Nanoribbon parameters
RIBBON_WIDTH = 3  # Width of the nanoribbon in unit cells
RIBBON_LENGTH = 3  # Length of the nanoribbon in unit cells
VACUUM_WIDTH = 15.0  # Vacuum width around ribbons in Angstroms
VACUUM_LENGTH = 15.0  # Vacuum length around ribbons in Angstroms
VACUUM_X = 2.0  # Additional vacuum along x on both sides, in Angstroms
VACUUM_Y = 2.0  # Additional vacuum along y on both sides, in Angstroms

# Visualization parameters
SHOW_INTERMEDIATE_STEPS = True
VISUALIZE_REPETITIONS = [3, 3, 1]

FILM_INDEX and SUBSTRATE_INDEX pick the materials of the two ribbons from the input materials.

TARGET_TWIST_ANGLE rotates the top ribbon, and INTERFACE_DISTANCE is the gap between the ribbons.

RIBBON_WIDTH and RIBBON_LENGTH are the size of each ribbon in unit cells, and VACUUM_WIDTH and VACUUM_LENGTH the vacuum around it in angstroms. VACUUM_X and VACUUM_Y add vacuum along x and y on both sides of the interface.

4. Run and read the result

Run the notebook with Run > Run All. The notebook prints the twist angle, the number of atoms and the name of the interface, shows it from the top and from the side, appends the angle to the name and passes it back with set_materials, as in Structure Notebooks.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for creating a twisted interface between nanoribbons can be accessed below.

The specific example Twisted Bilayer h-BN Nanoribbons uses this notebook.