Converge a Workflow Parameter¶
1. Introduction¶
Converge any numeric parameter in the input of a single-unit workflow, such as degauss, and get the converged value for use in another notebook.
2. Open the notebook¶
In JupyterLite, the notebook is made/workflows/convergence.ipynb, entry 1.2.2 "Any parameter convergence (Plane-wave cutoff example)" 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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
WORKFLOW_SEARCH_TERM names the single-unit workflow whose input holds the parameter. PARAMETER_NAME is the converged parameter, changed from PARAMETER_INITIAL in steps of PARAMETER_INCREMENT; the comments list common choices. INPUT_NAME restricts the substitution to one input file, such as pw_scf.in. RESULT_NAME is the monitored result and TOLERANCE its convergence threshold; 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, plots the monitored result against the parameter, and prints the converged value, converged_value, for use in another notebook.
5. Interactive JupyterLite notebook¶
The interactive JupyterLite notebook for converging a workflow parameter can be accessed below.
6. Related¶
Reciprocal Space Grid Convergence Study adds a k-point convergence to a workflow in the web interface.