What does "timescale" mean and its function in "examples/notebooks/Getting started/Tutorial 4-Setting parameter values.ipynb"? #2081
-
Hi there, I have a question about the function of "timescale" and "pybamm.t" in "examples/notebooks/Getting started/Tutorial 4-Setting parameter values.ipynb", and the related code is below. I cannot understand why "timescale" is needed in creating "current_interpolant", and it was generated by the previously-defined DFN model. The drive_cycle data "US06.csv" lasts for 600s, and the simulation time is set as 800s, so I am confused why the simulated result only lasts for 103.24s, which is shown in the figure below. Hope that someone can help me to understand it. Thanks a lot! `import pandas as pd # needed to read the csv data file parameter_values["Current function [A]"] = current_interpolant model = pybamm.lithium_ion.SPMe() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
timescale
is required becausepybamm.t
is dimensionless time but the interpolant is defined on dimensional time. In this case your simulation ends early because you hit the upper 4.2V cut-off. You could avoid this by increasing the "Upper voltage cut-off [V]" parameter