Boltztrap - Tools Userguide: Hilal Balout 2018
Boltztrap - Tools Userguide: Hilal Balout 2018
Hilal BALOUT
2018
1
1 What is BoltzTraP_Tools?
BoltzTraP_Tools is an interface written using Python 2 language[1]. It allows to parse and plot
BoltzTraP [2] output DATA ( .trace, .condtens,.trace_fixdoping, and .condtens_fixdoping) in
greater detail.
For that Numpy[3] and Matplotlib[4] (Pylab) Python packages are needed.
All files can be downloaded from here.
As mentionned before BoltzTraP_Tools can read all TRACE and CONDTENS output files.
Therefore, it will be possible to plot the following quantities :
• Energy level : e
• Temperature : T
• Number of Carriers : n
• Hall Coefficient : R H
• Pauli Magnetic : χ
2
3 BoltzTraP_Tools Functions
BoltzTraP_Tools consists six functions which allow to collect and plot DATA from a file:
However, using Scaling_DATA function, units and scale factors can be modified for all quan-
tities.
With this feature, the unit and the scale factor for every quantitiy must be given manually.
3
• As below :
labels = Labels_Init()
labels will be a dictonary which contains all quantitiy informations such: index, label, unit and
scale factor.
2. Then, all quantites can be scaled or all default parameters can be conserved.
• As below :
Scaling_DATA(labels)
"Setting of Units and Scale Factors (y/n) ? >" n # Default Set.
"Setting of Units and Scale Factors (y/n) ? >" y # Manual Set.
• Example: scaling of Seebeck coefficient of about 106 and its unit becomes µV/K:
labels = Labels_Init()
Scaling_DATA(labels)
# Out: "Setting of Units and Scale Factors (y/n) ? >" n # Default Set.
print labels["S"]
# Out: [4, ' Seebeck ', ' $S$; ', ' ($V/K$) ', 1.0]
labels["S"][4]= 1e6 # the fourth index corresponds to the quantitiy scale factor.
labels["S"][3]= " ($\mu V/K$) " # the third index corresponds to the quantitiy unit.
print labels["S"]
# Out: [4, ' Seebeck ', ' $S$; ', ' ($\\mu V/K$) ', 1000000.0]
4
5 Files Type:
Trace and Condtens output files contain all calculated quantites as a function of temperature and
energy.
N-Trace and N-Condtens output files contain all calculated quantities as a function of temperature
at fixed doping level.
6 Usage of BoltzTraP_Tools
• CoSb3
• LiZnSb
For using BoltzTraP_Tools a script file can be written or by calling BoltzTraP_Tools functions
progressively.
• Script example:
labels=Labels_Init()
Scaling_DATA(labels)
Analyse=raw_input("File Extension (Trace, Condtens, N-Trace, or N-Condtens) ? > ")
File_DATA,Ef=File_Read(Analyse)
DATA_Process(Analyse,File_DATA,Ef,labels)
5
• Xplot (E, T, N, DOS, S, Sigma, PF, R_H, Kappa, c or chi )
• Xplot (E, T, N, S, Sxx, Syy, Szz, Sigma, Sigmaxx, Sigmayy,Sigmazz, PF, PFxx, PFyy, PFzz,
Kappa, Kappaxx, Kappayy or Kappazz)
• Yplot (E, T, N, S, Sxx, Syy, Szz, Sigma, Sigmaxx, Sigmayy,Sigmazz, PF, PFxx, PFyy, PFzz,
Kappa, Kappaxx, Kappayy or Kappazz)
In addition, for Trace and Condtens files, the plot can be performed at fixed temperature or
fixed energy:
However, for N-Trace and N-Condtens files, the plot can be performed at fixed doping level.
For all plot the logscale of carriers concentration can be chosen,and hence the electron or hole type:
7 Installation
8 Report Bugs
6
References
[1] G. van Rossum et al. The Python programming language, 1991–. URL: http://www.python.
org.
[2] Georg K.H. Madsen and David J. Singh. Boltztrap. a code for calculating band-structure de-
pendent quantities. Computer Physics Communications, 175(1):67 – 71, 2006.
[3] Stefan van der Walt, S. Chris Colbert, and Gael Varoquaux. The numpy array: A structure for
efficient numerical computation. Computing in Science and Engg., 13(2):22–30, March 2011.