Skip to content

Create a Point Defect Pair in a Bulk Material

1. Introduction

Create a pair of point defects, each a substitution, a vacancy or an interstitial, in a supercell of a bulk material.

2. Open the notebook

In JupyterLite, the notebook is made/create_point_defect_pair.ipynb, entry 3.3.2 "Point Defects Pair" of made/Introduction.ipynb.

3. Set the parameters

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
21
from types import SimpleNamespace

# Selected material will be used as a unit cell to create a supercell first.
SUPERCELL_MATRIX = [[3, 0, 0], [0, 3, 0], [0, 0, 3]]

# List of dictionaries with defect parameters
PRIMARY_DEFECT_CONFIG = SimpleNamespace(
    defect_type="vacancy",
    coordinate=[0.5, 0.5, 0.5],  # Approx. coord that will be resolved to the closest site
    use_cartesian_coordinates=False,  # Use cartesian or crystal coordinates
    # "site_id": 0, # Index of the atom in the host material
    # "coordinate": None, # Exact position (override the approximate coordinate)
)

SECONDARY_DEFECT_CONFIG = SimpleNamespace(
    defect_type="substitution",
    approximate_coordinate=[0.15, 0.15, 0.15],  # Approx. coord that will be resolved to the closest site
    chemical_element="C",  # Element to substitute
    # "site_id": 0, # Index of the atom in the host material
    # "coordinate": None, # Exact position (override the approximate coordinate)
)

SUPERCELL_MATRIX builds the supercell from the first of the input materials.

PRIMARY_DEFECT_CONFIG and SECONDARY_DEFECT_CONFIG are the two defects. defect_type is "vacancy", "substitution" or "interstitial", and chemical_element the element of a substitution or an interstitial. coordinate in the first and approximate_coordinate in the second are approximate positions in crystal coordinates, resolved to the closest site; a placement_method attribute, when added, sets how a position is resolved.

4. Run and read the result

Run the notebook with Run > Run All. The notebook shows the supercell before and after the defects are created and passes it back with set_materials, as in Structure Notebooks.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for creating a point defect pair can be accessed below.

The specific example Vacancy-Substitution Pair in GaN uses this notebook.