This repository contains the code and data necessary to reproduce our paper on arXiv.
Download using git:
git clone https://github.com/MUEXLY/TaW-tce-kmc.git
cd TaW-tce-kmc/
python -m venv venv
source venv/bin/activate
pip install -r requirements.txtpython kra.pyThis will create the figure figures/kra.pdf.
python training.pyThis will create two files:
- a parity plot at
figures/barriers.pdf - a serialized tce model at
TaWX.pkl
python cross-val.pyThis will create the figure figures/cross-val.pdf.
python coeffs-vis.pyThis will create two files:
- a figure with two-body coefficients at
figures/two-bodies.pdf - a figure with three-body coefficients at
figures/three-bodies.pdf
python pure-barriers.pypython kmc.pyImportant: This script is very expensive! On 64 cores, this parallelized KMC simulation takes up about ~10 GB of memory and runs for ~6 hours. If you have access to a supercomputing resource, consider submitting this as a batch job instead, of which we've provided a template for systems using SLURM:
sbatch kmc.slurmThis will create a lot of files:
xyzcoordinate files with patternresults/Ta*W*_*K/*.xyz, which can be visualized in OVITO- Log files with pattern
results/Ta*W*_*K/log.jsonl
python hop-histograms.pyThis step will also take quite a bit, but only runs on a single processor.
This will create a grid of histograms of visited barriers figures/barrier-distributions.pdf.
python msd.pyThis will also create a lot of files:
- MSD curves with pattern
results/Ta*W*_*K/msd.png - MSD fits with pattern
results/Ta*W*_*K/fit.json
python diffusivity.pyThis will create two files:
- A figure of diffusivities over compositions
figures/diffusivities.pdf - A figure of activation energies over compositions
figures/activation-energies.pdf
python local-comp.pyThis will create a figure visualizing the excess Ta figures/excess-ta.pdf.