Battery ECM in simscape does not allow pole reversal

6 views (last 30 days)
I want to simulate deep discharge of battery. Deep discharge is needed before recycling. My simulation does not work because Battery ECM does not allow negative voltage. How can I solve the following errror?
Error:Error compiling Simscape network for model battery_model.
Caused by:
['battery_model/Battery Equivalent Circuit']: Elements of Open-circuit voltage, OCV(SOC,T) must be greater than or equal to zero.

Answers (1)

Vanita
Vanita on 18 Aug 2025
Hi Victor,
The error you’re encountering, “OCV(SOC,T) must be ≥ 0,” occurs when your lookup table contains negative values or when SOC inputs extrapolate outside valid ranges.
To prevent this, maintain the State of Charge (SOC) within the valid range of 0 to1 by implementing saturation or cutoff logic, which terminates discharge as SOC approaches zero and avoids negative voltages or,
If you require to simulate deep discharge with negative OCV values, you will need to create a custom battery model in Simscape, please refer to the following MATLAB R2024b documentations:
Hope this works!

Categories

Find more on Simscape Battery in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!