This guide outlines the steps required to estimate temperature-dependent mechanical properties of periodic systems using the Quasi-Harmonic Approximation (QHA) method. The workflow involves structure relaxation, deformation, force constant extraction, and processing of thermal properties.
- You have to have VASP license.
- Required packages
- conda environment - call it phonon.
- Install phonopy from Atsushi Togo.
- Pymatgen, ASE and Pandas
- Install and activate the phonon environment:
conda activate phonon
- Ensure
VASPis installed and properly configured with mpirun. - Set the curresponding paths and libraries in sh files with VASP run.
- Python scripts (
preprocess.py,postprocess.py,QHA_phonopy_process.py,QHA_manual_process.py,QHA_elastic_constants.py) should be in the working directory.
relax input structure under vasp_input/GO/
cp vasp_input/GO/CONTCAR POSCAR_unitcellpython preprocess.py- Creates bi-axial deformation structures.
- Deformation magnitude and direction can be controlled in
preprocess.py.
sh exec_vasp_run_for_static.sh- Creates
deformed_structures/static_run/and runs static calculations.
sh exec_vasp_run_for_DFPT.sh- Creates a DFPT supercell and runs DFPT calculations in VASP.
sh post_process_DFPT.sh- Collects force constants from
vasprun.xml. - Generates
thermal_properties.yaml.
python postprocess.py- Creates
QHA_phonpy_process/e-v.dat.
python QHA_phonopy_process.py- Generates thermal output files under
QHA_phonopy_results/.
python QHA_manual_process.py- Computes lattice constant's variations with temperature.
python QHA_elastic_constants.py- Computes elastic constant's variations with temperature.
thermal_properties.yaml: Contains extracted force constants.QHA_phonopy_results/: Stores processed thermal properties output from Phonopy.QHA_manual_results/: Stores processed thermal properties output such as strain-volume, elastic constants, lattice parameters etc..QHA_phonpy_process/e-v.dat: Energy-volume relationship data.- Computed lattice and elastic property variations.
- Modify
preprocess.pyto control deformation parameters. - Ensure VASP is configured correctly for DFPT calculations.
This guide is intended for research purposes. Use at your own discretion.