Defect#
- class Defect(specie=None, defect_site=None, bulk_structure=None, charge=None, multiplicity=None, bulk_volume=None, label=None)[source]#
Bases:
MSONableAbstract class for a single point defect
Base class for defect objets.
- Parameters:
specie (str) – Defect element symbol.
defect_site (Site) – Pymatgen Site object of the defect.
bulk_structure (Structure) – Pymatgen Structure without defects.
charge (int or float) – Charge of the defect.
multiplicity (int) – Multiplicity of defect within the simulation cell.
bulk_volume (float) – Volume of bulk cell in A°^3.
label (str) – Defect label.
Methods
as_dictA JSON serializable dict representation of an object.
from_dictReconstruct an MSONable object from a dict.
loadLoad an instance from a JSON file written by
save().saveSerialize the instance to JSON on disk, pickling fields if needed.
Sets the volume of bulk cell
Sets the charge of the defect.
Sets the label of the defect
Sets the Multiplicity of the defect.
to_jsonReturns a json string representation of the MSONable object.
unsafe_hashReturn a hash of the current object.
validate_monty_v1Pydantic validator with correct signature for pydantic v1.x.
validate_monty_v2Pydantic validator with correct signature for pydantic v2.x.
Attributes
REDIRECTStructure without defects.
Volume of bulk cell in A°^3.
Charge of the defect.
Defect composition as a Composition object
Index of the defect site in the structure
Structure of the defect.
Dictionary with defect element symbol as keys and difference in particle number between defect and bulk structure as values
Defect label.
Multiplicity of a defect site within the structure
Name of the defect.
Defect position as a Site object
Site concentration (multiplicity/volume) expressed in cm^-3.
Defect species.
Latex formatted name of the defect.
Name in latex format with charge written as a number.
Name in latex format with charge written with Kröger and Vink notation.
Defect type.
- property bulk_structure#
Structure without defects.
- property bulk_volume#
Volume of bulk cell in A°^3.
- property charge#
Charge of the defect.
- abstract property defect_composition#
Defect composition as a Composition object
- abstract property defect_site_index#
Index of the defect site in the structure
- property defect_structure#
Structure of the defect.
- property defects#
- property delta_atoms#
Dictionary with defect element symbol as keys and difference in particle number between defect and bulk structure as values
- property label#
Defect label.
- property multiplicity#
Multiplicity of a defect site within the structure
- abstract property name#
Name of the defect.
- set_multiplicity(new_multiplicity=None)[source]#
Sets the Multiplicity of the defect. If new_multiplicity is not provided it is determined with self.get_multiplicity
- property site#
Defect position as a Site object
- property site_concentration_in_cm3#
Site concentration (multiplicity/volume) expressed in cm^-3.
- property specie#
Defect species.
- property symbol#
Latex formatted name of the defect.
- property symbol_with_charge#
Name in latex format with charge written as a number.
- property symbol_with_charge_kv#
Name in latex format with charge written with Kröger and Vink notation.
- property type#
Defect type.