Create Initial and Final Materials¶
1. Introduction¶
Create an ordered pair of materials, initial and final, from one starting structure, for a calculation between a start and an end point, such as a Nudged Elastic Band (NEB) path. By default, the final material is the initial one with one atom moved.
2. Open the notebook¶
In JupyterLite, the notebook is made/create_initial_final_materials.ipynb, entry 5.1.2 "Create initial/final materials" of made/Introduction.ipynb.
3. Set the parameters¶
Cell 1.2 holds the parameters:
1 2 3 4 5 6 7 8 9 | |
FOLDER and MATERIAL_NAME load the starting material by name from the uploads folder or, when it is not there, the first Standata material whose name matches.
PATH_NAME is the base of the material names, numbered in path order as 00_<PATH_NAME> and 01_<PATH_NAME>, and SUBFOLDER_NAME the subfolder of uploads they are written to.
Cell 2.2 holds the atom to move:
1 2 3 4 5 | |
ATOM_COORDINATE is the position of the atom to move, in crystal coordinates; the atom nearest to it moves by TRANSLATION, in angstroms. In the viewer of cell 2.1, Measurements > Copy Coordinates (or the C key) copies the coordinates of the atom clicked.
Cell 2.4 transforms the initial material into the final one and can be replaced by another transformation. Cell 2.5, commented out, moves the atom with a Gaussian displacement field over its neighbors instead.
4. Run and read the result¶
Run the notebook with Run > Run All. The notebook shows the initial and the final material, and set_materials writes both to uploads/<SUBFOLDER_NAME>. The Create a Materials Set notebook, with the same SUBFOLDER_NAME and IS_ORDERED = True, saves them as an ordered set.
5. Interactive JupyterLite notebook¶
The interactive JupyterLite notebook for creating initial and final materials can be accessed below.