VASP File
POSCAR
MatterEnv.load_poscar
— Functionload_poscar(filename::String="POSCAR") -> Cell
Load cell structure from POSCAR file.
Arguments
filename::String="POSCAR"
: name of input file
Returns
Cell
: structure of cell
MatterEnv.save_poscar
— Functionsave_poscar(cell::Cell, filename::String="POSCAR", direct::Bool=true)
Save cell structure into POSCAR file.
Arguments
cell::Cell
: structure of cellfilename::String="POSCAR"
: name of output filedirect::Bool=true
: output direct coordinate or Certesian coordinate
PROCAR
MatterEnv.load_procar
— Functionload_procar(filename::String="PROCAR"; spin::Bool=false, noncollinear::Bool=false) -> Projection, KPoints, Bands
Load projection of wave function ⟨Yₗₘ|ϕₙₖ⟩ from PROCAR file.
Arguments
filename::String="PROCAR"
: name of input filespin::Bool=false
: ISPIN = 0(false) or 1(true)noncollinear::Bool=false
: LNONCOLINEAR = 0(false) or 1(true). For noncolinear=1, value of spin is neglected.
Returns for collinear
Projection
: Projection of wave function ⟨Yₗₘ|ϕₙₖ⟩Array{KPoint, 1}
: metadata of k-pointsBands
: metadata of all bands
Returns for noncollinear
Projection
: Total projection of wave function ⟨Yₗₘ|ϕₙₖ⟩Projection
: Projection of spin along x-axisProjection
: Projection of spin along y-axisProjection
: Projection of spin along z-axisArray{KPoint, 1}
: metadata of k-pointsBands
: metadata of all bands
MatterEnv.save_procar
— Functionsave_procar(projection::Projection,
kpoints::Array{KPoint, 1},
bands::AbstractBands,
filename::String="PROCAR";
squared_only::Bool=true)
Save projection of wave function ⟨Yₗₘ|ϕₙₖ⟩ into PROCAR file.
Arguments
projection::AbstractProjection
: projection of wave functionkpoints::Array{KPoint, 1}
: metadata of k-pointsbands::AbstractBands
: metadata of bandsfilename::String="PROCAR"
: name of output filesquared_only::Bool=true
: only output squared projection |⟨Yₗₘ|ϕₙₖ⟩|² or not
EIVENVAL
MatterEnv.load_eigenval
— Functionload_eigenval(filename::String="EIGENVAL", spin::Bool=false) -> Bands, Kpoints
Load band structure from EIVENVAL file.
Arguments
filename::String="EIGENVAL"
: name of input filespin::Bool=false
: distingush spin up and spin down or not
Returns
Bands
: Eigen-values of energy in each k-pointsArray{KPoint, 1}
: K-points and weight
PROOUT
MatterEnv.load_proout
— Functionload_proout(filename::String="PROOUT") -> Projection
Load projection of wave function ⟨Yₗₘ|ϕₙₖ⟩ from PROOUT file.
Arguments
filename::String="PROOUT"
: name of input file
Returns
Projection
: Projection of wave function ⟨Yₗₘ|ϕₙₖ⟩