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.
Script used to calculate charges based on all available raw VASP files in Materials Project AWS OpenData initiatives.
- Python 3.10+
- Bader download from here and unzip
- VTST's scripts but only chgsum.pl download from here and unzip
- Pymatgen
- AWS CLI
- 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/* .
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
.
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.