Different results giving same inputs #4225
Replies: 3 comments 1 reply
-
The biggest problem was this line
which should be
Another problem was using np for number of batteries in parallel which replaces the import of numpy. It took me a while to figure out what you are doing with number of batteries. I would suggest wrapping the solving bits into a function that accepts a simulation and a current then returns the simulation or solution. This seems to work now
|
Beta Was this translation helpful? Give feedback.
-
also you might want to check out liionpack for solving pack problems https://liionpack.readthedocs.io/en/latest/ |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your help!! (Update: I have tried changing the name of the variables, including those of the simulation object within my function but it still gives the initial problem even though the values of the initial currents provided by my 'initial_current_guessing' function are the same as those used before.)
|
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I am trying to simulate a 3-cell parallel of the Chen2020 type. I wanted to pay attention to the first step.
I built a function that calculates the distribution of the initial currents in the parallel and gives the values you see in the first code, i.e. [[3.2500733514010998, 0.21684771789384336, -1.466921069294921]] respectively for cell 1, cell 2 and cell 3.
Then I simulated the first step for the three cells that have different initial SOCs.
With regard to the bulk open-circuit voltages, the results are as follows:
Since it didn't make sense to me that cell 3, with a negative current discharged (voltage dropping) I tried simulating the same thing myself in another code (the second one you can find).
Actually providing the same current the voltage for the first step of cell 3 comes out like this:
V_bulk = array([4.0420787, 4.0424485]) # [Cell 3]
and correctly charges.
I don't understand why by providing the same values the simulations give two different results.
Can anyone answer me? Thank you
First code
Second code
Beta Was this translation helpful? Give feedback.
All reactions