doped: Python toolkit for robust and repeatable charged defect supercell calculations

Seán R. Kavanagh,Alexander G. Squires,Adair Nicolson,Irea Mosquera-Lois,Alex M. Ganose,Bonan Zhu,Katarina Brlec,Aron Walsh,David O. Scanlon
DOI: https://doi.org/10.21105/joss.06433
2024-04-12
Abstract:Defects are a universal feature of crystalline solids, dictating the key properties and performance of many functional materials. Given their crucial importance yet inherent difficulty in measuring experimentally, computational methods (such as DFT and ML/classical force-fields) are widely used to predict defect behaviour at the atomic level and the resultant impact on macroscopic properties. Here we report doped, a Python package for the generation, pre-/post-processing, and analysis of defect supercell calculations. doped has been built to implement the defect simulation workflow in an efficient and user-friendly -- yet powerful and fully-flexible -- manner, with the goal of providing a robust general-purpose platform for conducting reproducible calculations of solid-state defect properties.
Materials Science,Chemical Physics,Computational Physics
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the challenges faced in performing defect supercell calculations in solid materials. Specifically, the paper introduces a Python toolkit named **doped**, which aims to provide an efficient, user - friendly and powerful platform for generating, pre - processing, post - processing and analyzing defect supercell calculations. These problems include: 1. **Computational complexity and efficiency**: The calculation of defect properties in solid materials is usually very complex and requires a large amount of computational resources. **doped** significantly improves computational efficiency and reduces computational costs by optimizing steps such as supercell selection and charge - state estimation. 2. **Error rate of manual operations**: Manually performing each stage of defect calculations is not only time - consuming but also error - prone, especially for novice researchers. **doped** provides an automated workflow, reducing the possibility of human error. 3. **Requirement for high - throughput calculations**: With the increasing demand for high - throughput research on defects, efficient software is required to support these calculations. **doped** is compatible with high - throughput architectures such as **atomate** and **AiiDA** and can quickly generate and analyze a large number of calculation results. 4. **Reproducibility and transparency of data**: The reproducibility and transparency of data are crucial in scientific research. **doped** supports data sharing and reproducible analysis by saving all input parameters and calculation results in lightweight JSON files. 5. **Prediction of defect charge states**: Defects in solids can have different electronic charge states, but these charge states are usually unknown. **doped** introduces a method based on the probability of element oxidation states, the electronic state of the host crystal and the magnitude of the charge state, which improves the accuracy and efficiency of charge - state prediction. 6. **Selection of competing phases**: When calculating the defect formation energy, secondary phases (competing phases) adjacent to the host compound need to be considered. **doped** simplifies this process by querying the **Materials Project** database to automatically select possible competing phases. 7. **Thermodynamic analysis tools**: **doped** provides a series of flexible tools for analyzing the thermodynamic properties of defects, including formation energy diagrams, Fermi - level solving, doping analysis, etc. 8. **Correction of finite - size effects**: In supercell calculations, the finite - size effect is an important issue. **doped** automatically implements the Freysoldt (FNV) and Kumagai (eFNV) image - charge correction methods, improving the accuracy of calculations. In summary, **doped** aims to solve multiple key problems in defect calculations of solid materials by providing a comprehensive, efficient and user - friendly toolkit, thereby promoting the research progress in this field.