Opened 14 years ago
Last modified 14 years ago
#1614 closed defect (fixed)
euler event handling messes with delay?
| Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Version: | ||
| Keywords: | Cc: | Martin Sjölund, Willi Braun |
Description
From: http://www.openmodelica.org/index.php?option=com_agora&task=topic&id=370&Itemid=87
The following model works if Auxilliary1 is removed or the method is changed to dassl. Using euler, Stock1 gets the value NaN...
loadString("model TestModel
Real Auxiliary1 = if time > 0 then 0 else 1;
Real Valve1;
Real Stock1(start = 0.0, fixed = true);
equation
Valve1 = delay(Stock1, 1);
der(Stock1) = +Valve1;
end TestModel;");
simulate(TestModel, startTime=0, stopTime=10, numberOfIntervals=1000, method="euler");
val(Valve1, 2);
Note:
See TracTickets
for help on using tickets.
