Error in battery charge and discharge Simulink model

6 views (last 30 days)
Temperature adjusted first polarization resistance must be greater than zero.
I am getting this error in the simulink model ( available on - https://in.mathworks.com/help/simscape-battery/ug/battery-constant-current-constant-voltage.html) inspite of having the polarization value greater than zero, I am attaching the workspace for the reference and its 'R1_ mat' in the work space.
Other parameters in the workspace such as RO ( thermal resistance), T_vec ( Temperature in kelvin), Vo_mat ( OCV value), tau1_mat ( is the first time constant).
In the relay setting switch on and switch off point are 4.1 and 3 and cell capacity is 2.6 Ahr
Please help fixing me this error.
  3 Comments
Chandradeep
Chandradeep on 2 Sep 2024
Edited: Chandradeep on 2 Sep 2024
Hi Umar,
I hope this links opens, I have used a simulink model which was available on the matlab page ie. Battery charging and discharging model.
https://se.mathworks.com/help/simscape-battery/ug/battery-constant-current-constant-voltage.html
Umar
Umar on 2 Sep 2024
Hi @ Chandradeep,
The code shared by you was deleted on this form, could you share code that was causing errors and utilizing Final_Workspace.mat binary file. I tried opening the link and it worked fine. Also, provide some more details regarding error in the simulink model

Sign in to comment.

Answers (1)

Aastha
Aastha on 5 Sep 2024
I see that you are getting the error “Temperature adjusted first polarization resistance must be greater than zero”.
This error is related to the way the Battery (Table-Based) is configured. There is a parameter called 'Extrapolation method for all tables' which in is set to 'Linear'. If you set this parameter to 'Nearest', you will not get the above-mentioned error.
I hope this helps!

Categories

Find more on Energy Storage in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!