Skip to content

Commit bd20be7

Browse files
committed
update: use cartesian coords
1 parent 58fc913 commit bd20be7

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

other/materials_designer/specific_examples/defect_creation_point_substitution_graphene.ipynb

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"### 1.1. Set up defects parameters \n",
3232
"Defect Configuration parameters are described in [Defect Configuration](https://github.com/Exabyte-io/made/blob/main/src/py/mat3ra/made/tools/build/defect/configuration.py).\n",
3333
"\n",
34-
"Note that we use approximate coordinates in crystal coordinates to define the defect positions. The approximate coordinates are used to find the closest site in the crystal to the given coordinates. The approximate coordinates are in the range of [0, 1] for each axis. Adjust the approximate coordinates to place the defect at the desired site in the crystal. Using the visuals provided in the notebook could help in determining the approximate coordinates."
34+
"Note that we use approximate coordinates in crystal coordinates to define the defect positions. The approximate coordinates are used to find the closest site in the crystal to the given coordinates. The approximate coordinates are in the range of [0, 1] for each axis. Adjust the approximate coordinates to place the defect at the desired site in the crystal. Using the visuals provided in the notebook could help in determining the approximate coordinates.\n",
35+
"(Coordinates found using 3D editor in Materials Designer)"
3536
],
3637
"metadata": {
3738
"collapsed": false
@@ -46,26 +47,31 @@
4647
"CHEMICAL_ELEMENT = \"N\"\n",
4748
"\n",
4849
"SUPERCELL_MATRIX = [[4, 0, 0], [0, 4, 0], [0, 0, 1]]\n",
50+
"USE_CARTESIAN_COORDINATES = True\n",
4951
"\n",
5052
"DEFECT_CONFIGS = [\n",
5153
" {\n",
5254
" \"defect_type\": \"substitution\",\n",
53-
" \"approximate_coordinate\": [0.65, 0.25, 0.5],\n",
55+
" \"approximate_coordinate\": [4.9, 2.85, 10],\n",
5456
" \"chemical_element\": CHEMICAL_ELEMENT,\n",
57+
" \"use_cartesian_coordinates\": USE_CARTESIAN_COORDINATES\n",
5558
" },\n",
5659
" {\n",
5760
" \"defect_type\": \"substitution\",\n",
58-
" \"approximate_coordinate\": [0.75, 0.55, 0.5],\n",
61+
" \"approximate_coordinate\": [3.7, 4.9, 10],\n",
5962
" \"chemical_element\": CHEMICAL_ELEMENT,\n",
63+
" \"use_cartesian_coordinates\": USE_CARTESIAN_COORDINATES\n",
6064
" },\n",
6165
" {\n",
6266
" \"defect_type\": \"substitution\",\n",
63-
" \"approximate_coordinate\": [0.45, 0.25, 0.5],\n",
67+
" \"approximate_coordinate\": [2.45, 2.85, 10],\n",
6468
" \"chemical_element\": CHEMICAL_ELEMENT,\n",
69+
" \"use_cartesian_coordinates\": USE_CARTESIAN_COORDINATES\n",
6570
" },\n",
6671
" {\n",
6772
" \"defect_type\": \"vacancy\",\n",
68-
" \"approximate_coordinate\": [0.55, 0.45, 0.5],\n",
73+
" \"approximate_coordinate\": [3.7, 3.55, 10],\n",
74+
" \"use_cartesian_coordinates\": USE_CARTESIAN_COORDINATES\n",
6975
" },\n",
7076
" \n",
7177
"] "

0 commit comments

Comments
 (0)