Skip to content

Create a Planar Grain Boundary

1. Introduction

Create a planar grain boundary between two crystallographic orientations of the same material, with the supercells of the two slabs strain-matched so that the strain at the boundary is low.

2. Open the notebook

In JupyterLite, the notebook is made/create_grain_boundary_crystal.ipynb, entry 3.1.3 "Grain Boundary Planar" of made/Introduction.ipynb.

3. Set the parameters

The notebook takes the first of the input materials.

Cell 1.1 holds the parameters:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# Parameters for Phase 1
PHASE_1_MILLER_INDICES = (1, 1, 1)
PHASE_1_THICKNESS = 2  # in atomic layers
PHASE_1_TERMINATION_FORMULA = None  # if None, the first termination will be used
PHASE_1_USE_ORTHOGONAL_C = True

# Parameters for Phase 2
PHASE_2_MILLER_INDICES = (0, 0, 1)
PHASE_2_THICKNESS = 2  # in atomic layers
PHASE_2_TERMINATION_FORMULA = None  # if None, the first termination will be used
PHASE_2_USE_ORTHOGONAL_C = True

INTERPHASE_GAP = 2.0  # in Angstrom
TRANSLATION_VECTOR = [0.0, 0.0, 0.0]  # Translation vector for the phase 2 slab relative to phase 1 slab

# Maximum area for the superlattice search algorithm
MAX_AREA = 350  # in Angstrom^2

# index of the grain boundary to select after strain matching
MATCH_ID = 0  # if None, the grain boundary with the lowest strain will be selected

PHASE_1_MILLER_INDICES, PHASE_1_THICKNESS and PHASE_1_TERMINATION_FORMULA, and their PHASE_2_ counterparts, set the orientation, thickness and termination of each grain.

INTERPHASE_GAP and TRANSLATION_VECTOR place the second grain relative to the first.

MATCH_ID = None takes the grain boundary with the lowest strain. The overview explains MAX_AREA and MATCH_ID.

4. Run and read the result

Run the notebook with Run > Run All. The notebook shows the slabs of every termination of both orientations, then the grain boundary from the top and from the side, and passes it back with set_materials, as in Structure Notebooks.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for creating a planar grain boundary can be accessed below.

The specific example Grain Boundary in Cu (FCC) uses this notebook.