Calculate the SOC (State of Charge)
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
Sam Chak
2024-4-17
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
2024-4-17
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
回答(1 个)
Sayan
2024-4-29
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Energy Storage 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!