Changes between Initial Version and Version 1 of Ticket #2928, comment 9
- Timestamp:
- 2015-11-12T10:31:00Z (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2928, comment 9
initial v1 10 10 triggering a time event at the beginning of a simulation]. 11 11 12 So we should have an event if the condition `initial()` changes to `false`. That event is also needed to change the value of `x` discontinuously within an if-expression. Otherwise, we would have a situation that seems similar to having something like `if noEvent(event) then 0.0 else 1.0`. So for me having an event here seems reasonable. However, the result of Dymola for that model `y=1` at startTime (and changes to `y=2` at `time=1`). I tried to figure out whether Dymola creates an event for the if-equation, but I'm not completely sure what it does.12 So we should have an event if the condition `initial()` changes to `false`. That event is also needed to change the value of `x` discontinuously within an if-expression. Otherwise, we would have a situation that seems similar to having something like `if noEvent(event) then 0.0 else 1.0`. So for me having an event here seems reasonable. However, the result of Dymola for that model is `y=1` at startTime (and changes to `y=2` at `time=1`). I tried to figure out whether Dymola creates an event for the if-equation, but I'm not completely sure what it does.