Skip to content

exphp-share/hex-sols

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains a lot of ancient code back when I first started exploring tBLG.

git clone https://github.com/exphp-share/moire-exact
git clone https://github.com/exphp-share/hex-sols
git clone https://github.com/exphp-share/rust-sols

(cd moire-exact && python3 -m pip install .)  # this is a library used by positions.py

# Generate all [a,b,c] triplets in (theta, 60deg - theta) pairs
# that have volume < 250
cd rust-sols
cargo run --release --bin all-pats -- 250 >sols.json

# Compute the supercell matrices and a bunch of other info about the solutions.
# ("frac-lattice" in positions.json is the inverse of the supercell matrix)
cd ../hex-sols
python3 positions.py <../rust-sols/sols.json >positions.json

# Generate layers.yaml from them.
python3 make-inputs.py --params params/graphene.yaml <positions.json

This will generate layers.yaml for all of the patterns, for use in rsp2.

About

old old code for generating tblg inputs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published