how to build a model in simulink
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
Sam Chak
2022-9-28
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
回答(1 个)
Ananda Sankar Chakraborty
2022-9-28
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Manual Performance Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!