This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
discrete_event [2020/10/12 16:30] erik |
discrete_event [2020/10/12 16:31] (current) 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. | + | |**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 64: | Line 64: | ||
Cyclic events should be modelled using [[time event|time event blocks]]. | Cyclic events should be modelled using [[time event|time event blocks]]. | ||
- | < | ||
- | |||
- | During the simulation an event is triggered when the //sign// of the // | ||
- | |||
- | In the following example we will create an event that is trigged every month of the year. The simulation time unit is years. We need to construct expressions so that the left hand side is equal to the right hand side 12 times every year. | ||
- | |||
- | One way to achieve this is to compare the two expressions '' | ||
- | |||
- | ^Time^time/ | ||
- | |0,0 |0,0 |0,0 | ||
- | |1,0 |0,1 |0,0 | ||
- | |2,0 |0,2 |0,0 | ||
- | |6,0 |0,5 |1,0 | ||
- | |12, | ||
- | |13, | ||
- | |18, | ||
- | |24, | ||
- | |40, | ||
- | |45, | ||
- | |||
- | {{: | ||
===== See also ===== | ===== See also ===== |