Sectors allow you to organize your model into different parts and to isolate those parts for Partial Simulation. They are not as powerful as Modules (described in detail in Working with Modules) but can be very helpful for localized, and often temporary, changes to help you understand the sources of model behavior.
Use sectors to group functionally-related building blocks together. This allows you to run simulations using only those building blocks, separate from the rest of the model.
When you run a model that contains sectors, you can
Click the diagram to place the sector.
Notes: A sector can't overlap another sector.
You can place a sector over existing building blocks.
The primary use for sectors is to group functionally-related chunks of model structure. This allows you to run only those building blocks together, separate from the rest of the model.
Tip: Choose which sectors to run from the Partial Simulation Setup tab of the Model Settings panel.
To add a building block to a sector, drag it into the sector. You can also move or resize an existing sector so that it encloses the building blocks you want to include.
Note: To be considered part of the sector:
A building block must be completely enclosed within the sector's frame. All building blocks must be placed in the sector while it's unlocked.
To select all blocks and objects within a sector, click the Select All button in the upper left corner of the sector.
Tip: Use the Select All button to check which blocks are included in the sector.
When a sector is locked, any building block that's part of the sector will retain its position relative to the sector when you move or copy the sector. In addition, if you resize a locked sector, you can't decrease its size to the point where any of the contained building blocks aren't fully contained within the sector's borders.