Skip to content

Commit f75108b

Browse files
committed
chore: add crytal coord expalnation
1 parent 7329a95 commit f75108b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

other/materials_designer/specific_examples/defect_surface_adatom_graphene.ipynb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@
4848
"# Defect parameters\n",
4949
"DEFECT_TYPE = \"adatom\"\n",
5050
"PLACEMENT_METHOD = \"coordinate\"\n",
51-
"HOLLOW_SITE_COORDINATE = [1/2, 1/2]\n",
52-
"BRIDGE_SITE_COORDINATE = [3/8, 1/2]\n",
53-
"TOP_SITE_COORDINATE = [7/12, 5/12]\n",
51+
"# Using crystal coordinates for the defect placement\n",
52+
"USE_CARTESIAN_COORDINATES = False \n",
53+
"HOLLOW_SITE_COORDINATE = [1/2, 1/2] # in crystal coordinates\n",
54+
"BRIDGE_SITE_COORDINATE = [3/8, 1/2] # in crystal coordinates\n",
55+
"TOP_SITE_COORDINATE = [7/12, 5/12] # in crystal coordinates\n",
5456
"\n",
5557
"# Setting data according to Table 1 in the manuscript, distance_z is the `h` from the table.\n",
5658
"# Uncomment the lines to create the defect for the desired adatom.\n",
@@ -180,7 +182,8 @@
180182
" placement_method=PLACEMENT_METHOD,\n",
181183
" chemical_element=adatom_parameters[\"chemical_element\"],\n",
182184
" distance_z=adatom_parameters[\"distance_z\"],\n",
183-
" position_on_surface=adatom_parameters[\"position_on_surface\"]\n",
185+
" position_on_surface=adatom_parameters[\"position_on_surface\"],\n",
186+
" use_cartesian_coordinates=USE_CARTESIAN_COORDINATES\n",
184187
" ) for adatom_parameters in ADATOM_PARAMETERS]\n",
185188
"\n",
186189
"defect_builder_parameters = PointDefectBuilderParameters()"

0 commit comments

Comments
 (0)