how to build a model in simulink
조회 수: 1 (최근 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!