Skip to main content

Python tools for VASP

Project description

VASP-tools

DOI

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-1.0.1.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

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

tools4vasp-1.0.1-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tools4vasp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a8d72e9269fb7bd87ec8dbe5b5694a1eb1770cf97272efb2f2278348c2839df4
MD5 df96d327269f3f62251ea452874f5cd7
BLAKE2b-256 996a339a2fd7d7d6c6ea02d6cd802567cbdfe0257d9ee9e7071bc0c05311c64c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tools4vasp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96e7128b91dca3f8fcda4bd1308029b9846d000bafe7eeea1c201db3d4f23d6f
MD5 4da9cf35bc4780553ea9f546f1026215
BLAKE2b-256 4f3a60827d7adac3e24d50a5bd0f7e219bb06a997b172c3436fa4716e3785653

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