Battery ECM in simscape does not allow pole reversal

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.

Antworten (1)

Vanita
Vanita am 18 Aug. 2025

0 Stimmen

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!

Kategorien

Mehr zu Simscape Battery finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2024b

Gefragt:

am 12 Aug. 2025

Beantwortet:

am 18 Aug. 2025

Community Treasure Hunt

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

Start Hunting!

Translated by