README for sfTA code developed for use with VASP CCSD calculations - Tina Mihm, July 24, 2021
Directory contains the following files:
- Na32_Data.csv - Structure factor data for 100 MP2 calculations for a Na 32 electron system
- TwistAngles.csv - twist angles used to run the 100 MP2 calcualtions with the accociated python indexing
- sfTA.py - Python code set up to use the Na32 strucutre factor data to obtain a special twist angle that reproduces twist averaged energies.
- utils - A folder which contains a utility script to run VASP to produce these calculations. This will only work with a future version of VASP at this time.
The sfTA code is a python-based code that requires the following libraries to run:
- python 3.0 or above
- numpy
- pandas
- matplotlib
Code has been tested and run using Python 3.7.3
Code package can be downloaded from the github repository and run right away. (Note: download times will varry) The code is run using the following command: $python3 sfTA.py
The following outputs are produced:
- csv for various data sets printed as .csv
- graphs of the various structure factors, saved as .png, including:
- 100 MP2 strcture factors
- 100 MP2 structure factors + twist averaged structure factor
- 100 MP2 structure factors + twist averaged structure factor + sfTA structure factor
- prints to screen the python index for the special twist angle ["S_G special twist angle (min diff, sfTA twist angle python index)" ] - can be used in conjunction with TwistAngles.csv to find the special twist angle for sfTA
Code should take about 20-30 seconds to run depending on data set size.
- Change the line: "Data = pd.read_csv("Na32_Data.csv")" to have it read in your desired data set csv, or use the exmaple csv given.
- Update all paths for graphs and csv to save then to desired folder (e.g search for "SFTA" to locate paths in current code version - July 24, 2021)
- Save and run using above python command in terminal
- Code should run and produce graphs and csv before printing special twist angle number to screen (see above)