Optimize the Film Position on an Interface¶
1. Introduction¶
Move the film of an interface to its position on the substrate with the lowest interaction energy between film and substrate, found on a grid of displacements in the x-y plane.
2. Open the notebook¶
In JupyterLite, the notebook is made/optimize_film_position.ipynb, entry 2.1.6 "Optimize film position on interface" of made/Introduction.ipynb.
3. Set the parameters¶
The input material is an interface whose atoms are labeled 0 for the substrate and 1 for the film, as the Interface with Minimal Strain (ZSL) notebook labels them.
Cell 1.2 holds the parameters:
1 2 3 4 5 6 7 8 9 10 | |
MATERIAL_INDEX picks the interface from the input materials.
GRID_SIZE is the number of grid points along x and y, and GRID_RANGE_X and GRID_RANGE_Y the range of the displacements, in the coordinates that USE_CARTESIAN selects. SHOW_3D_LANDSCAPE = True also plots the energy as a 3D surface.
4. Run and read the result¶
Run the notebook with Run > Run All. The notebook prints the optimal displacement vector, plots the energy on the grid with the minimum marked, and shows the interface before and after the displacement. It appends Optimized XY to the name and passes it back with set_materials, as in Structure Notebooks.
5. Interactive JupyterLite notebook¶
The interactive JupyterLite notebook for optimizing the film position can be accessed below.
6. Related¶
The specific example Gr/Ni(111) Interface Optimization uses this notebook.