Git Product home page Git Product logo

convtest's Introduction

convergence-test

A simple tool for plane-wave kinetic energy cutoff (encut) and kmesh convergence tests for density functional theory (DFT) calculations.

The main features include:

  1. A script to generate INCAR and KPOINTS files

    • Using the input parameters provided, INCAR and KPOINTS files are created. (Note: The ENCUT for the INCAR file will be used for kmesh convergence tests and the kmesh for the KPOINTS file will be used for cutoff/encut convergence tests.)
  2. A script to create folders for cutoff and kmesh convergence, and update the cutoff and kmesh values in each INCAR and KPOINTS file

  3. Plotting script to create cutoff and kmesh convergence plots.

    • VASP calculations are imported using Pymatgen (energies extracted from vasprun.xml files)

The code currently primarily supports VASP calculations.

Usage

The scripts are intended to be used via the command-line. The built-in help (--help) option for each command provides a summary of available options.

Currently, the commands provided are:

-generate_files: For generating INCAR and KPOINTS input files.
-generate_folders: For creating folders for cutoff and kmesh convergence tests, copying the files, and updating the cutoff and kmesh values. (Note: POSCAR (structure file) and POTCAR (pseudopotential file) need to be present in the folder for this command to work.)
-analyse_conv: For extracting energies from VASP calculations, creating csv files, and plotting the convergence data. (Note: The command uses vasprun.xml files to extract energies and so complete DFT calculations performed using VASP is a prerequisite.)

Requirements

The command-line scripts are written in Python and require the following packages:

  • Click
  • NumPy
  • Pandas
  • Matplotlib
  • Pymatgen
  • convtest's People

    Contributors

    warda-rahim avatar

    Watchers

    James Cloos avatar

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google โค๏ธ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.