import pybamm #在python中引入电池电化学模拟代码库
model = pybamm.lithium_ion.DFN()
#调用Doyle-Fuller-Newman (DFN) 锂离子电池模型
sim = pybamm.Simulation(model) # 仿真
sim.solve([0, 3600]) #求解
sim.plot() #绘制主要的参数曲线
# 1. Doyle-Fuller-Newman (DFN) model电化学模型简单调用
import pybamm #在python中导入电池电化学模拟代码库
model = pybamm.lithium_ion.DFN() #调用Doyle-Fuller-Newman (DFN) 锂离子电池模型
Electrolyte concentration
Electrolyte concentration [Molar]
Electrolyte concentration [mol.m-3]
Electrolyte current density
Electrolyte current density [A.m-2]
Electrolyte flux
Electrolyte flux [mol.m-2.s-1]
Electrolyte potential
Electrolyte potential [V]
Electrolyte tortuosity
Gradient of electrolyte potential
Gradient of negative electrolyte potential
Gradient of positive electrolyte potential
Gradient of separator electrolyte potential
Negative electrolyte concentration
Negative electrolyte concentration [Molar]
Negative electrolyte concentration [mol.m-3]
Negative electrolyte potential
Negative electrolyte potential [V]
Negative electrolyte tortuosity
Positive electrolyte concentration
Positive electrolyte concentration [Molar]
Positive electrolyte concentration [mol.m-3]
Positive electrolyte potential
Positive electrolyte potential [V]
Positive electrolyte tortuosity
Separator electrolyte concentration
Separator electrolyte concentration [Molar]
Separator electrolyte concentration [mol.m-3]
Separator electrolyte potential
Separator electrolyte potential [V]
Sum of electrolyte reaction source terms
Sum of negative electrode electrolyte reaction source terms
Sum of positive electrode electrolyte reaction source terms
Sum of x-averaged negative electrode electrolyte reaction source terms
Sum of x-averaged positive electrode electrolyte reaction source terms
X-averaged battery electrolyte ohmic losses [V]
X-averaged electrolyte concentration
X-averaged electrolyte concentration [Molar]
X-averaged electrolyte concentration [mol.m-3]
X-averaged electrolyte overpotential
X-averaged electrolyte overpotential [V]
X-averaged electrolyte potential
X-averaged electrolyte potential [V]
X-averaged negative electrolyte concentration
X-averaged negative electrolyte concentration [mol.m-3]
X-averaged negative electrolyte potential
X-averaged negative electrolyte potential [V]
X-averaged negative electrolyte tortuosity
X-averaged positive electrolyte concentration
X-averaged positive electrolyte concentration [mol.m-3]
X-averaged positive electrolyte potential
X-averaged positive electrolyte potential [V]
X-averaged positive electrolyte tortuosity
X-averaged separator electrolyte concentration
X-averaged separator electrolyte concentration [mol.m-3]
X-averaged separator electrolyte potential
X-averaged separator electrolyte potential [V]
3. 可以对模型默认参数进行简单修改
以上代码运行结果如下: