User Tools

Site Tools


tutorial_-_time_events

Tutorial 6a - Time events

Page 1 of 4

This tutorial gives some examples of how to model events that occur at specific time points in a simulation.

Base model

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

  • Time unit: Days
  • Time mode: Time
  • Start time: 0.0
  • End time: 100.0
  • Start date:2000-01-01
  • Output options: Produce additional output
  • Time points: from start to end with a 1.0 increment

2. Create a material named Poison with the unit mg.

3. Create two compartments Sky and Soil. For Sky compartment, edit Values and set the initial condition for Sky to be 500 (mg) of Poison.

4. Add a transfer from Sky to Soil and set its Equation value to “30+sin(time/5)*20+cos(time/3+2)*10”

5. Add a transfer from Soil to Sky and set its Equation value to “30+sin(time/3+2)*10+cos(time/7+3)*20”

6. Note: make sure that TC (Transfer coefficient) value is not checked for both transfers.

7. When run, the model will output the Sky concentration like this:

Continue with Next

See also

tutorial_-_time_events.txt · Last modified: by boris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki