Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Battery Parallel Connection

Battery Parallel Connection

Hello All,

I created a Modelica block of a battery which takes as input the current and the SOC. In particular, I modeled the positive and negative pins of this battery block using the partial model OnePort from the MSL in which the missing equation is v=voltage, where voltage is the battery voltage obtained from the electrochemical equations inside the battery block giving (so far) a constant current.

If I connect them in in series, the model works but it doesn't in parallel. The error I got is: "An independent subset of the model has an imbalanced number of equations and variables).

Do you know a way to overcome this error?
Is it possible that the error is in the way OnePort works, in fact for the connection in series I always connect positive and negative pin whereas in the parallel connection I connect pos with pos and neg with neg pins?

Thank you so much in advance, it is really important for me to make this work!

There are 0 guests and 0 other users also viewing this topic