Volumetric data files
Read/write
WannierIO.read_xsf
— Methodread_xsf(filename)
Read xsf
file.
Return
primvec
:3 * 3
, Å, each column is a primitive lattice vectorconvvec
:3 * 3
, Å, each column is a conventional lattice vectoratoms
:n_atoms
String, atomic symbols or numbersatom_positions
: length-n_atoms
vector, Å, cartesian coordinatesorigin
:3
, Å, origin of the gridspan_vectors
:3 * 3
, Å, each column is a spanning vectorX
:nx
, fractional coordinate of grid points along the first spanning vectorY
:ny
, fractional coordinate of grid points along the second spanning vectorZ
:nz
, fractional coordinate of grid points along the third spanning vectorW
:nx * ny * nz
, volumetric data
Only support reading 1 datagrid in BLOCK_DATAGRID_3D
.
WannierIO.write_xsf
— Methodwrite_xsf(filename, lattice, atom_positions, atom_numbers)
write_xsf(
filename,
lattice,
atom_positions,
atom_numbers,
origin
)
write_xsf(
filename,
lattice,
atom_positions,
atom_numbers,
origin,
span_vectors
)
write_xsf(
filename,
lattice,
atom_positions,
atom_numbers,
origin,
span_vectors,
W
)
Write xsf
file.
Arguments
lattice
:3 * 3
, Å, each column is a lattice vectoratom_positions
: length-n_atoms
vector, fractional coordinatesatom_numbers
:n_atoms
, atomic numbersorigin
:3
, Å, origin of the gridspan_vectors
:3 * 3
, Å, each column is a spanning vectorW
:nx * ny * nz
, volumetric data
WannierIO.read_bxsf
— Methodread_bxsf(filename)
Read bxsf
file.
Return
fermi_energy
: Fermi energy in eVorigin
:3
, Å⁻¹, origin of the gridspan_vectors
:3 * 3
, Å⁻¹, each column is a spanning vectorX
:nx
, fractional coordinate of grid points along the first spanning vectorY
:ny
, fractional coordinate of grid points along the second spanning vectorZ
:nz
, fractional coordinate of grid points along the third spanning vectorE
:n_bands * nx * ny * nz
, eigenvalues at each grid point
WannierIO.write_bxsf
— Methodwrite_bxsf(filename, fermi_energy, origin, span_vectors, E)
Write bxsf
file.
Arguments
fermi_energy
: Fermi energy in eVorigin
:3
, Å⁻¹, origin of the gridspan_vectors
:3 * 3
, Å⁻¹, each column is a spanning vectorE
:n_bands * nx * ny * nz
, eigenvalues at each grid point
WannierIO.read_cube
— Methodread_cube(filename)
Read cube
file.
By default, cube
use Bohr unit, here all returns are in Cartesian coordinates, Å unit.
WannierIO.write_cube
— Methodwrite_cube(
filename,
atom_positions,
atom_numbers,
origin,
voxel_vectors,
W
)
Write cube
file.
Arguments
atom_positions
:3 * n_atoms
, Å, cartesian coordinatesatom_numbers
:n_atoms
, atomic numbersorigin
:3
, Å, origin of the gridvoxel_vectors
:3 * 3
, Å, each column is a voxel vectorW
:nx * ny * nz
, volumetric data