DOS(Density Of States) Plot Smartly in Terminal


Keywords
vasp, dos
License
MIT
Install
pip install dosmaster==1.8.19

Documentation

DOSMaster

Link for dosmaster-pypi package(click the icon)

PyPI GitHub

Program Name : dosmaster Program

Made by Youngjun Park (yjpark29@postech.ac.kr)

Inspired by Jaeseon Kim(CNMD)

Tested by Changhun Kim(CNMD), Suyun Chae(CNMD)

Description : DOS Plot Smartly in Terminal Environment

version.1.8.3 ์ด ๋˜๋ฉด CNMD ๊ตฌ์„ฑ์› ์ „์ฒด์—๊ฒŒ ๊ณต๊ฐœ

Release History

ver.1.1 : ์žฌ์‹œ์ž‘ ์‹œ loading ์†๋„ ํ–ฅ์ƒ (by Jaeseon Kim)

ver.1.2 : ์ตœ์ข… data ํŒŒ์ผ ์ €์žฅ ๊ธฐ๋Šฅ ์ถ”๊ฐ€

ver.1.3 : ๋ฒ„๊ทธ ์ˆ˜์ •

ver.1.4.2 : PyPI์— ์˜ฌ๋ฆด ์ˆ˜ ์žˆ๋„๋ก ์ˆ˜์ •

ver 1.7.13 : Packaging ์ง„ํ–‰, DOS_Sum, Average_DOS, Axis_Optimization ์ถ”๊ฐ€ ๋ฐ ๊ฐ์ข… ์„ฑ๋Šฅ ํ–ฅ์ƒ

ver 1.8.1 : Label ๋ฒ„๊ทธ ์ˆ˜์ •, ๊ฐ์ข… ๋ฒ„๊ทธ ์ˆ˜์ •, Setting ์ €์žฅ ๋ฐ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ ๊ธฐ๋Šฅ ๊ตฌํ˜„, DOS plot ์ €์žฅ ๋ฐ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ ๊ธฐ๋Šฅ ๊ตฌํ˜„, shift_x_axis ๊ตฌํ˜„, ์—ฐ์†๋œ ์ˆซ์ž ์ž…๋ ฅ ๊ธฐ๋Šฅ ํ™•์žฅ, legend display ์—ฌ๋ถ€ ์„ ํƒ ๊ฐ€๋Šฅ

ver 1.8.3 : ISPIN = 1 calculation ์ง€์› ๋ฐ ๊ฐ์ข… ๋ฒ„๊ทธ ์ˆ˜์ •

ver 1.8.4 : Lisence ์ˆ˜์ •

ver 1.8.5 : f orbital error ์ˆ˜์ •

ver 1.8.8 : Save plot in current directory - ylim optimization ์‹œ ์˜ค๋ฅ˜ ์ˆ˜์ •

ver 1.8.10 : f orbital sum error ์ˆ˜์ •

ver 1.8.12 : import ์ˆœ์„œ error ์ˆ˜์ •

ver 1.8.15 : graph_editor-back ๊ธฐ๋Šฅ ์ˆ˜์ •(suggested by Hyeongbin Park(CNMD))

ver 1.8.16 : gaussian smearing ๊ธฐ๋Šฅ ์ถ”๊ฐ€(contributed by Siyeong Park(CNMD))

ver 1.8.22 : package version ํ™•์ธ ๊ธฐ๋Šฅ ์ถ”๊ฐ€

ver 1.8.24 : PROCAR ๋ฒ„๊ทธ ์ˆ˜์ • ๋ฐ code generator ๊ตฌํ˜„์ค‘

Features

  1. Add Atom DOS : ์›ํ•˜๋Š” atom์˜ DOS๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
  2. DOS Projection : ํŠน์ • DOS๋ฅผ ์›ํ•˜๋Š” orbital๋กœ projection ์‹œํ‚ต๋‹ˆ๋‹ค.
  3. Sum DOS : ํŠน์ • DOS๋“ค์˜ ๊ธฐ์—ฌ๋ถ„์„ ํ•ฉ์นฉ๋‹ˆ๋‹ค.
  4. Average DOS : ํŠน์ • DOS๋“ค์˜ ๊ธฐ์—ฌ๋ถ„์„ ํ‰๊ท ํ™”ํ•ฉ๋‹ˆ๋‹ค.
  5. Remove DOS : ํŠน์ • DOS๋ฅผ ์ง€์›๋‹ˆ๋‹ค.
  6. Plot only Positive/Negative part : DOS plot์˜ ์–‘/์Œ์ˆ˜ ๋ถ€๋ถ„๋งŒ plotํ•ฉ๋‹ˆ๋‹ค.
  7. Edit Graph Style : ์›ํ•˜๋Š” graph style๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค.
  8. Axis Optimization : ํ˜„์žฌ์˜ ylim์„ ํ˜„์žฌ์˜ DOS์— ๋งž๊ฒŒ ์ตœ์ ํ™”์‹œํ‚ต๋‹ˆ๋‹ค.
  9. Import global custom setting (in package) : package ํด๋” ๋‚ด์˜ ๋‚˜๋งŒ์˜ graph setting์„ ๋ถˆ๋Ÿฌ์˜ต๋‹ˆ๋‹ค.
  10. Save global custom setting (in package) : package ํด๋” ๋‚ด์— ๋‚˜๋งŒ์˜ graph setting์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.
  11. Import DOSMaster plot from current directory : ํ˜„์žฌ ์œ„์น˜์— ์ €์žฅ๋œ DOSMaster plot์„ ๋ถˆ๋Ÿฌ์˜ต๋‹ˆ๋‹ค.
  12. Save DOSMaster plot in current directory : ํ˜„์žฌ ์œ„์น˜์— ์ง€๊ธˆ๊นŒ์ง€ ์ž‘์—…ํ•œ DOSMaster plot์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.

Package Download

$ pip install dosmaster

Source Code Download

  1. ์„œ๋ฒ„์˜ ssh-key๋ฅผ ๋ณต์‚ฌ : ๋‹ค์Œ์˜ ๋ช…๋ น์–ด๋ฅผ git cloneํ•  ์„œ๋ฒ„์—์„œ ์ž…๋ ฅํ•˜๋ฉด ๋‚˜์˜ด.

    $ cat ~/.ssh/id_rsa.pub

  2. ๊ฐœ์ธ github ๊ณ„์ •์˜ - Settings - SSH keys and GPG keys - New SSH key ํด๋ฆญ

  3. ๋ณต์‚ฌํ•œ ssh-key๋ฅผ ๋ถ™์—ฌ๋„ฃ๊ณ  key๋ฅผ ๋“ฑ๋ก

  4. ์„œ๋ฒ„์—์„œ ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ, ์†Œ์Šค์ฝ”๋“œ ๋‹ค์šด๋กœ๋“œ

    $ git clone git@github.com:pyj6767/DOSMaster.git

Requirements

$ pip install matplotlib
$ pip install numpy
$ pip install pandas
$ pip install ase
$ pip install colorama

Preparation

$ chmod 775 dosmaster

Run dosmaster

$ cd [DOS ๊ณ„์‚ฐํ•œ ํด๋”]
$ dosmaster

License

DOSMaster is made available under the MIT License.