defects
Utility functions for dealing with defects.
get_defect_entry_from_defect ¶
get_defect_entry_from_defect(
defect: Defect,
defect_supercell: Structure,
defect_charge: int,
) -> DefectEntry
Function to generate DefectEntry object from Defect object.
Parameters:
-
defect
(Defect
) –defect object
-
defect_supercell
(Structure
) –defect supercell
-
defect_charge
(int
) –charge state of defect
Returns:
-
DefectEntry
–defect entry
Source code in quacc/atoms/defects.py
make_defects_from_bulk ¶
make_defects_from_bulk(
atoms: Atoms,
defect_gen: (
AntiSiteGenerator
| ChargeInterstitialGenerator
| InterstitialGenerator
| SubstitutionGenerator
| VacancyGenerator
| VoronoiInterstitialGenerator
) = VacancyGenerator,
defect_charge: int = 0,
sc_mat: NDArray | None = None,
min_atoms: int = 80,
max_atoms: int = 240,
min_length: float = 10.0,
force_diagonal: bool = False,
**defect_gen_kwargs
) -> list[Atoms]
Function to make defects from a bulk atoms object.
Parameters:
-
atoms
(Atoms
) –bulk atoms
-
defect_gen
(AntiSiteGenerator | ChargeInterstitialGenerator | InterstitialGenerator | SubstitutionGenerator | VacancyGenerator | VoronoiInterstitialGenerator
, default:VacancyGenerator
) –defect generator
-
defect_charge
(int
, default:0
) –charge state of defect
-
sc_mat
(NDArray | None
, default:None
) –supercell matrix
-
min_atoms
(int
, default:80
) –minimum number of atoms in supercell
-
max_atoms
(int
, default:240
) –maximum number of atoms in supercell
-
min_length
(float
, default:10.0
) –minimum length of supercell
-
force_diagonal
(bool
, default:False
) –force supercell to be diagonal
-
**defect_gen_kwargs
–keyword arguments to pass to the pymatgen.analysis.defects.generators get_defects() method
Returns:
Source code in quacc/atoms/defects.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|