Clear Filters
Clear Filters

Calculate the SOC (State of Charge)

2 views (last 30 days)
salima chaa
salima chaa on 17 Apr 2024
Answered: Sayan on 29 Apr 2024
Hello, I would like to calculate the SoC of this battery using Q without using filters, knowing that SoC = 1 - 1/c( int of I) But I don't know where I'm going wrong, can someone help me?
  4 Comments
Sam Chak
Sam Chak on 17 Apr 2024
I noticed that there are no constraints in the equation that bound the SOC response between 0 and 1. As a result, we can, in theory, conclude that the integration in Simulink is mathematically correct, even though the obtained result (Scope) may not match your expectations.
Could you please verify the differential equation once again to ensure its accuracy?
Sam Chak
Sam Chak on 17 Apr 2024
Educated guess
Ib = 4000; % approximation
socODE = @(t, x) Ib;
tspan = [0 1.25];
x0 = 1; % initial SOC
[t, x] = ode45(socODE, tspan, x0);
plot(t, x, '-o'), grid on, xlabel t, ylabel SOC

Sign in to comment.

Answers (1)

Sayan
Sayan on 29 Apr 2024
Hi salima chaa,
The SOC of the battery should remain between 0 to 1. It is hard to debug your model without the Simulink file. However, the possible reasons and their resolutions for the issue are provided below.
  • In the formula for SOC calculation you provided, the term "Crated" is the full charge capacity of the battery. Ensure you have selected "Finite" for the "Battery charge capacity" parameter and configured the "Cell capacity parameter". The Constant block with the value "2.6" in your model should be replaced with the cell capacity value in Coulomb. (1 Ah = 3600 Coulomb capacity).
  • If you do not need filtering in your "Derivative" block, change the value of coefficient "c" to 0 inside the block parameter.
I am attaching a sample Simulink model with a battery cell capacity of 50 Ah. It works fine for me.
You can go through the following documentation to learn more about the Battery block parameters and how to configure them.
Hope this helps in resolving the issue.

Categories

Find more on Propulsion and Power Systems in Help Center and File Exchange

Tags

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!