qeview.qe_analyse_FM
- class qeview.qe_analyse_FM(dir, name)[source]
Class for analyzing Quantum Espresso (QE) data for ferromagnetic (FM) systems. This class provides methods to read, process, and plot Density of States (DOS), projected Density of States (pDOS), and band structure data from Quantum Espresso calculations. It also includes functionality to interface with Wannier90 for band structure calculations.
Methods
__init__(dir, name)Initialize the QEBase object with the given directory and name.
get_band_structure([bands_up_name, ...])Retrieve the band structure from specified or fallback files.
get_crystall_struct([filename, qe_dir])Reads and processes the crystallographic structure from a specified XML file. Prints: - Unit Cell Volume in cubic Angstroms. - Reciprocal-space vectors in Angstroms^-1 and in units of 2π/alat. - Real-space vectors in Angstroms and in units of alat. - Atomic positions in Cartesian coordinates (in units of alat and Angstroms) and fractional coordinates.
get_full_DOS([filename, qe_dir])Reads the Density of States (DOS) from a file and stores it in the instance variables:
get_integer_kpath([N_points_direction, ...])Generates a k-path with integer coordinates for high symmetry points.
get_pDOS([qe_dir])Reads projected density of states (pDOS) data from files and organizes it by spin and orbital type.
get_qe_kpathBS([points_per_unit, saveQ, ...])Generate the k-path for band structure calculations and optionally save it to a file.
get_spin_BS(file_path)Reads spin band structure data from a default qe bands file and returns it as a numpy array.
get_sym_points([filename, qe_dir])Parses the high symmetry points from a Quantum Espresso input file and calculates their distances and coordinates.
load_wannier(kpath_filename[, kpaths_dir, ...])Load Wannier data and k-path information.
plot_BS([efrom, eto, efermi, saveQ, ...])Plots the band structure (BS) of the material with spin-up and spin-down components.
plot_FullDOS([efrom, eto, yto, saveQ, ...])Plots the Density of States (DOS) for a given energy range.
plot_pDOS([element, efermi, efrom, eto, ...])Plots the projected Density of States (pDOS) for a given element and energy range.
plot_wannier_BS([efrom, eto, saveQ, ...])Plots the Wannier band structure.
print_bands_range([band_from, band_to, efermi])This method prints the Fermi energy and the energy range for each band in the specified range.