how to build a model in simulink
2 views (last 30 days)
Show older comments
I am trying to implement an ageing model equation of a battery in Simulink to see the capacity loss(Q_loss).
my equation is Q_loss=B*exp(-E_a/RT)*(A_h )^Z. Qloss is the percentage of capacity loss.
B,E_a and Z are the parameter coefficients. R is the gas constant and T is the temperature.
I have the values of Q_loss and A_h,now my question is should i extract the parameters using these values and put them in my Simulink model? if I do like that I will get Q_loss as a single value.
but I want to see how capacity loss is varying, in that case, how can I do that?
find the attached files for better understanding.
any thoughts and help are much appreciated.
1 Comment
Sam Chak
on 28 Sep 2022
The temperature T (after division by R and then multiplied by T) is not provided.
Data = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1138180/cycling_dataset.question.xlsx')
in = Data.QDischargePerCycle_mah;
out = Data.QlossInPercentage;
plot(in, out, '.'), grid on
Answers (1)
Ananda Sankar Chakraborty
on 28 Sep 2022
Hi Sandeep,
At a high-level there are two approaches:
- The first one involves doing everything within Simulink. The Parameter Estimator tool should help with this. Here are shipped examples on Importing and Preprocessing Experiment Data (using GUI) and Estimating Model Parameter Values (using GUI) that should help you understand how to use this tool. For this you will need a Simulink Design Optimization license.
- The second involves leveraging MATLAB Math toolboxes. There are few functionalities here including using fit (Curve Fitting Toolbox) and/or fsolve (Optimization Toolbox). This MATLAB Answer lists a few available options along with custom code provided by the community for the estimation problem.
Do feel free to choose the option that best fits your needs from these! Hope this helps.
0 Comments
See Also
Categories
Find more on Manual Performance Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!