Create a Twisted Interface with Commensurate Lattices¶
1. Introduction¶
Create a twisted bilayer of one material, with the two layers rotated by an angle close to the target twist angle at which their lattices are commensurate.
2. Open the notebook¶
In JupyterLite, the notebook is made/create_twisted_interface_with_commensurate_lattices.ipynb, entry 2.1.4 "Twisted Interface with Commensurate Lattices" 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 | |
FILM_INDEX picks the input material both layers are made of.
MAX_SUPERCELL_MATRIX_INT is the largest element of the supercell matrices the search tries, and STACKING_DIRECTION the axis the layers are stacked along. The overview explains TARGET_TWIST_ANGLE, ANGLE_TOLERANCE, RETURN_FIRST_MATCH, INTERFACE_DISTANCE and the slab of each layer: MILLER_INDICES, NUMBER_OF_LAYERS, USE_CONVENTIONAL_CELL and USE_ORTHOGONAL_C.
4. Run and read the result¶
Run the notebook with Run > Run All. The notebook prints the number of atoms, the name and the cell vectors of the interface, shows it 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 creating a twisted interface with commensurate lattices can be accessed below.