User Tools

Site Tools


tutorial_6-dicrete_events

Tutorial 6 - Dicrete Events

1/1

The model

A very simple model describes the transfer of radionuclides from a weakly contaminated spot to the surrounding area. After 60 years, an accident caused a massive increase of contamination. The model itself is of no importance, but demonstrates the necessity to help the solver when discrete events occur.


  1. Download the file contamination.eco and open it in Ecolego by clicking the Open button, or by selecting File | Open from the Menu bar.

  2. Run the model and make a plot of the contamination of NearField and FarField.

  3. Investigate the transfer Accident. It uses a condition to add a pulse contamination between year 60 and year 61. Can you see any traces of this pulse in the output plots?

  4. Add two Discrete Event blocks – two major events occur in the model. At time = 60 years when the pulse begins, and at time = 61 years, when the pulse ends. You can create the blocks by right-clicking an empty diagonal cell in the matrix and choosing Other | Discrete Event.

    Screenshot


  1. Edit the first Discrete Event block. Enter “time” as the first expression and “time_pulse_begin” as the second expression.


    Screenshot

  2. Edit the second Discrete Event block. Enter “time” as the first expression and “time_pulse_end” as the second expression.

  3. Run a simulation. Is there any difference in the output?



Solution to the exercise

Reference

tutorial_6-dicrete_events.txt · Last modified: 2020/02/19 17:36 by ecoloco