VASP

Tools for the vasp software package (adaptor). It provide a lot of functions to deal with the vasp-related files.

Source: vasp.jl

Contents

Index

Functions

ZenCore.vasp_adaptorFunction
vasp_adaptor(D::Dict{Symbol,Any})

Adaptor support for vasp code. It will parse the output files of vasp code, extract the Kohn-Sham dataset, and then fulfill the DFTData dict (i.e D).

The following vasp's output files are needed:

  • POSCAR
  • IBZKPT
  • EIGENVAL
  • LOCPROJ
  • DOSCAR

See also: plo_adaptor, ir_adaptor.

source
ZenCore.vasp_execFunction
vasp_exec(it::IterInfo)

Execute the vasp program, monitor the convergence progress, and output the relevant information. Especially, if it.sc == 2 (self-consistent mode), this function will launch the vasp code, then return immediately.

In order to execute this function correctly, you have to setup the following environment variables:

  • VASP_HOME

and make sure the file MPI.toml is available.

See also: vasp_init, vasp_save.

source
ZenCore.vasp_saveFunction
vasp_save(it::IterInfo)

Backup the output files of vasp if necessary. Furthermore, the DFT fermi level in IterInfo struct is also updated (IterInfo.μ₀).

See also: vasp_init, vasp_exec.

source
ZenCore.vasp_backFunction
vasp_back()

Reactivate the vasp engine to continue the charge self-consistent DFT + DMFT calculation.

source
ZenCore.vaspc_stopcarFunction
vaspc_stopcar()

Create the STOPCAR file in the dft directory to stop the vasp engine. Vasp will stop at the next electronic step, i.e. WAVECAR and CHGCAR might contain non converged results.

source
ZenCore.vaspc_lockFunction
vaspc_lock(action::String, dir::String = ".")

Create the vasp.lock file. This file is relevant for ICHARG = 5. The vasp program runs only when the vasp.lock file is present in the current directory. Its default working directory is just dft, but we can specify it via argument dir.

See also: vaspq_lock.

source
ZenCore.vaspq_filesFunction
vaspq_files(f::String)

Check the essential output files by vasp. Here f means only the directory that contains the desired files.

See also: adaptor_run.

source
vaspq_files()

Check the essential output files by vasp in the current directory.

See also: adaptor_run.

source
ZenCore.vaspio_valenceFunction
vaspio_valence(f::String)

Reading vasp's POTCAR file, return ZVAL. Here f means only the directory that contains POTCAR.

The information about ZVAL will be used to determine NBANDS in the INCAR file.

See also: vaspc_incar, vaspio_nband.

source
vaspio_valence()

Reading vasp's POTCAR file, return ZVAL.

The information about ZVAL will be used to determine NBANDS in the INCAR file.

See also: vaspc_incar, vaspio_nband.

source
ZenCore.vaspio_energyFunction
vaspio_energy(f::String)

Reading vasp's OSZICAR file, return DFT total energy, which will be used to determine the DFT + DMFT energy. Here f means only the directory that contains OSZICAR.

source
vaspio_energy()

Reading vasp's OSZICAR file, return DFT total energy, which will be used to determine the DFT + DMFT energy.

source
ZenCore.vaspio_procarFunction
vaspio_procar(f::String)

Reading vasp's PROCAR file, extract orbital weight information. Here f means only the directory that contains PROCAR.

This function is not invoked directly during the DFT + DMFT iteration. It is designed for users merely. They can use it to judge which orbitals are the most relevant, and then apply the obtained information to customize their case.toml configuration file (specifically, the window parameter in the dft block).

Note

This function is only called by tools/analyze.jl or used in REPL.

source
vaspio_procar()

Reading vasp's PROCAR file, extract orbital weight information.

This function is not invoked directly during the DFT + DMFT iteration. It is designed for users merely. They can use it to judge which orbitals are the most relevant, and then apply the obtained information to customize their case.toml configuration file (specifically, the window parameter in the dft block).

Note

This function is only called by tools/analyze.jl or used in REPL.

source
ZenCore.vaspio_eigenFunction
vaspio_eigen(f::String)

Reading vasp's EIGENVAL file, return energy band information. Here f means only the directory that contains EIGENVAL.

Sometimes the EIGENVAL file does not contain any useful data, then we turn to the LOCPROJ file to obtain the energy band information.

See also: irio_eigen.

source
vaspio_eigen()

Reading vasp's EIGENVAL file, return energy band information.

See also: irio_eigen.

source
ZenCore.vaspio_projsFunction
vaspio_projs(f::String)

Reading vasp's LOCPROJ file, return raw projector matrix. Here f means only the directory that contains LOCPROJ.

See also: irio_projs.

source
vaspio_projs()

Reading vasp's LOCPROJ file, return raw projector matrix.

See also: irio_projs.

source
ZenCore.vaspio_fermiFunction
vaspio_fermi(f::String, silent::Bool = true)

Reading vasp's DOSCAR file, return the fermi level. Here f means only the directory that contains DOSCAR.

Sometimes the DOSCAR file does not contain the necessary data. Thus we have to turn to the LOCPROJ file.

See also: irio_fermi.

source
vaspio_fermi()

Reading vasp's DOSCAR file, return the fermi level.

See also: irio_fermi.

source
ZenCore.vaspio_chargeFunction
vaspio_charge(f::String)

Reading vasp's CHGCAR file, return the charge density. Here f means only the directory that contains CHGCAR.

See also: irio_charge.

source
vaspio_charge()

Reading vasp's CHGCAR file, return the charge density.

See also: irio_charge.

source