User guide · NSF DMREF

Twisted 2D Multilayers

A public website for building twisted multilayer 2D materials and viewing their electronic band structures, predicted by a machine-learned Hamiltonian and compared with DFT. This guide shows how to use each page in a few minutes.

The site

Three pages

/

Overview

What the project does, headline numbers, accuracy against DFT, methods and team.

/builder

Structure builder

Build a twisted stack of any 2D materials, inspect it, download it, and see its band structure.

/electronic

Band structures

130 twisted stacks with ML-predicted bands drawn over the DFT reference.

The site runs in any modern browser with nothing to install. The 3D view needs WebGL; without it the top and side views still work.

Two-minute tour

See a result right away

  1. Open Structure builder. It opens on an MoS₂ trilayer twisted by 21.79°, already built.
  2. Drag to rotate the structure (right or Shift drag to move it, wheel to zoom). Top view and Side view turn it to look down c or from the side; the a, b, c axes in the corner turn it too, and clicking a, b or c looks along that axis.
  3. In the right-hand panel, under Band structure (ML prediction), click Show band structure.
  4. Open Band structures in the top menu to see the same stack with the DFT bands for comparison.
Structure builder

Build a twisted stack

  1. Pick a material under Material (all layers). The list has common layers (graphene, hBN, MoS₂, WSe₂ …); choose Search 2D database… to search about 29,900 monolayers from JARVIS-DFT, 2DMatPedia, Materials Cloud MC2D and Alexandria.
  2. Set the number of layers (2–10) and a twist pattern: alternating (0, θ, 0, θ …), helical (0, θ, 2θ …), a twisted double stack, only the top layer twisted, or all aligned.
  3. Set the twist angle θ. Choose fixed for one angle, or search to let the builder find the best commensurate angle in a range.
  4. For a heterostructure, change the material in any row of the Layers table; the top selector then reads "Mixed". Each row can also have its own angle.
  5. Click Generate structure. Building takes about a second.

What you get

  • The supercell in 3D, top and side views, coloured by layer or by element.
  • Atom count, strain needed to make the layers commensurate, and cell size. The builder picks the smallest cell with every layer within 0.5 % strain and 0.05° of its twist angle (both adjustable in Advanced settings); “Cell options” lists smaller or less strained alternatives, with one click to use one.
  • The point and space group, and which optical responses symmetry allows (e.g. second-harmonic generation, optical activity).
  • Downloads: POSCAR, CIF, XSF, extended XYZ; images as PNG or SVG.
  • Copy share link saves the whole stack in a link.
Advanced settings (collapsed by default) hold the interlayer gaps, lateral shifts and AB stacking, and the supercell search options. Most users never need them.
Band structures

See the electronic bands

  1. Precomputed stacks. 130 twisted stacks (85 materials; bilayers, alternating trilayers and double bilayers, 9.4°–50.6°) have ML bands ready. Pick one from the Example menu or the band-library list in the right panel; once it is built, click Show band structure.
  2. Your own stack. A stack that is not in the library shows Predict band structure: the ML model computes its bands on our GPU, usually within a minute (longer when busy).
  3. Compare with DFT on the Band structures page: pick a stack in the gallery; the ML bands are drawn over the DFT bands with the band error in meV. Some stacks also show bands with spin–orbit coupling.

How to read the plot

  • Energies are measured from the top of the valence band (0 eV); the shaded strip is the predicted band gap.
  • The path runs through the high-symmetry points of the supercell's Brillouin zone (Γ, M, K). Moiré bands are folded into it.
  • The plot exports as SVG; the numbers as JSON.
Limits

When no band structure can be computed

The builder checks every stack before anything runs. If a limit applies, the right panel says "No band structure can be computed for this system" and gives the reason.

LimitWhyWhat to do
At most 400 atomsLarger cells need more memory and time than one GPU slot allowsUse a larger twist angle or fewer layers
Memory of very dense cellsSome light-element stacks (e.g. graphene trilayers) need more memory than their atom count suggestsUse a larger twist angle or fewer layers
Twist of at least 9° between neighbouring layersSmall twists give cells with thousands of atomsUse one of the precomputed stacks
64 supported elementsThe ML model covers the elements of its training data (e.g. not Ce or other lanthanides)Choose a material with covered elements
5 live predictions per visitor per dayOne shared GPU serves all visitorsPrecomputed stacks are unlimited

For an unusual structure the model may answer "No prediction for this structure". This is deliberate: a built-in check refuses inputs too far from what the model was trained on, rather than showing unreliable bands. All predictions are non-magnetic and, unless marked, without spin–orbit coupling.

Credit

Acknowledgement

Yan group, Department of Physics, Northeastern University (PI: Prof. Qimin Yan). Supported by the U.S. National Science Foundation through the DMREF program, project "DMREF: Deep learning guided twistronics for self-assembled quantum optoelectronics". Supercells are built with a patched copy of supercell-core; please cite the source database of any monolayer you use.

T. Necio and M. Birowska, "supercell-core: A tool for the construction of van der Waals heterostructures," AIP Advances 10, 105105 (2020).

Guide for the website as of November 2026. Results are updated as the training data grows.