A python script to generate and submit a batch of slurm job
This should be use as a more sophisicaed bash script as you can make changes to various part of the .py
and .template
file to suit your need
phonopy
:2.17.1
fromconda-forge
(This is the only tested system)CRYSTAL23
compiled version run usuingPcrystal
- You need a output file from an optimisation run from
CRYSTAL23
captured usingPcrystal 2> >(tee {file_name})
- (Optional)
euphonic
:1.2.0
fromconda-forge
- Edit the parameter section in the
.py
file. - Edit the template files to suit your needs. Refer to Python3 - Template strings on how to set this up.
- Edit the
*_dict
objects of the corresponding template if you make changes to the template that changes the variables. - You can either test run one of them or run it on a remote using
source submit.sh
. - Results are collected to
./result
folder.
This part is from personal project but can be adapted for other research as well.
- Copy the
phonopy_disp.yaml
and the optimised output to the result folder cd
to the result folder and runphonopy --crystal -f {system_name}*.crys_out --include-all
to get the force (change the{system_name}
as it is a variable in the script)- Run
phonopy --crystal -c {path to optimised structure} --dim="{your_kpoint_dimension}" --dos --mesh="{your_mash size}" --include-all
to get the dos - Run
euphonic-dispersion phonopy.yaml
to plot and view the DOS.