Creating Grain boundaries#

pyscal also supports creation of grain boundaries, powered by the following code:

from pyscal3 import System

As always we can use the create menu

sys = System.create.defect.grain_boundary(axis=[0,0,1], 
                        sigma=5, 
                        gb_plane=[3, -1, 0],
                        element='Fe')

And visualise

sys.show.all()