Hello everyone, I’m trying to simulate battery charging with no cycles but it always starte from 4.2V . If i try to hold at 3.3V for example it gives me a vertical curve untile 4.2V
Hi @Salah, your simulation starts with a fully charged cell at 4.2 V. The following code begins the simulation with an initial voltage of 3.3 V:
import pybamm
experiment = pybamm.Experiment([
"Rest for 10 minutes",
"Charge at 1C for 1 hours or until 4.2 V",
])
model = pybamm.lithium_ion.DFN()
sim = pybamm.Simulation(model, experiment=experiment, solver=pybamm.IDAKLUSolver())
sim.set_initial_soc("3.3 V")
sim.solve()
sim.plot(output_variables=["Voltage [V]"])
Thank you Marc for your answer, I’m still new with pybamm and battery simulations in generals so i didn’t know about this command sim.set_initial_soc("3.3 V")