Problem with table-based battery, Simscape, simulink

Table-based Battery, Simscape, Simulink
Problem:
The start values for the SOC, V0 and R0 is 1x4 data points. Everytime we try to make it 1x5 or higher we get the message:
"Length of Terminal resistance, R0(SOC) must be equal to length of Vector of state-of-charge values, SOC."
Even thought the vectors are the same length.
How can we get more data points into the battery?
Setup:
  • Temperature dependent tables: No - do not tabulate over temperature
  • Current directionality: Enabled
  • Self-discharge: disabled
  • Extrapolation method for all tables: Nearst
  • Dynamics: None
Thank you in advance for your time

2 commentaires

I am having this exact issue; it only appears when current directionality is enabled.
I have disabled this in my model for now, but would like to be able to enable it in the future. I greatly appreciate any updates to Benedikte's question.
Any luck with this issue?

Connectez-vous pour commenter.

Réponses (1)

hamed AlBrashdi
hamed AlBrashdi le 4 Jan 2021

0 votes

A = [-b/J K/J
-K/L -R/L];
B = [0
1/L];
C = [1 0];
D = 0;
motor_ss = ss(A,B,C,D)

Catégories

En savoir plus sur Simulink dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by