Create a Nanowire with a Custom Cross-Section Shape¶
1. Introduction¶
Create a nanowire with a cross-section of any shape from a bulk material. The wire is cut along the z axis of a slab with the given Miller indices and, optionally, rotated to lie along x.
2. Open the notebook¶
In JupyterLite, the notebook is made/create_nanowire_custom_shape.ipynb, entry 1.3.2 "Nanowires with custom shape. Create a nanowire with a custom cross-section" of made/Introduction.ipynb.
3. Set the parameters¶
The notebook takes the first of the input materials.
Cell 1.2 holds the parameters:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
CustomCoordinateCondition.condition returns whether the atom at a coordinate is kept. The default keeps the atoms within MINOR_RADIUS of a ring of radius MAJOR_RADIUS around CENTER_COORDINATE; another shape is set by editing the method.
CENTER_COORDINATE, MAJOR_RADIUS and MINOR_RADIUS are in the coordinates that USE_CARTESIAN_COORDINATES selects.
SUPERCELL_MATRIX sets the block the shape is cut from, and ALIGN_ALONG_X = True rotates the wire to lie along x. The overview explains MILLER_INDICES and VACUUM.
4. Run and read the result¶
Run the notebook with Run > Run All. The notebook shows the nanowire from three directions and passes it back with set_materials, as in Structure Notebooks.
5. Interactive JupyterLite notebook¶
The interactive JupyterLite notebook for creating a nanowire with a custom cross-section can be accessed below.
6. Related¶
The specific example H-Passivated Silicon Nanowire uses this notebook.