pymatgen.transformations.defect_transformations module

class DefectTransformation(scaling_matrix, defect)[source]

Bases: pymatgen.transformations.transformation_abc.AbstractTransformation

Generates Defect structures based on pymatgen Defect Core classes

  • scaling_matrix – Supercell scaling matrix
  • defect – Defect pymatgen object NOTE: defect.bulk_structure should be same as provided structure in the apply_transformation step

:param structure (bulk structure to be scaled up - typically conventional unit cell) :return:

defect_structure, with charge applied

Returns the inverse transformation if available. Otherwise, should return None.


Determines if a Transformation is a one-to-many transformation. If a Transformation is a one-to-many transformation, the apply_transformation method should have a keyword arg “return_ranked_list” which allows for the transformed structures to be returned as a ranked list.