This is an old revision of the document!
A compartment is a block that acts as an integrator of quantities of materials in a model. The quantity held within this block is calculated with a differential equation, where the input and output rates are defined by the transfer blocks.
Note that the compartment block is only available with the ODE toolbox.
From the Projects window
From the matrix window
From the Blocks window
Note | Most block properties can be edited directly in the blocks window. |
The block editor is shown by right-clicking the block in a window and selecting Edit. In the Blocks window, you can also show the block editor by selecting the block and clicking the button, or by double-clicking the right-most “validation” column of the block.
The block editor has three tabs:
This page lets you edit basic properties such as name, sub-system and base unit. See editing properties for more information.
This page lets you edit the visual properties of the block in the matrix window and graph window. See editing appearance for more information.
This page lets you specify initial conditions and other index specific properties. See Editing values for more information.
Dimension - You can specify the dimension of the block by using the Type drop down list. Depending on the dimension the index drop down lists are activated.
Data
<empty>