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!