This is an old revision of the document!
A common request is to find the maximum value of an output. For this one can use the Min/Max block. However, in this experiment we will determine the maximum for each month of the simulation.
This means that we need to reset the Min/Max block every month. We will need the following:
- Create a time point block - In the values screen, click the **Settings** button. Change the **Mode** to **Day of month**. - Enter the value 1 as the **Timepoint** in the table - Close the window
This tutorial gives some examples of how to model events that occur at specific time points in a simulation.
All examples are based on the following base model, which calculates a dummy value we can use for our event experiments. You can download the model from here
1. Edit simulation settings. Set
2. Create a material named Poison with the unit mg.
3. Create two compartments Sky and Soil. Set the initial condition for Sky to be 500 (mg) of Poison.
4. Add a transfer from Sky to Soil and set its equation to “30+sin(time/5)*20+cos(time/3+2)*10”
5. Add a transfer from Soil to Sky and set its equation to “30+sin(time/3+2)*10+cos(time/7+3)*20”
6. When run, the model will output a Sky and Soil concentration like this:
Continue with Next