User Tools

Site Tools


discrete_event

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
discrete_event [2019/11/18 13:34]
127.0.0.1 external edit
discrete_event [2020/10/12 16:30]
erik
Line 1: Line 1:
 ====== Discrete event ====== ====== Discrete event ======
 +
 +**Note:** Since release 7.1, there is a [[time event]] block which should be used for events that are time-related.
  
 Discrete events are used by various blocks in order to trig an action. The [[Snapshot|snapshot]] block uses a discrete event in order to trigger the snapshot, the [[Transfer|transfer]] block can specify a discrete transfer by referencing a discrete event. Discrete events are used by various blocks in order to trig an action. The [[Snapshot|snapshot]] block uses a discrete event in order to trigger the snapshot, the [[Transfer|transfer]] block can specify a discrete transfer by referencing a discrete event.
Line 60: Line 62:
 ===== Cyclic events ===== ===== Cyclic events =====
  
-For recurring events, you do not need to create several discrete event blocks. By using a trick, it is possible to make an event trigger several times. A typical case is when an event should be triggered every year, month or day.+Cyclic events should be modelled using [[time event|time event blocks]]. 
 + 
 +<del>For recurring events, you do not need to create several discrete event blocks. By using a trick, it is possible to make an event trigger several times. A typical case is when an event should be triggered every year, month or day.
  
 During the simulation an event is triggered when the //sign// of the //difference// of the left hand side expression and the right hand side expression changes between two time points. In other words; for every time step taken, ''%%sign(leftexpression-rightexpression)%%'' will be checked. As explained in the introduction, when the sign changes the solver will backtrace to a time point when the two sides are equal. During the simulation an event is triggered when the //sign// of the //difference// of the left hand side expression and the right hand side expression changes between two time points. In other words; for every time step taken, ''%%sign(leftexpression-rightexpression)%%'' will be checked. As explained in the introduction, when the sign changes the solver will backtrace to a time point when the two sides are equal.
Line 80: Line 84:
 |45,0|3,   |4,0           |-0,                 | |45,0|3,   |4,0           |-0,                 |
  
-{{:CyclicEvent.png|CyclicEvent.png}}+{{:CyclicEvent.png|CyclicEvent.png}}</del>
  
 ===== See also ===== ===== See also =====
discrete_event.txt · Last modified: 2020/10/12 16:31 by erik