How to create a 2-RC circuit in SOC Estimator (UKF) block?

14 views (last 30 days)
Hi, I want to change the SOC Estimator (UKF) block in Simulink with a 2-RC circuit instead of a 1-RC circuit. For this is use the simscape battery toolbox.
The states would be x = [SOC, V1, V2, R0], and the output is y = Vocv - V1 - V2 - R0*I.
I have tried to update the state function (see picture below) and measurement function, but I keep receiving errors that my input values don't match up. This is understandable, as I am trying to change the number of inputs from 3 to 4, but I don't know how to resolve this problem.
I really appreciate any tips that you might have to solve this issue. Thank you.

Accepted Answer

Sanchari
Sanchari on 18 Sep 2023
Hello Lotte,
I understand that you want to change the SOC Estimator (Adaptive Kalman Filter) block in Simulink to a 2-RC circuit instead of a 1-RC circuit. However, this is not possible using the SOC Estimator (Adaptive Kalman Filter) block as it is modelled to work with a 1-RC circuit.
You can try other methods to calculate SOC by referring to the following documentation:
You can further refer the following documentation and File Exchange function:
  1. SOC Estimator (Adaptive Kalman Filter): https://www.mathworks.com/help/simscape-battery/ref/socestimatoradaptivekalmanfilter.html?searchHighlight=SOC%20voltage&s_tid=srchtitle_support_results_9_SOC%20voltage
  2. State of Charge Estimation Function based on Kalman Filter: https://www.mathworks.com/matlabcentral/fileexchange/90381-state-of-charge-estimation-function-based-on-kalman-filter?s_tid=answers_rc2-2_p5_MLT
Hope this helps!

More Answers (0)

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!