Skip to content

Create a Nanowire

1. Introduction

Create a cylindrical nanowire 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.ipynb, entry 1.3.1 "Nanowires. Create a nanowire from a bulk material" of made/Introduction.ipynb.

3. Set the parameters

The notebook takes the first of the input materials.

Cell 1.1 holds the parameters:

1
2
3
4
5
MILLER_INDICES= (0,0,1)  # Miller indices of the nanowire direction
RADIUS = 5.0 # Wire radius in Angstroms
LENGTH = 30.0 # Wire length in Angstroms
VACUUM = 10.0 # Vacuum thickness on the sides in Angstroms
ALIGN_ALONG_X = True

RADIUS and LENGTH are the size of the wire in angstroms. ALIGN_ALONG_X = True rotates the wire to lie along x; with False, it lies along z. 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 can be accessed below.