Skip to content

Create a Spherical Cluster

1. Introduction

Create a spherical cluster of a given radius from a bulk material, with a chosen crystal orientation along the z axis.

2. Open the notebook

In JupyterLite, the notebook is made/create_cluster_sphere.ipynb, entry 1.4.2 "Spherical Cluster. Create a spherical cluster 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
RADIUS = 4.5  # in Angstroms
VACUUM = 10.0  # in Angstroms on each side
Z_ORIENTATION = (0, 0, 1)  # Miller indices of the slab orientation along the z-axis for the cluster

RADIUS is the radius of the sphere in angstroms, and Z_ORIENTATION the Miller indices of the crystal planes normal to z. The overview explains VACUUM.

4. Run and read the result

Run the notebook with Run > Run All. The notebook shows the block of the crystal and the cluster cut from it, sets a cubic lattice, names the cluster <material> Cluster R=<RADIUS>A and passes it back with set_materials, as in Structure Notebooks.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for creating a spherical cluster can be accessed below.