A tool to build heterostructure interfaces based on coincidence lattice theory.
Project description
Hetbuilder - builds heterostructure interfaces
Builds 2D heterostructure interfaces via coincidence lattice theory.
Installation
Build-time dependencies
Requires a C++17 compiler and cmake.
It is also recommended to preinstall spglib and pybind11. Otherwise, these will be built during the installation from the submodules.
Installing with Anaconda
Create a clean conda environment:
conda env create -n hetbuilder python=3.9
Then install the build-time dependencies first:
conda install -c conda-forge cxx-compiler git pip cmake spglib pybind11
Then, you can install the project from pip:
pip install hetbuilder
If that does not work, try directly installing from git:
pip install git+https://github.com/romankempt/hetbuilder.git
Installing with pip
PyPI does not provide the library files of spglib. These will be built from the submodules at installation time, which might be time-consuming.
On Unix, you can install a cxx-compiler with:
sudo apt install build-essential
First steps
The installation exposes a multi-level typer CLI utility called hetbuilder:
hetbuilder --help
The build utility is fully implemented.
You can use any ASE-readable structure format to specify the lower and upper layer. They should be recognizable as two-dimensional, e.g., by having a zero vector in the z-direction.
hetbuilder build graphene.xyz MoS2.cif
This should open a matplotlib interface looking like this:
Documentation
Documentation is available at Read the Docs.
Testing
Tests can be run in the project directory with
pytest -v tests
Citing
If you use this tool, please cite 10.5281/zenodo.4721346.
Requirements
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file hetbuilder-0.6.75.tar.gz.
File metadata
- Download URL: hetbuilder-0.6.75.tar.gz
- Upload date:
- Size: 406.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3fbc8140fd423ea0fc2417443a0e3d749149008f99d18c4de58559dd9914bde
|
|
| MD5 |
9de092c9fd37390e3a075e797404abf9
|
|
| BLAKE2b-256 |
10a4b433d187a33bf1644c0f32cc8aadd34af15b57bb045e7e5a745bd08b5ed0
|