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.11-cp311-cp311-win_amd64.whl (312.3 kB view details)

Uploaded CPython 3.11Windows x86-64

gvasp-0.1.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

gvasp-0.1.11-cp311-cp311-macosx_11_0_arm64.whl (322.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

gvasp-0.1.11-cp39-cp39-win_amd64.whl (310.7 kB view details)

Uploaded CPython 3.9Windows x86-64

gvasp-0.1.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

gvasp-0.1.11-cp39-cp39-macosx_11_0_arm64.whl (319.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for gvasp-0.1.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f77d04113dc96db025c16fefd1314fbee464424bc221a13a44258220db70522f
MD5 58452c80638e1d725fd4fad0269b9283
BLAKE2b-256 3fc15359c174e0e21ce68aa15a04b08e36caba6f3065abec7d7572bbae3ea0d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gvasp-0.1.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bbdac23ca1b6281f51f6f47120287dc7189fc0bd26726677f47ddaff84affe13
MD5 7b126e2da34b018943708af697d97261
BLAKE2b-256 a222dc1910b5f46c6f23a8b13296cd7e671f4f82051ecfce5ac527e3e33d3c4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gvasp-0.1.11-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 025d28dc715a3065558add99d57326db95a31b895cf0300fca52a3892382deb9
MD5 17029b0ce199b1d1cc3c8304a215ede7
BLAKE2b-256 bb81ecb056329fd6619aae5c2ea25227cd694c37b6e7e0bc73594f2c7b74c15b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gvasp-0.1.11-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cd009065866a7488e62410472708edd79d51a9bacb79f3a2fa5776870b9b2ba4
MD5 7ba8175e8171dc8b03a5f1e817136186
BLAKE2b-256 2caafb34358fdadde342e21479b7c8fb5ac83ecacf11b4fb828a391ce27a3d57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gvasp-0.1.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ecbf240e3ab9b5b6872c015abf01145b413f55cb7a279361349be46b7dc3bbeb
MD5 972fb2cf3e838e81f0b4708db5998fae
BLAKE2b-256 0f10dea178504f9408d0c3d2b7005a94c76f58548719a6a09545481c57b7eced

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gvasp-0.1.11-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e24135f183bc4d3521981b95c8c925b37f0fa4d8fc1ae349f100059f38f8f03
MD5 3ca1de819218b968cf5e9ae0455d8aa9
BLAKE2b-256 e3ad9b75caed006cb399d2b9deb70efa4fd6ebffa99a91e8a4c652815b23d2cf

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