different simulation time steps in system and subsystem
显示 更早的评论
Hello,
I have a very complicated model for a house connected to an air conditioner, due to the complexity of the ODEs I'm using ode15s. The air conditioner is a subsystem and is enabled when cooling is required.
I would like to have different time steps when solving the ODEs from each block. For example when the air conditioner if off the time step for solving the main system (the house) could be large (every 15 minutes for example) but when the air conditioner is activated, due to the complexity of the ODEs in this model the solver requires a time step of 1 sec.
Is this possible? I've tried to use the "auto" in the time step simulation options but it chooses a large time step and when the air conditioner is on I get an error message. On the other hand, when I use a 1 sec time step the whole simulation is super super slow, it takes like 12 hrs to run 10 days... and I need to simulate 365 days!!
help me please!! thanks!
Elsa
1 个评论
Kaustubha Govind
2013-7-22
Have you configured sample-times for each set of blocks/subsystems appropriately? For example, when you turn on sample-time colors, do you see the various subsystems highlighted in the color?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 General Applications 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!