Hello everybody,
I would like to simulate an input that can be described as bellow:
Real s_route;
Real A = 0.2;
Real l = 3;
Real vl = 2;
Real pi = 3.14;
Real x;
equation
x=vl*time;
s_route = 0 + ( if l/vl < time and time < 1.5*l/vl then A*sin((time- l/vl)*2*pi*vl/l) else 0);
With blocks I did that:
Modelica.Blocks.Sources.Sine Bosse(
amplitude={0.2},
offset={0},
startTime={1},
freqHz={1});
But I don't know how to put the exit at zero after the first "bump".
Thanks for helping me. In the same way, if someone know where to find an introduction to Modelica for beginner, I 'll warmly welcome it.
Blacksmith
