Creating materials
Like in Tutorial 2-Creating a compartment model, we will use Materials to model the contaminants. Open the Materials window and create the following Materials:
Name | Full name | Symbol |
---|---|---|
NO | Nitrogen Oxide | NO |
SO_2 | Sulphur Dioxide | SO2 |
Changing parameter dimensions
If you open the Index lists window you will see a list of all available index lists. The index lists are expanded by clicking the ”+” symbol. As you see there are indices for all transfers, compartments and materials.
These index lists can be used to create Parameters that are material, compartment or transfer dependent. This makes it, for example, possible for you to create one parameter which is used in many different Transfers. Depending on in which object it is used, Ecolego will use a corresponding value found in the parameter.
Creating input
The input parameter is a simple material-dependent vector.
Open the Blocks window if it is not already open.
Right-click the input parameter, and choose Edit from the pop-up menu.
Select the Values tab. Change dimension to “1 dependency”.
Set the drop-down list that appears to “Materials”.
Assign the following values:
Materials | Value |
---|---|
NO | 10 |
SO2 | 20 |
Close the window by clicking Ok
Creating ic
The ic Parameter is used as the initial condition for both Compartments. It is a matrix parameter with different values for different compartments and different materials.
Right-click the ic parameter, and choose Edit from the pop-up menu.
Select the Values tab. Change dimension to “2 dependencies”.
Set the first dependency to to “Materials”.
Set the second dependency to “Compartments”.
Assign the following values:
Materials | Compartment | Value |
---|---|---|
NO | Upper_Soil | 1000 |
SO2 | Upper_Soil | 1000 |
NO | Lower_Soil | 10 |
SO2 | Lower_Soil | 100 |
Close the window by clicking Ok
Creating a sub-set index list for TC
The Transfers Index list has one index for each Transfer in the model. It thus have the following indices:
Deposition |
Upper_to_Lower |
Lower_to_Sink |
The parameter TC is only used for the two Transfers Upper_to_Lower and Lower_to_Sink. If we assign the Transfers index list to TC, we would have to put a “dummy”-value for Deposition, as the parameter is not used there. Instead we can create a sub-set of the Transfers Index list which does not include Deposition, and use it for TC.
Open the Index lists window
Right-click the Transfers index list and choose New | Sub-set from the pop-up menu.
A new Index list is added to the list named “Transfers_Sub_Set”. Right-click it and select Edit from the pop-up menu.
Select the Properties tab and change the name to “Soil fluxes”.
Select the Values tab. Unselect the “Deposition” index.
Close the window by pressing Ok
Open the Blocks window.
Right-click the TC parameter, and choose Edit from the pop-up menu.
Select the Values tab. Change dimension to “2 dependencies”.
Set the first dependency to “Materials”.
Set the second dependency to “Soil fluxes”.
Assign the following values:
Materials | Soil fluxes | Value |
---|---|---|
NO | Upper_to_Lower | 0.005 |
SO2 | Upper_to_Lower | 0.03 |
NO | Lower_to_Sink | 0.13 |
SO2 | Lower_to_Sink | 0.07 |
Close the window by clicking Ok
Next
Previous
References