PAOFLOW.SocFitter#

Classes#

soc_fitter

Compare fully relativistic (FR) DFT bands against PAOFLOW bands (SR)

Functions#

fit_soc_strength(self)

build_soc_dict(self, params)

read_qe_bands(filename, fermi_level)

soc_mask(self, orb[, soc_strenghts])

calc_1st_bnd(self)

plot_final_bands(self)

estimate_soc(El)

The soc ={} dict contains an approximate value for the soc strenght for desired shell,

get_orbitals(dict)

build_automatic_adhoc_soc(calc)

Module Contents#

class PAOFLOW.SocFitter.soc_fitter(pao_sr, bands_soc_path, orb={}, ibrav=0, fermi_level=0, nkpts=100, guess=0.2, N_extra_bands=0)[source]#
Compare fully relativistic (FR) DFT bands against PAOFLOW bands (SR)

to fit and extract ad-hoc Spin-Orbit Coupling (SOC) strength parameters for target orbitals.

>>> from PAOFLOW.SocFitter import soc_fitter
>>> fitter = soc_fitter(
...     pao_sr=paoflow_obj,
...     bands_soc_path='./Al-fr.gnu',
...     orb={"Al": ["3P"]},
...     ibrav=1,
...     fermi_level=5.6253
... )
pao_srPAOFLOW

A initialized scalar-relativistic PAOFLOW instance containing core electronic structure and data-controller dictionaries.

bands_soc_pathstr

Path to the text dat file containing the fully-relativistic (FR) reference DFT bands (e.g., Quantum ESPRESSO .gnu or .dat output). Run write_QE_path=True with paoflow before doing the FR DFT

orbdict, optional

Dictionary mapping element symbols to lists of targeted orbital shell labels for SOC fitting (e.g., {"Al": ["3P"], "Pt": ["5D"]}). Default is {}.

ibravint, optional

Bravais lattice index for PAOFLOW band structure generation. Default is 0.

fermi_levelfloat, optional

Fermi energy (in eV) used to shift reference bands relative to $E_F$. Default is 0.

nkptsint, optional

Number of $k$-points to evaluate along the band path. Default is 100.

guessfloat, optional

Initial estimate or scaling multiplier for the fitting parameters. Default is 0.2.

N_extra_bandsint, optional

Number of extra bands beyond the total electron count (nelec) to include in the fitting energy window. Default is 0.

pao_srPAOFLOW

Reference scalar-relativistic PAOFLOW object.

pao_fit_srPAOFLOW

Working PAOFLOW object used during optimization cycles.

nkptsint

Number of k-points along the high-symmetry path.

soc_shell_dictdict

Binary shell-weight masks per element indicating which orbitals undergo SOC fitting.

which_pdf_dictdict

Mapping of element to orbital angular momentum indices (0=P, 1=D, 2=F) subject to SOC.

ibravint

Bravais lattice flag.

begin_bnd_fitint

Index of the lowest energy band included in the fitting window.

end_bnd_fitint

Index of the highest band included in the fitting window (nelec + N_extra_bands).

Effloat

Fermi energy applied to the system.

guessfloat

Initial parameter guess provided during setup.

FR_bandsnumpy.ndarray

Array of shape (nkpts, nbands) holding aligned reference DFT SOC band energies.

soc_strengh_dictdict

Fitted SOC parameters xi (in eV) per element and orbital type after optimization.

pao_sr[source]#
pao_fit_sr[source]#
nkpts = 100[source]#
ibrav = 0[source]#
Ef = 0[source]#
guess = 0.2[source]#
FR_bands[source]#
soc_strengh_dict[source]#
band_error(params, dft_bands)[source]#
run_paoflow_soc(params)[source]#
PAOFLOW.SocFitter.fit_soc_strength(self)[source]#
PAOFLOW.SocFitter.build_soc_dict(self, params)[source]#
PAOFLOW.SocFitter.read_qe_bands(filename, fermi_level)[source]#
PAOFLOW.SocFitter.soc_mask(self, orb, soc_strenghts=None)[source]#
PAOFLOW.SocFitter.calc_1st_bnd(self)[source]#
PAOFLOW.SocFitter.plot_final_bands(self)[source]#
PAOFLOW.SocFitter.estimate_soc(El)[source]#

The soc ={} dict contains an approximate value for the soc strenght for desired shell, still in testing for optimal values

PAOFLOW.SocFitter.get_orbitals(dict)[source]#
PAOFLOW.SocFitter.build_automatic_adhoc_soc(calc)[source]#