This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
discrete_event [2020/10/12 16:30] erik |
discrete_event [2020/10/12 16:31] erik [Cyclic events] |
||
---|---|---|---|
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 ===== |