2 Modules¶
2.1 PREPARE Module¶
POSCAR
and dasp.in
, where dasp.in
is the main parameter control file.dasp.in
are reasonable first. If it is, the next calculation begins and marks out that the preparation work has been done in the 1prepare.out
.1prepare.out
and program terminated. Users need to revise the input parameters based on the warnings and restart program.dasp.in
: POSCAR
(crystal structure), INCAR
(calculation parameters), KPOINTS
(k-points setting), POTCAR
(pseudo-potential file), and submission script.- POSCAR
According to the
POSCAR
that user input, DASP will generate a supercell that is nearly cubic within a given atoms number through the self-developed algorithm “nearly cubic supercell”. Then, fix the lattice constant and optimize the positions of all atoms in the supercell to obtainPOSCAR_final
file.
- KPOINTS
For the calculations of supercells with defects, the single k point is used in DASP, namely only Gamma point is included in the
KPOINTS
file.
- INCAR
DASP will generate two INCAR files, one is
INCAR-relax
for the structural optimization, ant the other isINCAR-static
used in static calculation. The default generated is commonly used parameters. They can be modified after the PREPARE module runs if users need to modify them. According to the parameters in thedasp.in
, DASP can adopt three different calculation levels (see input parameter level=1/2/3 for details). For level=2 or 3, the hybrid functional will be used. DASP can automatically determine the proportion of exchanged parts in hybrid functional by the experimental band gap that user set indasp.in
, and the matched proportion is written into INCAR.
- POTCAR
According to the path of pseudo-potential file provided by the user, DASP will automatically generate the
POTCAR
required for calculation.
- Submission script
DASP will automatically generate a submission script file based on the system name, queue name, nodes, cores and the path of VASP written by the user in
dasp.in
.
dasp.in
(see correction in the introduction of input parameter for details), this scheme needs to know the Madelung constant corresponding to the supercell. According to the generated supercell, the PREPARE module will call VASP to automatically calculate the Madelung constant and write it into dasp.in
. The Madelung constant here is only related to the lattice of the supercell.1prepare.out
. The information on status, results and errors can be queried in the file. After this module runs successfully, it will be noted the complete information at the end of the 1prepare.out
, which will be detected when the subsequent TSC module starts.2.2 TSC Module¶
- Judgement of thermodynamic stability of semiconductors
A semiconductor if it is thermodynamically stable (does not decompose into simple substances or other hetero-phase, and can synthesize pure phase sample) needs to match the following three conditions:
- (1)The formation of the target compound reaches thermodynamic equilibrium:
Under the equilibrium condition, the formation and decomposition of the target compound are in dynamic equilibrium. For a compound \(A_kB_lC_mD_n\) , the weighted sum of the chemical potentials \(\mu\) of its component elements should be equal to the formation energy \(E^f\) of the compound,
(1)¶\[k\mu_A + l\mu_B + m\mu_C + n\mu_D = E^f(A_kB_lC_mD_n)\]- (2)The formation of the competing secondary compounds concerning the host compound cannot be carried out:
For any hetero-phase compound \(A_{k'}B_{l'}D_{n'}\) , the chemical potential of each element and the formation energy of hetero-phase compound need to meet the following inequality:
(2)¶\[k'\mu_A + l'\mu_B + n'\mu_D < E^f(A_{k'}B_{l'}D_{n'})\]- (3)The simple substances of the constituent elements of the host compound will not form:
In order to avoid the formation of a simple substances, the chemical potential of each element satisfies the following inequality:
(3)¶\[\mu_A< 0\ ,\ \mu_B< 0\ ,\ \mu_C< 0\ ,\ \mu_D < 0\]
Two steps of thermodynamic stability calculation
According to the above discussions, the formation energy of all competing secondary compounds is required to calculate the thermodynamic stability and the stable range of element chemical potential of compound semiconductors. For binary, ternary, quaternary, quinary and even more compounds, there are many possible competing secondary compounds, which all need to be taken into account in the calculation. If not fully considered, some unstable compounds will be predicted to be stable. Therefore, full consideration of all possible secondary compounds is critical to the accurate calculation of thermodynamic stability and elemental chemical potential range. In order to consider all secondary compounds as fully as possible, DASP will visit the Materials Project (MP) database to search for all the compounds that are composed of the component elements, and quickly determines the critical competing compounds by their formation energy. Then, for the host and critical competing compounds, TSC can calculate their formation energies with higher accuracy to ensure that the calculated range of the chemical potentials is accurate. It is divided into two steps:
First step
DASP will visit the materials genome database, such as Materials Project (MP) database, to search for all the compounds that are composed of the component elements, then obtained the total energy and structure of these compounds, and generate VASP calculation input files in which the parameters consistent with the MP database:
INCAR
,KPOINTS
,POTCAR
,POSCAR
(copied from the files provided by user). Meanwhile, TSC will also perform a VASP calculation for the total energy and formation energy of the host compound (the calculated energy can be compared to that in MP database directly). The process of calculation is the same as that of the MP database, which is divided into twice structural optimization and one static calculation, which arerelaxation1
,relaxation2
, andstatic
under “TSC/ host homonymous directory”.With the formation energies of the host compound and all the competing compounds, TSC can solve the thermodynamic constraint equations and inequations to predict whether the host compound is stable, and determine the critical competing compounds that limit the stable chemical potential region. The structure and total energy of the primitive cell of the host compound are only needed to calculate at this stage, and GGA-PBE exchange-correlation is used leading to a small amount of calculation. A large number of data of secondary compounds are directly from the MP database without calculation. Therefore, all the competing secondary compounds can be considered quickly and fully to determine the critical competing compounds.
Second step
For the host and critical competing compounds, the unified VASP parameters and input files generated by the PREPARE module are adopted,
INCAR
andPOTCAR
, andKPOINTS
andPOSCAR
(for the host compound, copied from the file provided by the user, for the critical competing compounds, download from the MP database) automatically generated by the TSC module, the energy and formation energy of the host and critical competing compounds are recalculated. In order to make the calculation quickly, only static calculations are made for the host and critical competing compounds, and the directory is located in “TSC/ host or secondary compounds ”static_recalc
. Then according to the formation energies of the host and critical competing compounds, TSC resolves the thermodynamic constraint equations and inequations to calculate the stable chemical potential region of each element as the input of the subsequent DEC and DDC modules.
2tsc.out
, the status of this module can be queried in this file. After this module runs successfully, it will be noted the complete information at the end of the 2tsc.out
, which will be detected when the subsequent DEC module starts.2.3 DEC Module¶
dasp.in
and the supercell produced by PREPARE module. Then, based on the VASP input file generated by the PREPARE module and the chemical potential calculated by the TSC module, the DEC module will call ab-initio software VASP to calculate the structure and electronic structure of defects and dopants. According to the result of calculations, the formation energy and transition energy level of defects and dopants will be calculated, and output the figure.dasp.in
whether reasonable. If it is, start the next calculation, and output the running status information in real-time in 3dec.out
. If it isn’t, relevant error and warning information will be output to 3dec.out
file, and the program terminates. Users need to modify relevant parameters according to the error information and restart.- generating neutral defects
The neutral defects include vacancy, antisite, and interstitial. The supercell structure
POSCAR_final
is generated by using PREPARE module, the vacancy and antisite on inequivalent sites are produced based on the crystal symmetry, meanwhile, the interstitial is obtained by randomly scattering at the position far away from atoms. After the defect configuration is generated, the DEC module will put the VASP input files, such as INCAR, KPOINTS, POTCAR, and submission script, generated by the PREPARE module into the directory of each defect. For the dopants, there are only two configurations: antisite (substitution) and interstitial.
- generating charged defects
The DEC module will create the corresponding calculation directory of charged defects according to the results of neutral defects (the occupied state of the eigenvalue of neutral defects). If the calculation of neutral defects fails or does not converge, there will be no charged defects generated.
- automatically submitting jobs
DEC module will automatically call VASP to carry out structural optimization and static calculation for all neutral and charged defects and detect whether the calculation is successful and converged. The command
dec-state
used under the dec directory can view the status of all jobs to be calculated at any time, including converged, does not converge, error, running, queuing, not submitted, etc. After the DEC module runs, the user can enter the corresponding directory to modify the INCAR for tasks that do not converge and have errors, and write the path of this directory intoredo.in
under the dec directory and re-execute the DEC module.
- formation energy calculation
The formation energy of a point defect in the charge state q can be calculated as,
(4)¶\[ΔE_{f} = E_{tot(defect)} - E_{tot(host)} - \Sigma_{i}n_{i}(\mu_{i} + E_{i}) + q(E_{F} + E_{VBM}) + E_{corr}\]where \(ΔE_{f}\) is the formation energy, \(E_{tot(defect)}\) and \(E_{tot(host)}\) are the total energies of the supercells with and without a defect (dopant). \(n_{i}\) is the number of atoms of element \(i\) remove from ( \(n_{i}\) <0) or added to ( \(n_{i}\) >0) the supercell to form the defect, and \(\mu_{i}\) is the elemental chemical potential referenced to the total energy \(E_{i}\) of the pure solid/gas elementary phase. \(q\) is the number of electrons, transferred from the supercell to the reservoirs in forming the defect cell. \(E_{F}\) is the Fermi level referenced to the eigenvalue of the valence band maximum (VBM) level of the bulk supercell. \(E_{corr}\) is the correction that accounts for the spurious interaction caused by finite supercell size and periodic boundary conditions.
The DEC module will read the output of the first principle calculation, calculate the formation energy of each charged state of each defect according to the formula, and automatically calculate the correction value according to the correction method set by the user. If the defect calculation fails or does not converge, the formation energy will not be calculated.
- outputting figures
The DEC module can output the figure of the defect formation energy changing with the Fermi level according to the result of the formation energy, including the data in format dat:
p1.dat, p2.dat, ...
, and pictures with png format:p1.png, p2.png, ...
(the integer represents the number of points in the chemical potential space given by the TSC module), as well as the data and picture of the transition energy level:tl.dat
andtl.png
. Please draw the picture according to the instructions in the document.
- distorted defect structure calculation
The DEC module can automatically generate the distorted defect structure based on the results of the original structure. It is worth noting that specifying the defect that will produce the distorted structure must be after the calculation of the original defect structure is completed, and running the DEC module again. For the defects that have not completed the initial structure calculation, the distorted structure will not be generated.
3dec.out
. The information on status, results and errors can be queried in the file. After this module runs successfully, it will be noted the complete information at the end of the 3dec.out
, which will be detected when the subsequent DDC module starts.2.4 DDC Module¶
Where \(N_{sites}\) is the number of sites that defects can be incorporated per volume, \(g_q\) is the degeneracy factor that equals to the number of possible electron configurations for different charge states, \(ΔE_f\) is the defect formation energy. All the ionized defects in the charge state q≠0 produce carriers. The positively charged donor defects with q>0 produce electron carriers, and their summed charge is \(\sum_{\alpha,q>0} [q*n(\alpha,q)]\) ; while the negatively charged acceptor defects with q<0 produce hole carriers, and their summed charge is \(\sum_{\alpha,q<0} [(-q)*n(\alpha,q)]\) . The final densities of electron and hole carriers are contributed by both the thermal excitation and the ionization of all these defects (dopants). The equilibrium-state Fermi level can be calculated through solving the charge neutrality equation,
where \(\sum_{\alpha,q<0} [(-q)*n(\alpha,q)]\) and \(\sum_{\alpha,q>0} [q*n(\alpha,q)]\) are the summed charges of negatively charged defects and positively charged defects, weighted by the charge q. \(n_0\) and \(p_0\) are free carrier densities, which can be defined as,
where \(g(E)\) is the density of states (DOS), and \(f(E)\) is the Fermi-Dirac distribution function.
- summary of formation energies
Based on the defects calculation in DEC, DDC will automatically search the data, such as formation energy and transition energy level, that output under each defect directory, then summarize and output them in the file
DefectParams.txt
.
- self-consistent calculation of Fermi level
DDC self-consistently solves the charge-neutrality equation to determine the Fermi level at growth and working temperature respectively, and the results will be written into
4ddc.out
andFermi.dat
.
- calculation of defect and carrier concentration
Based on the Fermi level, the corresponding carrier densities and differently charged defect concentration can be calculated, and output the data file
Carrier.dat
andDefect_charge.dat
, as well as the png imagedensity.png
.
4ddc.out
file. Relevant status, results, and error information can be queried in this file.2.5 CDC Module¶
radiative carrier capture coefficient
lineshape of photoluminescence spectra