If you are using the codes in this repo, please consider citing the following work:
Rong, Z., et al., An efficient algorithm for finding the minimum energy path for cation migration in ionic materials. The Journal of Chemical Physics, 2016. 145(7): p. 074112.
- Setup a personal MongoDB database. Update access confidentiality in
settings/db_config.yaml
- Install Materials Project MPWorks in the computation clusters to be deployed for the HT calculations.
- Install the following dependency packages locally and familiarize yourself with them:
- Go through the files under settings and overwrite the variables where necessary
- Prepare an input file in the format like
production/Mg_PF_example.txt
- Run script
production/pf_production.py
- Set up a crontab job to run script like
production/crontab.qlaunch.sh
regularly at the desired frequency at the calculation clusters.
- Prepare an input file in the format like
production/Mg_approx_neb_example.txt
, first column being the mp-id, second column being the pair_index defined in the database. - Set parameters and run script
production/approx_neb_production.py
, be noted, it is supposed to run a two-phase calculations, with the first phase calculating just 2 images (image 0 and image 4, the middle image), and arrive at a lower bound for the migration energy, if the migration energy lower bound is smaller than a threshold, then those paths are filtered out for further full MEP calculations. These 2 phases can be switched the adjusting the calculated_images parameter inproduction/approx_neb_production.py
script. - Set up a crontab job to run script like
production/crontab.qlaunch.sh
regularly at the desired frequency at the calculation clusters.
After the HT ApproxNEB calculation is finished, do the following steps:
- Backup the calculation files. (I do it in Vega)
- Update the calculation file path in the database after files migrations with script like
post_production/db_scripts/update_file_path_vega.py
- Update the CONTCARs of each calculated image with script like
post_production/db_scripts/update_contcar.py
- After the first-phase HT ApproxNEB calculation, please run
post_production/first_tier_filter.py
to print out the results. - After the second-phase HT ApproxNEB calculation, please run
post_production/full_mep_results.py
to print out the results.