User Tools

Site Tools


tutorial_5-using_a_general_variable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
tutorial_5-using_a_general_variable [2020/02/19 18:23]
ecoloco
tutorial_5-using_a_general_variable [2023/03/27 16:49]
dmytroh
Line 2: Line 2:
  
 ===== 2/5 ===== ===== 2/5 =====
 +
 +Ordered List Item
 +
 +
  
   - Download the file {{tutorial:Soil_Dose.eco?linkonly}} and open it in Ecolego by clicking the {{:Open24.png|Open}} button, or by selecting **File | Open** from the [[Menu_bar|Menu bar]].   - Download the file {{tutorial:Soil_Dose.eco?linkonly}} and open it in Ecolego by clicking the {{:Open24.png|Open}} button, or by selecting **File | Open** from the [[Menu_bar|Menu bar]].
 +  - The agricultural sub-system has a transfer named “Deposition”. The deposition rate is defined as a parameter, making it impossible to run a simulation with a time-varying deposition rate – for instance contamination during a limited time. You will create a [[General_Variable|General Variable]] that allows different ways of entering values for deposition.
 +  - Open the [[Sub-system|sub-system]] //Agricultural Land//.
 +  - Rename the [[parameter|parameter]] //depRate// to //depRate_constant//.Create a [[lookup_table|lookup table]], call it //depRate_lookup//. Assign a default value of 0.
 +  - Create a [[General_Variable|General Variable]].
 +  - Edit the [[General_Variable|General Variable]].
 +  - Name it “depRate”.
 +  - Make the [[General_Variable|General Variable]] a **vector** (dimension 1-dependency)
 +  - In the list **Available objects**, move the [[Parameter|Parameter]] //depRate_constant// and the [[Lookup_Table|Lookup Table]] //depRate_timeseries// to the selected list using the > button.
 +  - Select the //depRate_constant// in the -Default- **Selected** field above. Click **Ok**.
 +
 +{{tutorial_5_1.png}}
 +{{tutorial_5_2.png}}
  
-The agricultural sub-system has a transfer named “DepositionThe deposition rate is defined as a parameter, making it impossible to run a simulation with a time-varying deposition rate – for instance contamination during a limited timeYou will create a [[General_Variable|General Variable]] that allows different ways of entering values for deposition.+Edit the [[Transfer|Transfer]] //Deposition//Choose the **Values tab**Replace the [[Parameter|Parameter]] //depRate_constant// with the [[General_Variable|General Variable]] //depRate// in the **Expression field**.
  
-<HTML><ol></HTML> 
-<HTML><li></HTML><HTML><p></HTML>Open the [[Sub-system|sub-system]] //Agricultural Land//.<HTML></p></HTML><HTML></li></HTML> 
-<HTML><li></HTML><HTML><p></HTML>Rename the [[parameter|parameter]] //depRate// to //depRate_constant//.<HTML></p></HTML><HTML></li></HTML> 
-<HTML><li></HTML><HTML><p></HTML>Create a [[lookup_table|lookup table]], call it //depRate_timeseries//. Assign a default value of 0.<HTML></p></HTML> 
-<HTML><p></HTML>{{tutorial:deprate_timeseries_screenshot.png}}\\ 
-<HTML></p></HTML><HTML></li></HTML> 
-<HTML><li></HTML><HTML><p></HTML>Create a [[General_Variable|General Variable]].<HTML></p></HTML><HTML></li></HTML> 
-<HTML><li></HTML><HTML><p></HTML>Edit the [[General_Variable|General Variable]].<HTML></p></HTML> 
-<HTML><p></HTML>a. Name it “depRate”.<HTML></p></HTML> 
-<HTML><p></HTML>b. Make the [[General_Variable|General Variable]] a **vector** (dimension 1-dependency)<HTML></p></HTML> 
-<HTML><p></HTML>c. In the list **Available objects**, move the [[Parameter|Parameter]] //depRate_constant// and the [[Lookup_Table|Lookup Table]] //depRate_timeseries// to the selected list using the > button.<HTML></p></HTML> 
-<HTML><p></HTML>d. Select the //depRate_constant// in the -Default- **Selected** field above. Click **Ok**.<HTML></p></HTML> 
-<HTML><p></HTML>{{:Tutorial_5_general.png|Screenshot}}\\ 
-<HTML></p></HTML><HTML></li></HTML> 
-<HTML><li></HTML><HTML><p></HTML>Edit the [[Transfer|Transfer]] //Deposition//. Choose the **Values tab**. Replace the [[Parameter|Parameter]] //depRate_constant// with the [[General_Variable|General Variable]] //depRate// in the **Expression field**.<HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML> 
  
-\\ 
  
 **Next** **Next**
tutorial_5-using_a_general_variable.txt · Last modified: 2023/03/27 16:50 by dmytroh