Python Materials Genomics (pymatgen) is a robust materials analysis code that defines classes for structures and molecules with support for many electronic structure codes. It powers the Materials Project.
A function to calculate the Madelung constant of a ionic crystal. It measures the electrostatic potential of an ion in a crystal. Takes in a structure (only works if structure is decorated with oxidation states?) as the input along with a convergence tolerance.
A function to calculate the Madelung constant of a ionic crystal. It measures the electrostatic potential of an ion in a crystal. Takes in a structure (only works if structure is decorated with oxidation states?) as the input along with a convergence tolerance.