



在pymatgen中进行电池材料界面反应计算
在固态电池的研究中,固态电解质和电极材料的界面热稳定性一直是关注点。硫化物电解质不仅拥有较高的离子电导率,同时它的弹性模量和断裂韧性也适中,在抑制锂枝晶的同时也能较好地维持电解质与电极的紧密接触。然而, 基于硫化物固态电解质的固态电池的开发仍然面临着硫化物对空气稳定性差、电极/电解质界面的化学和电化学稳定性等重大挑战。本文以Li3PS4和Li反应为例,演示了如何在pymatgen中实现获取两种固体物质接触时界面反应的信息。
数据有两种来源方式:
- 用户可使用Materials Project API来获取化合物的能量,需要用户提供自己MP账户的API—KEY。
- 用户可使用本文中的链接数据集,作者已经从MP中下载并重新组织,以se_reactions.csv命名。
1. 安装pymatgen并导入相关模块
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2.读取多组元体系中的化合物数据
首先,为了读取se_reactions.csv中的数据,我们先定义一个函数df_to_entries(df),将csv的数据读入pandas,并转换为pymatgen中要求的entries条目格式,注意entries是一个list。
Unnamed: 0 formula energy spacegroup \ 0 576 Co3(PO4)2 -7.680226 P2_1/c 1 165 Co2P2O7 -7.678860 P2_1/c 2 168 Co2P2O7 -7.675357 P2_1/c 3 105 Co2P2O7 -7.669239 P1 4 125 Co2P2O7 -7.668915 P1 .. ... ... ... ... 937 45 P -1.894303 P4/nmm 938 438 Li -1.890345 P6/mmm 939 441 Li -1.853543 Cmce 940 445 Li -1.647124 P4_132 941 226 LiCoP2O7 -1.574601 P1 entry 0 mp-19264-GGA+U ComputedStructureEntry - Co6 P4... 1 mp-20274-GGA+U ComputedStructureEntry - Co8 P8... 2 mp-550468-GGA+U ComputedStructureEntry - Co4 P... 3 mp-550886-GGA+U ComputedStructureEntry - Co4 P... 4 mp-20283-GGA+U ComputedStructureEntry - Co4 P4... .. ... 937 mp-723897-GGA ComputedStructureEntry - P4 ... 938 mp-1063005-GGA ComputedStructureEntry - Li3 ... 939 mp-1103107-GGA ComputedStructureEntry - Li12 ... 940 mp-604313-GGA ComputedStructureEntry - Li4 ... 941 mp-727147-GGA+U ComputedStructureEntry - Li4 C... [942 rows x 5 columns]
以Li3PS4和Li反应为例,Wu2023等在Thermal Stability of Sulfide Solid Electrolyte with Lithium Metal中给出了反应方程式,我们将利用pymatgen计算如下方程式的反应能量:
3.找到最稳定的化合物
在Li-P-S-Co-O五元系中找到给定化学组成(Li,Li3PS4,Li3P,Li2S,LiP,Li3P7,LiP7,P)最稳定的化合物
None ComputedEntry - Li1 (Li) Energy (Uncorrected) = -1.9089 eV (-1.9089 eV/atom) Correction = 0.0000 eV (0.0000 eV/atom) Energy (Final) = -1.9089 eV (-1.9089 eV/atom) Energy Adjustments: None Parameters: Data: None ComputedEntry - Li3 P1 S4 (Li3PS4) Energy (Uncorrected) = -4.6433 eV (-0.5804 eV/atom) Correction = 0.0000 eV (0.0000 eV/atom) Energy (Final) = -4.6433 eV (-0.5804 eV/atom) Energy Adjustments: None Parameters: Data: None ComputedEntry - Li3 P1 (Li3P) Energy (Uncorrected) = -3.4816 eV (-0.8704 eV/atom) Correction = 0.0000 eV (0.0000 eV/atom) Energy (Final) = -3.4816 eV (-0.8704 eV/atom) Energy Adjustments: None Parameters: Data: None ComputedEntry - Li2 S1 (Li2S) Energy (Uncorrected) = -4.1552 eV (-1.3851 eV/atom) Correction = 0.0000 eV (0.0000 eV/atom) Energy (Final) = -4.1552 eV (-1.3851 eV/atom) Energy Adjustments: None Parameters: Data: None ComputedEntry - Li1 P1 (LiP) Energy (Uncorrected) = -4.1844 eV (-2.0922 eV/atom) Correction = 0.0000 eV (0.0000 eV/atom) Energy (Final) = -4.1844 eV (-2.0922 eV/atom) Energy Adjustments: None Parameters: Data: None ComputedEntry - Li3 P7 (Li3P7) Energy (Uncorrected) = -4.7216 eV (-0.4722 eV/atom) Correction = 0.0000 eV (0.0000 eV/atom) Energy (Final) = -4.7216 eV (-0.4722 eV/atom) Energy Adjustments: None Parameters: Data: None ComputedEntry - Li1 P7 (LiP7) Energy (Uncorrected) = -5.1305 eV (-0.6413 eV/atom) Correction = 0.0000 eV (0.0000 eV/atom) Energy (Final) = -5.1305 eV (-0.6413 eV/atom) Energy Adjustments: None Parameters: Data: None ComputedEntry - P1 (P) Energy (Uncorrected) = -5.4133 eV (-5.4133 eV/atom) Correction = 0.0000 eV (0.0000 eV/atom) Energy (Final) = -5.4133 eV (-5.4133 eV/atom) Energy Adjustments: None Parameters: Data:
4.定义反应方程式并计算反应能
定义第一个反应:反应物为Li和Li3PS4,生成物为Li3P和Li2S,计算反应能
Caculated 8 Li + Li3PS4 -> Li3P + 4 Li2S Reaction energy = -18.11612066404043 kJ mol^-1
<function print>
定义第二个反应:反应物为Li和Li3PS4,生成物为LiP和Li2S,计算反应能
Caculated 6 Li + Li3PS4 -> LiP + 4 Li2S Reaction energy = -454.2896983267883 kJ mol^-1
<function print>
定义第三个反应:反应物为Li和Li3PS4,生成物为Li3P7和Li2S,计算反应能
Caculated 38 Li + 7 Li3PS4 -> Li3P7 + 28 Li2S Reaction energy = -1546.2120547856664 kJ mol^-1
<function print>
定义第四个反应:反应物为Li和Li3PS4,生成物为LiP7和Li2S,计算反应能
Caculated 36 Li + 7 Li3PS4 -> LiP7 + 28 Li2S Reaction energy = -1954.0343558785878 kJ mol^-1
<function print>
定义第五个反应:反应物为Li和Li3PS4,生成物为P和Li2S,计算反应能
Caculated 5 Li + Li3PS4 -> P + 4 Li2S Reaction energy = -757.0471304616628 kJ mol^-1
<function print>
5. 总结:
本文以Li3PS4和Li反应为例,介绍了如何在pymatgen中进行反应能的计算,读者可以基于上述数据集尝试计算Li-Co-O-P-S体系中其他的化学反应,以加深理解。







