| tags | hide | render_macros | |||||||
|---|---|---|---|---|---|---|---|---|---|
|
|
true |
This tutorial demonstrates the process of creating materials with vacancy point defects, based on the work presented in the following manuscript:
!!!note "Manuscript" Fabian Bertoldo, Sajid Ali, Simone Manti & Kristian S. Thygesen, "Quantum point defects in 2D materials - the QPOD database", Nature, 2022. DOI:10.1038/s41524-022-00730-w{:target='_blank'}. [@Bertoldo2022; @Kohan2000]
We use the Materials Designer and JupyterLite environment to create a nanoribbon of hexagonal boron nitride (h-BN) and introduce vacancy defects. The process combines the capabilities of nanoribbon creation and point defect introduction.
We will focus on creating a structure similar to Figure 6 from the manuscript, which demonstrates boron vacancy defects in hexagonal boron nitride:
First, we need to import the hexagonal boron nitride (h-BN) material from the Standata database.
Navigate to Materials Designer and click on the "Input/Output" menu.
- Select "Import from Standata" in the Input/Output menu
- In the search box, enter "Boron Nitride"
- Click on the h-BN material to import it
Next, we'll create a nanoribbon structure using the JupyterLite environment.
Select the "Advanced > JupyterLite Transformation" menu item to launch the JupyterLite environment.
Find and open create_nanoribbon.ipynb in the list of notebooks. Edit the nanoribbon parameters in section 1.1 of the notebook:
# Index in the list of materials, to access as materials[MATERIAL_INDEX]
MATERIAL_INDEX = 0
# Widths and lengths are in number of unit cells
WIDTH = 3 # in unit cells
LENGTH = 6 # in unit cells
VACUUM_WIDTH = 0 # in Angstroms
VACUUM_LENGTH = 0 # in Angstroms
EDGE_TYPE = "zigzag" # "zigzag" or "armchair"Run the notebook by clicking Run > Run All in the top menu. This will create a nanoribbon structure from the imported h-BN material.
After the notebook completes:
- The nanoribbon structure will be passed back to Materials Designer
- User can view the structure in the 3D editor
- Verify the nanoribbon dimensions and edge type
After creating the nanoribbon, we'll introduce the vacancy defect using the point defect notebook.
Open create_point_defect.ipynb and modify the defect configuration parameters:
# Selected material will be used as a unit cell to create a supercell first.
SUPERCELL_MATRIX = [[1, 0, 0], [0, 1, 0], [0, 0, 1]]
DEFECT_CONFIGS = [
{
"type": "vacancy",
"coordinate": [0.5, 0.5, 0.5],
"placement_method": "closest_site",
"use_cartesian_coordinates": False
}
]The configuration specifies:
defect_type: "vacancy" for removing an atomapproximate_coordinate: Position in crystal coordinates where the vacancy will be createduse_cartesian_coordinates: False to use fractional coordinates
Click Run > Run All in the top menu to run the notebook and preview the results.
After running both notebooks, user can visualize the structure of h-BN with the vacancy defect in the Materials Designer 3D viewer.
Save or download in Material JSON format
The following JupyterLite notebooks demonstrate the complete process. Select "Run" > "Run All Cells".
{% with origin_url=config.extra.jupyterlite.origin_url %} {% with notebooks_path_root=config.extra.jupyterlite.notebooks_path_root %} {% with notebook_name='specific_examples/defect_point_vacancy_boron_nitride.ipynb' %} {% include 'jupyterlite_embed.html' %} {% endwith %} {% endwith %} {% endwith %}







