Skip to main content

Python tools for VASP

Project description

VASP-tools

Our collection of tools for pre- and post-processing VASP calculations. Mainly Python and Bash.

Installation

Clone this repository and run pip install . inside the main directory. If you want to always use the latest content of the repo you can use the 'developement' install of pip by running pip install -e .. Just doing git pull to get the latest content of the repo will then automatically result in the usage of the latest code without need to reinstall.

You can also use the latest release by installing it from PyPi:

pip install tools4vasp

Dependencies

Different for each script, but mainly

Usage

All scripts can be accessed directly from the shell after installation with pip.

Pre-Processing

  • add_MODECAR: Add the displacements from a MODECAR file to the positions in a POSCAR file.
  • freq2mode: generates MODECAR and mass-weighted MODCAR files from frequency calculations.

Post-Processing

  • calc_deformation_density: Calculate the deformation density from three VASP run folders AB, A and B.
  • chgcar2cube: Convert CHGCAR-like files to cube files using Pymatgen and ASE.
  • elf2cube: Script to convert ELFCAR files to cube files.
  • freq2jmol: Write JMol compatible xyz for visualization of vibrational modes.
  • freq2mode: A VASP tool, which generates MODECAR and mass-weighted MODCAR files from frequency calculations.
  • kgrid2kspacing: Script to get a KSPACING from a KPOINTS file and a POSCAR.
  • kspacing2kgrid: Script to get a KGrid from a KSPACING value and a POSCAR.
  • mixed_interpolate: Uses geodesic interpolation for the molecule and idpp interpolation for the surface of a molecule.
  • neb2movie: Convert VASP NEB to ASE ext-xyz movie, just like nebmovie.pl of VTST.
  • plot_neb_movie: Use VMD and plotNEB to create images for NEB curve presentation.
  • plotIRC: Tool that creates a plot of VASP IRC calculations in both direction and is compatible with shifts in the starting structure.
  • plotNEB: Script to plot VASP+TST NEB calculation results.
  • poscar2nbands: Helper to get the NBANDS value for LOBSTER calculations using the current POSCAR, INCAR and POTCAR setup with 'standard' options.
  • replace_potcar_symlinks: Searches for POTCARS in subdirs and replaces them with symlinks. CAREFUL!
  • split_vasp_freq: A script to split a VASP frequency calculation into individual parts and recombine the results.
  • vasp2traj: Convert VASP geometry optimization output to ASE compatible ext-xyz trajectory file.
  • vaspcheck: Assert proper occupations and SCF+GO convergence in VASP using ASE.
  • vaspGetEF: Creates a plot of energy and forces along multiple GO runs (e.g. for restart jobs). Gathers data in all numeric subfolders and this folder containing a vasprun.xml file (depth one) and combines them in a single plot.
  • viewMode: Shows a graphical preview of a MODECAR file using ase gui
  • visualize_magnetization: Creates a VMD visualisation state file for the magnetization denisty by splitting the CHGCAR (by running chgsplit.pl), converting it to a cube file (by running chgcar2cube.sh) and then creating representations for VMD.

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

tools4vasp-0.1.1.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

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

tools4vasp-0.1.1-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

Details for the file tools4vasp-0.1.1.tar.gz.

File metadata

  • Download URL: tools4vasp-0.1.1.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tools4vasp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dbba122385c7de2eb64520c63e29522dd4cb288275f85b0eb4bfdd7db763179b
MD5 5302368154583addb8fdee406547cdb4
BLAKE2b-256 a4d1940b13f4c51de2f2e5bbdd48068d4fe5fc6de5ee845c5ec5029b071410c8

See more details on using hashes here.

File details

Details for the file tools4vasp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tools4vasp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 33.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tools4vasp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 195d4d71887942a636f148a62d4915c00f292e7c3ccec3ba61e8129b86221ab8
MD5 3feb59b11c4b28df1d59780217a1a2d4
BLAKE2b-256 afda629718bd160380f18603a82df0208e20d59ac4cb7b56c9cc5768f5e8a0d5

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