DefectComplex#
- class DefectComplex(defects, bulk_structure=None, charge=None, multiplicity=None, bulk_volume=None, label=None)[source]#
Bases:
MSONableClass to describe defect complexes
- Parameters:
defects (list) – List of Defect objects.
bulk_structure (Structure) – Pymatgen Structure of the bulk material.
charge (int or float) – Charge of the defect.
multiplicity (int) – Multiplicity of the defect.
Methods
as_dictA JSON serializable dict representation of an object.
from_dictReconstruct an MSONable object from a dict.
Get DefectComplex object from string.
Generate a structure containing the defect starting from a bulk structure.
loadLoad an instance from a JSON file written by
save().saveSerialize the instance to JSON on disk, pickling fields if needed.
Sets the charge of the defect.
Sets the label of the defect
Sets the charge 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.
Composition of defect structure.
List of names of the single defects.
Structure containing the defect.
List of single defects consituting the complex.
Dictionary with Element as keys and particle difference between defect structure and bulk structure as values.
Defect label.
Multiplicity of a defect site within the structure
Name of the defect.
Site concentration (multiplicity/volume) expressed in cm^-3.
Site objects of single defects.
Latex formatted name of the defect.
Name in latex format with charge written as a number.
Name in latex format with charge written with kroger 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.
- property defect_composition#
Composition of defect structure.
- property defect_names#
List of names of the single defects.
- property defect_structure#
Structure containing the defect.
- property defects#
List of single defects consituting the complex.
- property delta_atoms#
Dictionary with Element as keys and particle difference between defect structure and bulk structure as values.
- generate_defect_structure(bulk_structure=None)[source]#
Generate a structure containing the defect starting from a bulk structure. If not provided self.bulk_structure is used.
- property label#
Defect label.
- property multiplicity#
Multiplicity of a defect site within the structure
- property name#
Name of the defect. Behaves like a string with additional attributes.
- property site_concentration_in_cm3#
Site concentration (multiplicity/volume) expressed in cm^-3.
- property sites#
Site objects of single defects.
- 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 kroger and vink notation.
- property type#
Defect type.