from pymatgen.core.structure import Structure from mp_api.client import MPRester
api_key = "your key"
with MPRester(api_key) as mpr: Si = mpr.get_structure_by_material_id("mp-149", conventional_unit_cell=True) Li = mpr.get_structure_by_material_id("mp-135", conventional_unit_cell=True) Si.to(filename="./Si_convention.cif") Li.to(filename="./Li_convention.cif")
from pymatgen.analysis.interfaces.coherent_interfaces import CoherentInterfaceBuilder from pymatgen.analysis.interfaces.zsl import ZSLGenerator from pymatgen.core.structure import Structure
from pymatgen.analysis.interfaces.coherent_interfaces import CoherentInterfaceBuilder from pymatgen.analysis.interfaces.zsl import ZSLGenerator from pymatgen.core.structure import Structure
Interface 0: Full Formula (Li10 Si16) Reduced Formula: Li5Si8 abc : 7.698558 7.698558 27.802433 angles: 90.000000 90.000000 90.000000 pbc : True True True Sites (26) # SP a b c bulk_equivalent bulk_wyckoff interface_label --- ---- ---- ---- -------- ----------------- -------------- ----------------- 0 Li 0 0 0.577558 0 a film 1 Li 0.4 0.2 0.577558 0 a film 2 Li 0.2 0.6 0.577558 0 a film 3 Li 0.8 0.4 0.577558 0 a film 4 Li 0.6 0.8 0.577558 0 a film 5 Li 0.1 0.3 0.639411 0 a film 6 Li 0.5 0.5 0.639411 0 a film 7 Li 0.3 0.9 0.639411 0 a film 8 Li 0.9 0.7 0.639411 0 a film 9 Li 0.7 0.1 0.639411 0 a film 10 Si 0 0.25 0.407722 0 a substrate 11 Si 0 0.75 0.407722 0 a substrate 12 Si 0.5 0.25 0.407722 0 a substrate 13 Si 0.5 0.75 0.407722 0 a substrate 14 Si 0 0.5 0.358772 0 a substrate 15 Si 0 0 0.358772 0 a substrate 16 Si 0.5 0.5 0.358772 0 a substrate 17 Si 0.5 0 0.358772 0 a substrate 18 Si 0.25 0.5 0.505622 0 a substrate 19 Si 0.25 0 0.505622 0 a substrate 20 Si 0.75 0.5 0.505622 0 a substrate 21 Si 0.75 1 0.505622 0 a substrate 22 Si 0.25 0.25 0.456672 0 a substrate 23 Si 0.25 0.75 0.456672 0 a substrate 24 Si 0.75 0.25 0.456672 0 a substrate 25 Si 0.75 0.75 0.456672 0 a substrate ...... ...... Total number of interfaces: 191