필터 지우기
필터 지우기

Run Current Profiles on a cell and only receive simulated results

조회 수: 36 (최근 30일)
Katarina Rodak
Katarina Rodak 2023년 8월 1일
답변: Javier Gazzarri 2023년 8월 9일
I have parameterized a cell based on lab data and would now like to simulate a voltage response based on a current profile. I think I was able to do it once as shown in the picture but I'm having trouble figuring out the settings. Basically I want the current profile (already known) with the simulated voltage based on parameters that were optimized from previous data. I am also interested in known how to export the voltage_sim into an array/csv file in addition to the graph.
I do keep seeing the pop up there is no experiment data for 'voltage_sim,' edit the experiment to specify data for 'voltage_sim.'
  댓글 수: 3
Katarina Rodak
Katarina Rodak 2023년 8월 1일
Running into another issue/question - I changed the current demand (basically increasing by x3) and it didn't change the voltage response. The mean of the voltage response is just the nominal voltage. I can't tell if my model just isn't updating or if something else is going on.
Javier Gazzarri
Javier Gazzarri 2023년 8월 8일
Hi Katerina,
To export a signal to the workspace, please click on it, hover over it and click on the "wifi" icon. This will log the signal under the name you've given and create a workspace variable at the end of the simulation. The Simulink Configuration Parameters has a Input/Output section where you can specify the variable data type, un your case an array.
To your second question - If you are running this from the Simulink Design Optimization UI, please bear in mind that it has its own workspace which is different from the base workspace, so changes done on the latter will not affect the former unless you explicitely navigate to the signal in the SDO UI and edit it.
Please send me your model (if you are allowed to do so) if this does not resolve your problem, and I'll take a look on my side.
Best regards,
Javier

댓글을 달려면 로그인하십시오.

답변 (2개)

Javier Gazzarri
Javier Gazzarri 2023년 8월 1일
Hello Katarina,
The task you are describing is the validation of the estimated parameters. You need to specify the validation current profile as such in the Parameter Estimation app. Please see the model here where I created an example including both estimation and validation. syntheticData
Please follow these steps:
1) open slx model and run it to see a simulation prior to parameter estimation
2) open Parameter Estimation from the shortcut in the bottom center of the canvas and run the estimation
3) Go to Select Experiments and see how I assigned the validation experiment
4) Run Validation from the VALIDATION tab
Please let me know how it goes.
Best regards,
Javier
  댓글 수: 3
Javier Gazzarri
Javier Gazzarri 2023년 8월 8일
편집: Javier Gazzarri 2023년 8월 8일
Hello Katarina,
It is not necessary for the validation test to be of any specific length. Its purpose is to evaluate how robustly your parameters are able to predict a response to a stimulus the model never saw before. Ideally it should exercise the model throughout a wide range of states so as to make sure it works well under any condition within the intended use.
Hope this helps and glad you enjoyed our videos. Thank you for your kind words.
Javier
Katarina Rodak
Katarina Rodak 2023년 8월 9일
Hi Javier,
I think I understand. Is there a way to force it to run for the whole time step? Basically, I have several current profiles that I would like to run on my cell (already parameterized from lab data) but I don't have a voltage to validate against; I'm just interested in the voltage response.
Katarina

댓글을 달려면 로그인하십시오.


Javier Gazzarri
Javier Gazzarri 2023년 8월 9일
Hi Katarina,
Certainly. If you need to run one or several current profiles through your model, please connect a controlled current source to the battery block and feed it with an "In" block. You will have to connect a S-PS converter downstream of it.
Then go to MODELING->Model Settings->Data Import/Export, and select Input by checking on the box next to it. In the field on the right, write the Nx2 input array as [time, current].
Simulink will run the sim using this current and for the time specified by "time".
Best regards,
Javier

카테고리

Help CenterFile Exchange에서 Prepare Data에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by