Battery ECM in simscape does not allow pole reversal

6 vues (au cours des 30 derniers jours)
Victor
Victor le 12 Août 2025
Réponse apportée : Vanita le 18 Août 2025
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.

Réponses (1)

Vanita
Vanita le 18 Août 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!

Catégories

En savoir plus sur Simscape Battery dans Help Center et File Exchange

Produits


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by