TAdeJong/figures-imaging-moire-deformations: Initial test release
Zenodo (CERN European Organization for Nuclear Research)
Abstract
Easily generate renders of lattices, moiré lattices and even quasi-lattices in Python. Documentation: https://moire-lattice-generator.readthedocs.io Magic angle bilayer graphene was shown to be superconducting in 2018 [1]. Despite the considerable hype concerning this discovery, little code exists to visualize the moiré pattern of two graphene layers. To illustrate the work as done in our own paper "Direct evidence for flat bands in twisted bilayer graphene from nano-ARPES" (arXiv version here), I created this repository. This repository contains Python code to generate lattices with values reasonably like experimental (e.g. STM or TEM) results. Trigonal, hexagonal, square lattices as well as quasi lattices can be created and combined. Linear distortions, such as a uniaxial strain along an arbitrary direction and rotations are supported. In addition, arbitrary deformations can be rendered (by passing a deformation tensor to the shift parameter). Edge dislocations can be added to the lattice as well. A simple Python notebook to interactively generate visualizations of moire patterns of hexagonal lattices at different angles is included. A high resolution resulting movie of varying twist angle can be found here. Furthermore, the effect of uniaxial deformation along a single direction as described in e.g. "Measuring local moiré lattice heterogeneity of twisted bilayer graphene " can be visualized. Documentation is now on https://moire-lattice-generator.readthedocs.io, a DOI is registered via zenodo.org: https://doi.org/10.5281/zenodo.5156831, and releases are now automatically available in pypi: https://pypi.org/project/latticegen/
Authors 1
-
Affiliation as printed
Leiden Institute of Physics
Cited by 1 stored of 1
1 result
No patents citing this paper on Lens.org (checked 2026-10-11).