Converge the K-Grid for the Total Energy¶
1. Introduction¶
Find the converged k-grid for the total energy of a material, for use in another notebook.
2. Open the notebook¶
In JupyterLite, the notebook is made/workflows/total_energy_convergence.ipynb, entry 1.2.1 "K-point convergence" of made/workflows/Introduction.ipynb.
3. Set the parameters¶
Cell 1.2 holds the material, workflow, convergence and compute 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 32 33 | |
KGRID_CONVERGENCE_TYPE is the converged parameter: N_k increases a uniform grid starting from UNIFORM_KGRID_INITIAL, while N_k_nonuniform and N_k_nonuniform_2D start from NON_UNIFORM_KGRID_INITIAL and pass the reciprocal vector ratios of the material to the loop. KGRID_INCREMENT is the step of each iteration. The loop stops when the relative change of the total energy falls below TOLERANCE; RESULT_INITIAL is the value the first iteration is compared with.
The overview explains the account, material, workflow, compute and job parameters.
4. Run and read the result¶
Run the notebook with Run > Run All and log in when it asks, as in Authentication in JupyterLite.
After the job finishes, section 8 prints the convergence series and plots the total energy against the k-grid parameter. Cell 8.2 prints the converged k-grid, converged_kgrid, to be set as SCF_KGRID in another notebook.
5. Interactive JupyterLite notebook¶
The interactive JupyterLite notebook for converging the k-grid of the total energy can be accessed below.
6. Related¶
Reciprocal Space Grid Convergence Study adds a k-point convergence to a workflow in the web interface.