Stepping Simulation of an Example Code (Simulating Battery Pack using Drive Cycle) stuck at 0% with no indication of Simulation Rate. #218
-
Hi. I was trying to run one of the Example Codes present in the liionpack Website (Link: https://liionpack.readthedocs.io/en/latest/examples/05%20Drive%20cycles/). On trying to run the Code, the simulation doesn't start at all and returns a warning: "warn("Matrix is exactly singular", MatrixRankWarning)". How do I rectify this? The Code that I ran: `import liionpack as lp pybamm.set_logging_level("INFO") drive_cycle = pd.read_csv( with plt.rc_context(lp.lp_context()): experiment = pybamm.Experiment( parameter_values = pybamm.ParameterValues("Chen2020") netlist = lp.setup_circuit(Np=4, Ns=1, Rb=1e-4, Rc=1e-3, Ri=5e-2, V=4.0, I=1.0) output_d = lp.solve( lp.plot_pack(output_d) The content in the terminal that I am getting on running the code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This runs ok for me with latest versions of pybamm and liionpack. Check these are up to date and your drive cycle is not corrupted some how. I noticed you changed the file name. I used the one in the PyBaMM folder input directory |
Beta Was this translation helpful? Give feedback.
This runs ok for me with latest versions of pybamm and liionpack. Check these are up to date and your drive cycle is not corrupted some how. I noticed you changed the file name. I used the one in the PyBaMM folder input directory