Skip to main content

VASP Workflow Automation and Band Structure Analysis Tool

Project description

VASPFlow

A Python package for VASP workflow automation and band structure analysis.

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 --ispin 2 --magmom "1.0,2.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 data
  • band.png: Band structure plot
  • spinsplit.dat: Spin splitting data
  • spinsplit.png: Spin splitting plot
  • gap.dat: Band gap data

Dependencies

  • Python >= 3.6
  • numpy
  • matplotlib

Documentation

For detailed documentation, please visit [documentation link].

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vaspflow-0.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vaspflow-0.1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file vaspflow-0.1.0.tar.gz.

File metadata

  • Download URL: vaspflow-0.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for vaspflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c93a49afb654e70ca070368c4c7c2cb663b0c501bd09d90b1278d19cbef12ada
MD5 c2ae01fce9ae01a34e85c78a554d49a6
BLAKE2b-256 5621d1ecfa6a8f0d24d391f17830a70e7496e428d450abe0bd9648afac969868

See more details on using hashes here.

File details

Details for the file vaspflow-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vaspflow-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for vaspflow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af65a2fb86698df3632315092933f49781b0c7547359fae8f666e2626777e9b0
MD5 12ace9fcafb34e6f2f014982de7746bb
BLAKE2b-256 b2124a2d17f38232a9cac19b4a0dfe08f81ded265de6c2dc4ad0b9d550d51323

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page