Changes between Initial Version and Version 1 of Ticket #2928, comment 9


Ignore:
Timestamp:
2015-11-12T10:31:00Z (9 years ago)
Author:
Bernhard Thiele

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2928, comment 9

    initial v1  
    1010triggering a time event at the beginning of a simulation].
    1111
    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.
     12So 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.