VASPFlow
A Python package for VASP workflow automation and band structure analysis. This tool is built on top of VASPKIT.
Features
- Automated VASP input file generation
- Band structure analysis and plotting
- Spin splitting calculations
- Band gap analysis
- Support for various VASP features:
- Structure relaxation
- Spin-orbit coupling (SOC)
- LDA+U
- Magnetic calculations
- DOS calculations
- Wannier calculations
- vdW corrections
Installation
pip install vaspflow
Usage
Command Line Interface
The package provides two main commands: workflow for preprocessing and analyzer for postprocessing.
Workflow Command (Preprocessing)
# Generate VASP input files with relaxation and SOC
vaspflow workflow --relax --soc
# Full workflow with custom parameters
vaspflow workflow --relax --soc --ldau --ldauu "2 0" --ldaul "2 -1" --ispin 2 --magmom "2 2 0 0 0" --name "Fe2O3" --nk 50 --nsw 200
Analyzer Command (Postprocessing)
# Calculate spin splitting for band 10
vaspflow analyzer --spinsplit --spin --nband 10
# Calculate band gap for occupied band 10
vaspflow analyzer --gap 10
# Output band structure with spin polarization
vaspflow analyzer --band --spin --kseg 61
Python API
from vaspflow import VaspInputHandler, VaspBandAnalyzer
# Initialize VASP input handler
input_handler = VaspInputHandler()
input_handler.is_relax = True
input_handler.is_soc = True
input_handler.setup_workflow()
# Initialize band analyzer
analyzer = VaspBandAnalyzer()
analyzer.spin_polarized = True
analyzer.read_kpoints()
analyzer.read_eigenval()
analyzer.write_band_structure()
analyzer.plot_band_structure()
Output Files
band.dat: Band structure databand.png: Band structure plotspinsplit.dat: Spin splitting dataspinsplit.gnu: Spin splitting gnuplot filegap.dat: Band gap data
Dependencies
- Python >= 3.6
- numpy >= 1.15
- matplotlib >= 3.3
Documentation
For detailed documentation, please visit [documentation link].
VASPKIT will be need to generate POTCAR and KPOINTS.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Dinghui Wang wang
Metadata
Release files for vaspflow 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vaspflow-0.1.1.tar.gz | 11.6 kB | Without provenance | Details for vaspflow-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vaspflow-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for vaspflow-0.1.1-py3-none-any.whl |
Total release size: 22.6 kB
Release files / vaspflow-0.1.1.tar.gz
| Download URL | vaspflow-0.1.1.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55a8870a08773d1b0eec461c23f3b3369dfec939d8bfbb2fc289e9f9340c6955
|
|
BLAKE2b-256 checksum How to use checksums |
57b1eec022b16c30909f077d0af681dcb835f6d8e078d71616efa032f4e27fdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Release files / vaspflow-0.1.1-py3-none-any.whl
| Download URL | vaspflow-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2686e6502bd5dd9ff063fdbda6d8de06e576d626f3d1f0b652e76322ee7c9110
|
|
BLAKE2b-256 checksum How to use checksums |
f4a001b80ca74b6eb9d51efe9d68de2ff42cb333304271c032b2c5d340835dcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Security for vaspflow 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.