Skip to content

Collection of grain boundary structures which has been generated in relation to the publication https://doi.org/10.1088/2053-1583/ad349d.

Notifications You must be signed in to change notification settings

AleksBL/grainboundarystructures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

  1. Install

    • Download and unzip the folder at the point in which you wish to install the module
    • cd into the directory. There is a setup.py file. Execute the command " python3 -m pip install -e . " to setup the module.
  2. Usage The code can be imported in a python script as

   import matplotlib.pyplot as plt
   import numpy as np
   import sisl
   from grainboundarystructures.GB import load_GB_TS_relax as load
   gbs = load(); # 218 GBs, but some duplicates
   gb  = gbs[150]
   gem,gep,gd=gb['EM'],gb['EP'],gb['D']# electrodes and device
   print(gem,gep,gd)
   plt.scatter(gd.xyz[:,0], gd.xyz[:,1])
   plt.scatter(gem.xyz[:,0], gem.xyz[:,1])
   plt.scatter(gep.xyz[:,0], gep.xyz[:,1])
   plt.axis('equal'); plt.show()
  1. Dependencies
    • sisl
    • ASE
    • numpy

About

Collection of grain boundary structures which has been generated in relation to the publication https://doi.org/10.1088/2053-1583/ad349d.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published