This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
compartment [2021/09/27 15:28] mina [Values] |
compartment [2023/02/13 16:56] (current) daria [Compartment] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Compartment ====== | ====== Compartment ====== | ||
- | A compartment is a [[Block|block]] that acts as an integrator of quantities of [[Material|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|transfer]] blocks. | + | A compartment is a [[Block|block]] that acts as an integrator of quantities of [[Material|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|transfer]] blocks. |
+ | |||
- | Note that the [[compartment|compartment]] block is only available with the [[ODE_toolbox|ODE toolbox]]. | ||
===== Creating a compartment ===== | ===== Creating a compartment ===== | ||
Line 9: | Line 10: | ||
From the [[Projects_window|Projects window]] | From the [[Projects_window|Projects window]] | ||
- | * Expand the Project to which you wish to add the compartment by clicking the + symbol next to it. Right-click on ‘Blocks’, | + | * Expand the Project to which you wish to add the compartment by clicking the + symbol next to it. Right-click on ‘Blocks’, |
- | From the [[Matrix_window|matrix | + | From the [[Matrix_window|Matrix |
* Right click an empty diagonal cell of the matrix and select **Compartment** from the the pop-up menu. | * Right click an empty diagonal cell of the matrix and select **Compartment** from the the pop-up menu. | ||
- | From the [[Blocks_window|Blocks | + | From the [[graph_window|Graph window]] |
+ | * Place the mouse anywhere over the area and right click on it. Select **Compartment** from pop-up menu. | ||
+ | |||
+ | From the [[Blocks window|Blocks window]] | ||
* Place the mouse anywhere over the area of this window and right-click on it. Select **Create | Compartment** from the pop-up menu, //or// | * Place the mouse anywhere over the area of this window and right-click on it. Select **Create | Compartment** from the pop-up menu, //or// | ||
* In the title bar, select **Compartment** from the **Type** drop-down list and click on the {{: | * In the title bar, select **Compartment** from the **Type** drop-down list and click on the {{: | ||
Line 22: | Line 26: | ||
===== Editing a compartment ===== | ===== Editing a compartment ===== | ||
- | |Note|Most block properties can be edited directly in the [[Blocks_window|blocks | + | |Note|Most block properties can be edited directly in the [[Blocks_window|Blocks |
- | The block editor is shown by right-clicking the block in a window and selecting **Edit**. In the [[Blocks_window|Blocks window]], you can also show the block editor by selecting the block and clicking the {{: | + | The block editor is shown by right-clicking the block in a window and selecting **Edit**. In the [[Blocks_window|Blocks window]], you can also show the block editor by selecting the block and clicking the {{: |
- | The block editor has three tabs: | + | The block editor has five tabs: |
==== Properties ==== | ==== Properties ==== | ||
- | This page lets you edit basic properties such as name, sub-system and base unit. See [[Editing_properties|editing properties]] for more information. | + | This page lets you edit basic properties such as name, |
==== Appearance ==== | ==== Appearance ==== | ||
- | This page lets you edit the visual properties of the block in the [[Matrix_window|matrix | + | This page lets you edit the visual properties of the block in the [[Matrix_window|Matrix |
==== Values ==== | ==== Values ==== | ||
Line 41: | Line 45: | ||
**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. | **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. | ||
+ | |||
+ | **Settings** button allows enable or disable handling radioactive decay. | ||
+ | |||
+ | **Headers** - You can select way to display data. | ||
**Data** | **Data** | ||
* **// | * **// | ||
- | * **Initial | + | * **Initial |
* **dy/dt** - Lets you add extra term to the differential equation of the compartment. This feature is useful, for instance, for a simple integration of values where it is not logical to modify the state of the compartment through transfers. | * **dy/dt** - Lets you add extra term to the differential equation of the compartment. This feature is useful, for instance, for a simple integration of values where it is not logical to modify the state of the compartment through transfers. | ||
* **Non-negative** – If set, the inventory of the compartment cannot be negative. //Default = “disabled”// | * **Non-negative** – If set, the inventory of the compartment cannot be negative. //Default = “disabled”// | ||
- | * **Abs. | + | * **Abs.tol.**– Sets the absolute error tolerance for the given material. If empty, the “global” value set in simulation settings is used. //Default = '' |
- | * **Information** - By using the [[Table_control_button|Table | + | * **Author**- Allows to specify author of the compartment. May be usefull during the quality |
+ | * **Referece**- Allows to specify of literature source of the equation.May be usefull during the quality control of the model and for other users of the model. | ||
+ | * **Comment**- Allows to put notes related ti this compartment. | ||
===== See also ===== | ===== See also ===== | ||
Line 57: | Line 67: | ||
* The [[Matrix_window|Matrix window]] | * The [[Matrix_window|Matrix window]] | ||
* The [[Graph_window|Graph window]] | * The [[Graph_window|Graph window]] | ||
+ | * The [[transfer|Transfer]] | ||