Utilities¶
The utilities directory contains optional helper scripts for plotting, analysis, batch checks, and specialized debugging. These are separate from the main workflow commands DMFT.py and postDMFT.py.
Most users should start with:
DMFT.py -h
postDMFT.py -h
Use the utilities when you need lower-level analysis or a quick diagnostic that is not covered by the main workflow.
Running Utilities¶
The utilities are not a replacement for DMFT.py or postDMFT.py. They usually assume that DMFTwDFT has already been installed and that the bin directory is available through PATH and PYTHONPATH.
Run them by path from the expected working directory, for example:
python /path/to/DMFTwDFT3/utilities/plotDMFT.py -h
If you use them frequently, you can add the utilities directory to your shell PATH yourself. setup.py only adds the bin directory automatically.
Plotting¶
Utility |
Run From |
Purpose |
|---|---|---|
|
A completed |
Plots real and imaginary parts of |
|
A directory containing |
Produces a simple projected DOS plot |
Example:
python /path/to/DMFTwDFT3/utilities/plotDMFT.py \
-siglistindex 5 \
-cor_orb_index 1 2 \
-cor_orb_labels '$e_g$' '$t_{2g}$'
Analysis¶
Utility |
Run From |
Purpose |
|---|---|---|
|
A completed |
Estimates quasiparticle residue and effective mass from the low-frequency imaginary-axis self-energy files |
|
A directory containing one |
Reads |
|
A DFT/DMFT setup directory with |
Estimates the total electron count in the Wannier manifold. This can help set |
Examples:
python /path/to/DMFTwDFT3/utilities/Z.py -siglistindex 5 -cor_orb_index 1
python /path/to/DMFTwDFT3/utilities/DMFT-total-energy.py -navg 5
python /path/to/DMFTwDFT3/utilities/countDMFT.py -type dmft
Batch Checks¶
Utility |
Run From |
Purpose |
|---|---|---|
|
A batch root containing |
Checks whether DMFT/HF runs and selected post-processing steps are complete. Writes incomplete-run lists. |
Examples:
python /path/to/DMFTwDFT3/utilities/countDMFT.py -type dmft
python /path/to/DMFTwDFT3/utilities/countDMFT.py -type dmft -po ac dos
python /path/to/DMFTwDFT3/utilities/countDMFT.py -type dmft -p vacancy
Specialized Or Legacy Helpers¶
These utilities are more specialized and may require material-specific files, interactive input, or edits before use.
Utility |
Run From |
Purpose |
|---|---|---|
|
A directory containing |
Checks Hermiticity of a DMFT occupancy matrix dump and writes eigenvalue/diagonal summaries. |
|
A VASP phonon/deformation analysis directory with |
Extracts band shifts into |
|
A VASP-derived deformation analysis directory with |
Reweights deformation data using mode components. Interactive and specialized. |
|
A phonon analysis directory with |
Combines phonon-mode coefficients with deformation data. Interactive and specialized. |
Example:
python /path/to/DMFTwDFT3/utilities/hermitiancheck.py 28 512 dmft-nkij.dat
Current Path¶
The directory was renamed from scripts to utilities to better describe its role. Current documentation uses utilities; older PDFs or notes may still refer to /scripts.