![]() |
SLIDE
3.0.0
A simulator for lithium-ion battery pack degradation
|
Variables | |
model = pybamm.lithium_ion.SPM() | |
params = slide_defaults.get_default_param() | |
slide_OCV | |
experiment | |
sim = pybamm.Simulation(model, parameter_values=params) | |
start_time = time.time() | |
solution = sim.solve(t_eval=np.linspace(0, 3600, 4000)) | |
end_time = time.time() | |
t = solution["Time [s]"] | |
V = solution["Terminal voltage [V]"] | |
overpotential = solution["X-averaged battery reaction overpotential [V]"] | |
ocv = solution["X-averaged battery open circuit voltage [V]"] | |
Tc = solution['Cell temperature [C]'] | |
surf_p = solution['Positive particle surface concentration'] | |
test_single_cell_SPM.end_time = time.time() |
test_single_cell_SPM.experiment |
test_single_cell_SPM.model = pybamm.lithium_ion.SPM() |
test_single_cell_SPM.params = slide_defaults.get_default_param() |
test_single_cell_SPM.slide_OCV |
test_single_cell_SPM.solution = sim.solve(t_eval=np.linspace(0, 3600, 4000)) |
test_single_cell_SPM.start_time = time.time() |
test_single_cell_SPM.surf_p = solution['Positive particle surface concentration'] |
test_single_cell_SPM.t = solution["Time [s]"] |
test_single_cell_SPM.Tc = solution['Cell temperature [C]'] |
test_single_cell_SPM.V = solution["Terminal voltage [V]"] |