Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.73 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.73 KB

Work in progress

Stay tuned. We are actively working on this script to add charges to our HF dataset. We still need to ensure to permutations are applied between the atom positions and the charges. Charges will be released soon.

MPCharges

Script used to calculate charges based on all available raw VASP files in Materials Project AWS OpenData initiatives.

Requirements

Raw files

  • CHGCARs: aws s3 cp --no-sign-request s3://materialsproject-parsed/chgcars/* .
  • AECCAR0s: aws s3 cp --no-sign-request s3://materialsproject-parsed/aeccar0s/* .
  • AECCAR2s: aws s3 cp --no-sign-request s3://materialsproject-parsed/aeccar2s/* .

Running the script

Download all CHGCAR into their own directory, keep the filename from the AWS bucket. Do the same for AECCAR0 into their own directory and the same for AECCAR2 into their own directory.

Change the directory variables (CHGCAR_FOLDER, AECCAR0_FOLDER, AECCAR2_FOLDER) in the run.py. Download the Bader executable and add the path (BADER_PATH) in run.py. Add the path (PERL_CHGCARSUM_FILE) of the chgsum.pl script from VTST scripts into the run.py.

Set a directory to congregate all the results (RESULT_PATH), a JSON file will be created for each calculation.

Run run.py.

Behind the scenes.

The AECCAR0 and AECCAR2 are added and converted to CHGCAR_ref. The Bader is run on the CHGCAR using the CHGCAR_ref as a reference via Pymatgen. The result of charge and atomic volume is outputted to a json file.