Skip to main content

A quick post-process for resolve or assistant the VASP calculations

Project description

GVasp Manual

GitHub Documentation Status Anaconda-Server Badge Anaconda-Server Badge Codecov

Table of contents

About GVasp

A quick post-process for resolve or assistant the VASP calculations, which can involve in many kinds of tasks as below:

  • generate inputs
  • visualize output
  • visualize trajectory
  • plot interface
  • charge related work
  • band-center calculation
  • calculation utils
    • surface energy calculation
    • electrostatic energy calculation
    • thermo-correction

More detailed information can see here.

Install

Create Environment

Before install the GVasp, we strongly recommend you to install conda before.

After install conda, create a new environment, e.g. gvasp, and install a python (version=3.9), using following command:

conda create -n gvasp python=3.9

Install GVasp

  1. Use conda (recommend)

    We now made a conda package (production process can see here) and uploaded to the Anaconda, so you can also install GVasp from it:

    conda install -c hui_zhou -c conda-forge gvasp
    
  2. Use PyPi

    We have made the wheel (production process can see here) and upload to the pypi, you can also install from it:

    pip3 install gvasp
    

    If the download speed is too slow, we suggest you change the pip mirror by modifying the ~/.pip/pip.conf file.

  3. From sourcecode

    You can install the GVasp using the following command (under the root directory):

    python3 setup.py install
    

    or

    pip3 install .
    

If you run the gvasp -v and print version information, then you install the GVasp successful ~~

GVasp version x.x.x (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.35)

Setting Environment

Default Environment

Default environment can display by following command:

gvasp -l/--list

Initial environment is like this:

------------------------------------Configure Information---------------------------------
! ConfigDir:      /mnt/c/Users/hui_zhou/Desktop/packages/gvasp/gvasp
! INCAR-template: /mnt/c/Users/hui_zhou/Desktop/packages/gvasp/gvasp/INCAR
! UValue:         /mnt/c/Users/hui_zhou/Desktop/packages/gvasp/gvasp/UValue.yaml
! scheduler:      slurm
! PotDir:         /mnt/c/Users/hui_zhou/Desktop/packages/gvasp/gvasp/pot
! LogDir:         /mnt/c/Users/hui_zhou/Desktop/packages/gvasp/gvasp/logs
------------------------------------------------------------------------------------------
  • ConfigDir: represents the directory of INCAR (template), UValue.yaml and other setting files

  • scheduler: represents the job control system, now only support slurm (but you can specify a .submit file in your parent-chain path)

  • LogDir: represents the directory of logs

  • INCAR: INCAR template file for all GVasp submit tasks

  • UValue.yaml: define the UValue for elements

  • pot: directory of the elements' POTCAR (please prepare it by yourself)

The structure of pot like this:

pot
├── PAW_LDA
├── PAW_PBE
├── PAW_PW91
├── USPP_LDA
├── USPP_PW91
└── vdw_kernel.bindat

Modify Environment

If you don’t like the default environment, you can modify the environment by writing a config.json (or other name, but json format), the structure of config.json like this:

{
  "config_dir": "/your_directory_to_three_mentioned_files",
  "potdir": "/your_pot_directory",
  "logdir": "/your_logs_directory"
}

and run command:

gvasp config -f config.json

Then the environment will be reset, GVasp will auto search the INCARand UValue.yaml under the config_dir.

User template

GVasp support user to define their INCAR, UValue.yaml or submit template with the following steps:

  1. Named the INCAR, UValue.yaml or submit template as the *.incar, *.uvalue and *.submit files respectively.

  2. Put them in your parent directory or parent’s parent directory and so on (defined as the parent-chain).

After these two steps, the GVasp generate the inputs will apply your templates.

Code Structure

Requirements

  • Python >= 3.9
  • Cython
  • pybind11
  • numpy
  • matplotlib
  • bash-completion

Copyright © 2022-2023 Hui Zhou All rights reserved.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

gvasp-0.1.8-cp311-cp311-win_amd64.whl (300.6 kB view details)

Uploaded CPython 3.11Windows x86-64

gvasp-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

gvasp-0.1.8-cp311-cp311-macosx_11_0_arm64.whl (301.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

gvasp-0.1.8-cp39-cp39-win_amd64.whl (298.3 kB view details)

Uploaded CPython 3.9Windows x86-64

gvasp-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

gvasp-0.1.8-cp39-cp39-macosx_11_0_arm64.whl (298.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file gvasp-0.1.8-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: gvasp-0.1.8-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 300.6 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for gvasp-0.1.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 944752b3241b28e0386cd8bc526c5ac9d89cee1969cd13578fa2971cff8aefff
MD5 fe0347ca7234e7e444b5e675dbf212f1
BLAKE2b-256 4f29efa017e060a0fee7614c0b32cceb9064b0ddcc47375ddc99f0976713ef21

See more details on using hashes here.

File details

Details for the file gvasp-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gvasp-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d0572c68ad1c143547b4a1d73cc9430e8046d22266bbe30a6ab2bc208fcbfb5d
MD5 f6a49aabb94c5a2ae2cc127e5d4cfe9e
BLAKE2b-256 be7c0d92abe90b701fe5770ef57a760757a19524e86e6c2ae410b78f1ac1fdc2

See more details on using hashes here.

File details

Details for the file gvasp-0.1.8-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gvasp-0.1.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c0e57c3aa44099467b187d6e773f4e0a6ce76419ec5f74b867fb00cd6bc37ca
MD5 6197dd0296b0740c63d7a6a25ae417ed
BLAKE2b-256 61385858a6878d62b40761e38c660c665f95bac9449d35568cf5d74adcb7e396

See more details on using hashes here.

File details

Details for the file gvasp-0.1.8-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: gvasp-0.1.8-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 298.3 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for gvasp-0.1.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8bc7b009fa143438c95f83eff9425a4a0fab3647f88cfd1eb22b0fd7b9879602
MD5 f81502afcbb5e198fdb7239c61d6c6f6
BLAKE2b-256 06e09ae457d2601465e2e3d7991c209b8d97c0b53ae27c30f60f446d36127973

See more details on using hashes here.

File details

Details for the file gvasp-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gvasp-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 401547849c780575ce7df156f15496755a6f7d59308087d89735ee96550cdff7
MD5 e7115e4e58f2fc06d71b0fff1fd14a44
BLAKE2b-256 fd3118baa4433591ae8d8f5529e94fd5fb4eb6c682994eae343c222793ccfa80

See more details on using hashes here.

File details

Details for the file gvasp-0.1.8-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

  • Download URL: gvasp-0.1.8-cp39-cp39-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 298.7 kB
  • Tags: CPython 3.9, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for gvasp-0.1.8-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9de87a013306a39ef26d17797fa1f78945ba4f21ce12434f6fa7754b3434cb8d
MD5 20c5abb0e1cd085d9841136c03b63c92
BLAKE2b-256 e7d5abc0bf912e91f6f3f1504d04174e37550a362b84eaf941bdf70d44034194

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