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.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-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tools4vasp-0.1.tar.gz
Algorithm Hash digest
SHA256 24df808ac643d2b1dc58a004fc16a5a1a8f39ad91bb5c190acb5160f9e247068
MD5 cc8842c4e5b057d4f1d56b7fd19a20f8
BLAKE2b-256 3f91fa50fc510fbc436443d10b26f58ea931876a06d7d88d5b2ae0434d7c4cd4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tools4vasp-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ee039dbc90deeb784f873ee225eab3102df8666a3f07c31e73c8cde7b500643
MD5 539b1cb5e3799931b12ba88eb5f5aee9
BLAKE2b-256 7b5ae5fd5b618282d44b79525ab5f7916862e5f8452e7f8c4356e415c57a96ac

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