How to set initial values for the start of a feedback loop in Simulink

15 次查看(过去 30 天)

Hi, there! I am trying to incorporate a thermal model of electric motor into the full vehicle model. The thermal model takes losses in crucial components of EM as inputs and outputs temperatures in these crucial components. The outputs(temperatures) are then fed to a lookup table downstream containing losses at different temperatures and these losses are then fed back to the thermal model upstream. I am quite new to simulink and wonder how I can set some initial temperatures to the look-up table for the 1st simulation time step to kick it off?

Here is a schematic of the model I spoke of:

Incidentally, I would appreciate it if some simulink expert can propose some essential simulink tutorial for me so that I'll be able to get the hang of this simulation tool in the shortest time possible. I am fairly acquainted with Matlab as a programming language and data analysis tool, but the sheer volume of simulink documentation is daunting. Thanks in advance for your help!

  3 个评论
Aquatris
Aquatris 2018-8-26
If you are using integral block in the thermal model, it does have a initial condition part where you can set it to any value you want and it will make sure model will output the initial value at t = 0.
Bohan Liu
Bohan Liu 2018-8-26
Hi! The thermal model is an analogous electric circuit(in the literature, the temperature difference is considered as potential difference/voltage, whilst the power loss/heat dissipation is analogous to current. Hence the the thermal model serves to output some voltage values when all necessary currents are given as inputs). I used simscape to implement the physical modelling of this electric/thermal circuit and will put it in a subsystem as was depicted in the sketch I provided above. All I need is the method to give, say two temperature values as initial input that act as trigger for the feedback loop, then the feedback loop can run on its own as some driving cycle is simulated.

请先登录,再进行评论。

采纳的回答

Dimitris Kalogiros
Dimitris Kalogiros 2018-8-26
A common and popular way to set initial conditions inside a closed loop is to put delay elements at the feedback path. Anyway, feedback loops are prone to "non-causality". So, placing delay elements, one can avoid such a phenomena (MathWorks names it as "algebraic loop")

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Choose and Parameterize Blocks 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by