Hi folks,
I have got the following problem with my modelica model:
I want to create an integrator i.e. der(x)=2 and when x reaches the value of 5 the value of x should jump back to zero and then integration should start again.
I tried it the following way:
algorithm
der(x) =2;
when x>5 then
x :=0; //this assignment might be the problem, since it leads to too many equations
end when;
I am urged not to use any trigger, since the integrator should work for any der(x)=f(t).
thanks for your help,
denis