The connector allows you to pair one or more outputs of a sub-system with inputs in another sub-system. When a block which is marked as an input is connected to an output it will take it’s values from the output block. In effect, it would be like replacing the id of the (input) block in all equations with the id of the output block.
When several outputs are connected to one input, their contributions are summed, as described in the example below.
To manually add a connector
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.
A dose-response model is implemented as a modularized sub-system. The input to the dose-response module is the concentration. The concentration can be given either directly as a time-series, or it can be provided by another model.
The modeller creates a lookup table in the sub-system, named Concentration. This way a user can enter the concentration values directly.
To be able to connect the dose response module to other modules, a model input block is added to it’s sub-system and the Concentration lookup table is selected as an input.
A colleague of the modeller is an expert in atmospheric modelling and has created two modules, one for indoor air and one for outdoor air. The end-point for both of these modules is the concentration of a contaminant X. In the indoor module, the endpoint is is an expression named Concentration, and in the outdoor module there is a compartment named the same.
The Concentration blocks in both atmospheric modules have been marked as outputs by adding a model output in each module and selecting Concentration.
All the modules are put in the module library.
An end-user can now quickly assemble a model for estimating the effect for a person breathing outside or indoor air by adding first an atmospheric module to an empty project, and then adding the dose response module. Because the modellers were careful when naming inputs and outputs, it is easy for the end-user to see which pieces go together. Actually, when adding a module from the library, Ecolego will automatically search the existing model for inputs/outputs with names that match those of the inputs/outputs of the new module and ask if the user want to connect them.
A typical scenario might be one where a person spends some time outdoors and some time indoors. One can also imagine other pathways, such as dermal exposure or exposure from ingestion. How can many multi-media modules be connected to the same dose response module?
There is no limitation on the number of connectors that connects to an input. When more than one output is connected to an input, the input receives the summed total of the outputs. This way several Concentration outputs can be connected to the Concentration input of the dose response module.