How to change ramp rate of the signal multiple times during simulation ?

6 次查看(过去 30 天)
Hi,
I have tried to implement a cold ramp rate for a certain plant in Simulink. Meaning that when the plant has been shut down for more than 3 hours, the start up will take longer. I have implemented this with If- and If action -blocks that include dynamic rate limiter -block. However, there is a problem with the simulation, it only changes the rate of change of the signal for the first cold start up, and not all of them. I have attached figures of the system behaviour. In this example, there are two time instances where the plant should go through a cold start-up. In the first picture, there's the if action block that causes the issue and its contents. The following figures are screenshots of the scopes that are visible in the if action block. Finally, there's a figure of the plants load throughout the simulation. In that figure, you can see that at timestep 51, there's slower increase of load than at timestep 82, even though these should look similiar. Any suggestions on how to fix this?
  2 个评论
Sam Chak
Sam Chak 2023-2-3
If possible, please provide a mathematical function that describes the ramp rate signal.
Otherwise, can you sketch desired the ramp rate signal versus the time?
We might be able to suggest a piecewise function for the cold start and warm start conditions.
Elisa Konttila
Elisa Konttila 2023-2-10
编辑:Elisa Konttila 2023-2-10
thank you for the response.
I used the mathematical function for the ramp rate from Mathworks website:
Here the u(i) is the value that the model suggests and y(i-1) is 0. t(i) is 2 as I want the signal to take two time steps to reach the value that is suggested by the model. t(i-1) is 0.
From the last figure you can see the sketch for the desired ramp-up at time step 51. Wheras at time step 82, the signal goes from 0 to the suggested value at one time step, which is not the desired result.

请先登录,再进行评论。

回答(1 个)

Sarvesh Kale
Sarvesh Kale 2023-4-19
You can use the signal builder block or the signal editor block to change the ramp rate of the signal in a deterministic manner

类别

Help CenterFile Exchange 中查找有关 General Applications 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by