====== Tutorial 3 - Creating vector and matrix parameters ====== ===== 3/4 ===== **Creating materials** Like in [[Tutorial_2-Creating_a_compartment_model|Tutorial 2-Creating a compartment model]], we will use [[Material|Material]]s to model the contaminants. Open the [[Materials_window|Materials window]] and create the following [[Material|Material]]s: ^Name^Full name ^Symbol ^ |NO |Nitrogen Oxide |NO | |SO_2|Sulphur Dioxide|SO2| \\ **Changing parameter dimensions** If you open the [[Index_lists_window|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. {{:tutorial_3_3_1.png|Screenshot}} These index lists can be used to create [[Parameter|Parameter]]s 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 [[Transfer|Transfer]]s. 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|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**
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**
Open the [[Index_lists_window|Index lists window]]
Right-click the //Transfers// [[index_list|index list]] and choose **New | Sub-set** from the pop-up menu.
A new [[Index_list|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|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**