Why does the current in my battery simulation appear as negative?
조회 수: 9 (최근 30일)
이전 댓글 표시
I have a simulation set up after following the steps in the battery builder guide, with the parameters adjusted to my needs. Why does the current appear as negative in the simulation?
댓글 수: 0
채택된 답변
TED MOSBY
2025년 5월 9일
편집: TED MOSBY
2025년 5월 13일
Hi Zachary,
Current appears as negative because of the signing convention, so there is nothing wrong in your model.
For every two‑terminal electrical block in Simscape, current is defined as positive when it flows into the block’s first (+) conserving port and out of the second (–) port. In the BatteryEquivalentCircuit and all the BatteryBuilder cells, that first port is the cell’s positive terminal. When the pack is charging current flows into that + port, so the reported I is positive; when the pack is discharging current leaves the + port, so I is negative.
So the negative sign is expected whenever the battery is delivering power. If you prefer the oppsite sign, you may swap the sensor orientation (flip the Current Sensor or the measurement port)
Hope this helps!
댓글 수: 3
TED MOSBY
2025년 5월 12일
Could you share your model? It will be helpful for me to answer your query, thanks!
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Choose and Parameterize Blocks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!