I have already designed a battery in OpenModelica which is a function of SOC and now I want to design the same model based on Python coding. I want to give the model a current varying load and want to check the voltage behavior of a battery.
I am trying to find out the SOC by colomb counting method.