필터 지우기
필터 지우기

Changing battery internal resistance/output during simulation

조회 수: 15 (최근 30일)
Sharul Baggio
Sharul Baggio 2023년 2월 8일
답변: Jasvin 2023년 2월 10일
Hi there!
Shown below is my battery parameters mid simulation. What I am trying to obtain is for the internal resistance to vary mid simulation at specific load requirement of my system. Thinking, it will be similar to a constant block where it's changable during the simulation.
Is there any way around to be able to switch on or off or varying the battery power at different system load requirements?
For the engine, a switch is used to switch the on/off properties at the varried load.
However, for the battery because it is a electrical line (blue line), I am unsure how to work with this instead and there's also the problem of it having a positive and negative input output.
Thank you to whoever may help me on this!

채택된 답변

Sabin
Sabin 2023년 2월 9일
It is not possible to directly change the battery parameters during run-time in Simscape models. As this is a physical system might not actually be realistic to do so and we might run into issues. We can off course model battery aging and that would update the parameters in a meaningful way.
One thing that can be done is to use Simscape run-time parameters which allow you to skip recompiling the model when you change parameter values. Alternatively, if you just want to change the load might be an option to use a Controlled Voltage Source or Variable Resistor/Capacitor/Inductor blocks. I hope this helps.
  댓글 수: 1
Sharul Baggio
Sharul Baggio 2023년 2월 10일
Thank you Sabin! I have solved partially what I desired, but instead of using a variable resistor, I just included a simscape switch, to trigger close or open circuit at my required limits.
However, I will have a look at your suggestion and see if it offers more control.

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

추가 답변 (1개)

Jasvin
Jasvin 2023년 2월 10일
Assuming that you can use a resistor component as part of the battery’s internal resistance, you can directly use the “Variable Resistor” block along with the “Simulink-PS Converter block, so a generator signal like the “Pulse Generator” can be connected to the Simulink-PS Converter and then to a Variable Resistor as shown in the below diagram.

카테고리

Help CenterFile Exchange에서 Parameterization Methods에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by