Skip to content

This repository contains Julia code for plotting VASP output.

License

Notifications You must be signed in to change notification settings

DaanVrancken/VaspPlot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VaspPlot

This repository contains Julia code for plotting VASP output. To use the functionalities, first add the package to your environment:

julia> using Pkg
julia> Pkg.add(url="https://github.com/DaanVrancken/VaspPlot")

Then, simply write

using VaspPlot

at the top of your script.

A simple example would look like this

using VaspPlot

# Extract energy bands
bands = extract_energies("OUTCAR")

# Extract projections for specific ions and orbitals
# In this case, the pz orbitals of the first four ions
ions = collect(1:4)
orbs = ["pz"]
proj = extract_projections("PROCAR", ions, orbs)

# Extract Wannier interpolated bands
Ef_LWL = -3.2576978695
wann = extract_MLWFs("wannier90_band.dat") .- Ef_LWL

# Plotting
plot_bands(bands; proj=proj, wann=wann, ylims=(-2.0, 2.0))

About

This repository contains Julia code for plotting VASP output.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages