Tukaram
Fri, 05 Feb 2010 01:16:18 -0800
Dear Sirs, I have this simple model:
--------------
class Building
parameter Real offer=1000;
Real storage(start=0);
equation
when sample(1,1) then
storage=pre(storage)+offer;
end when;
end Building;
--------------
It will be simulated with the following commands:
-------------
simulate( Building, startTime=0, stopTime=8 );
plot({storage})
-------------
The Plot shows me plus 1000 on the storage per second (fine) but the
storage starts with a value of 1000 (not fine). I would expect a start
value 0.
What is going wrong? Has someone with more Modelica experience a hint for
me? :-)
Kindly Regards