Why does the current in my battery simulation appear as negative?

9 ビュー (過去 30 日間)
Zachary
Zachary 2025 年 5 月 9 日
コメント済み: Zachary 2025 年 5 月 14 日
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?

採用された回答

TED MOSBY
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
TED MOSBY 2025 年 5 月 12 日
Could you share your model? It will be helpful for me to answer your query, thanks!
Zachary
Zachary 2025 年 5 月 14 日
Here you go, thank you for the assistance!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeChoose and Parameterize Blocks についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by