Homepage

Transfer

Note In Ecolego 6, transfer coefficients and transfers are merged into one block. You now define that a transfer should be multiplied by the source compartment by selecting the TC checkbox in the value page.

Represents the transfer of quantities of materials between compartments. It defines the quantity of the materials that is subtracted from a source/sink or compartment block and added to a destination compartment or source/sink block.

Transfers can be made discrete (instantaneous) by assigning a discrete event.







Creating a transfer

From the Projects window

  • Expand the Project to which you wish to add the expression by clicking the + symbol next to it. Right-click on ‘Blocks’, or a sub-system in ‘Blocks’, and select Transfer from the pop-up menu, or

  • Right click a compartment or source/sink in the project tree and select Connect to | … from the popup menu.

From the Matrix window

  • Right click the off-diagonal cell in the same row as the source and in the same column as the target and select Transfer from the the pop-up menu, or

  • Right click a compartment or source/sink in the matrix and select Connect to | … from the popup menu.

From the Blocks window

  • Place the mouse cursor over the table and right-click on it. Select New | Transfer from the pop-up menu, or

  • In the title bar, select Transfer from the Type drop-down list and click on the New button, or

  • Right click a compartment or source/sink in the table and select Connect to | … from the popup menu.

Editing a transfer

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 Edit button, or by double-clicking the right-most “validation” column of the block.

The block editor has three tabs:

Properties

This page lets you edit basic properties such as name, sub-system and base unit. See editing properties for more information.

Appearance

This page lets you edit the visual properties of the block in the matrix window and graph window. See editing appearance for more information.

Values

Note When entering an expression, you can also enter names of objects that are not yet created and let Ecolego use automatic object creation to define them.

Note that the dimension and index list of a transfer block is derived from the dimension and index lists of it’s source and target compartments. The transfer will only have the indices that are shared by the source and target.

Data - This table lets you specify the transfer expression and other index specific properties.

  • Indices - For blocks that are non-scalar, the first columns will specify indices from the index lists. This allows you to specify different expressions for different indices. The top row is named “default” and can be used when the same value should be set for all indices.

  • Expression - The expression can contain any number of parameters, blocks and functions. The Expression editing tool can be used to quickly find available functions and objects to use in the expression. Also refer to expression syntax for details on mathematical format and how to specify conditions.

  • TC - Transfer coefficient. Check this box if the expression given should be multiplied by the source compartment.

  • Event - Select a discrete event to make the transfer discrete (instantaneous). Note that you must first create a discrete event block.

  • Information - By using the Table control button you can display more columns that will help you document your model.

See also