different simulation time steps in system and subsystem
Show older comments
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 Comment
Kaustubha Govind
on 22 Jul 2013
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?
Accepted Answer
More Answers (0)
Categories
Find more on General Applications in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!