Create an Island of Custom Shape on a Slab¶
1. Introduction¶
Create a slab with an island on its surface, within a shape given as a condition on the coordinates.
2. Open the notebook¶
In JupyterLite, the notebook is made/create_island_defect_custom.ipynb, entry 3.1.5 "Custom Shape Island Defect on a Slab" of made/Introduction.ipynb.
3. Set the parameters¶
Cell 1.2 holds the condition on the coordinates:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
CustomCoordinateCondition.condition returns whether the atom at a coordinate belongs to the island. The default is a torus; another shape is set by editing the method.
Cell 1.3 holds the parameters:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
The island holds the atoms within MINOR_RADIUS of a ring of radius MAJOR_RADIUS around CENTER_POSITION, in the coordinates that USE_CARTESIAN_COORDINATES selects. NUMBER_OF_ADDED_LAYERS is the number of atomic layers the island adds.
DEFAULT_SLAB_PARAMETERS applies when the first input material is not a slab.
4. Run and read the result¶
Run the notebook with Run > Run All. The notebook shows the slab before and after the island is added and passes it back with set_materials, as in Structure Notebooks.
5. Interactive JupyterLite notebook¶
The interactive JupyterLite notebook for creating a custom shape island defect can be accessed below.