【发布时间】:2017-11-04 09:42:13
【问题描述】:
我想模拟一个连续时间系统,它会在预先知道的某个时刻改变其行为。一个小例子如下。
model time_event
Real x(start = 0) "state variable for this example";
parameter T_ch = 5 "time at which the system dynamics undergoes a change";
equation
if time <= T_ch then
der(x) = x + 1;
end if;
if time > T_ch then
der(x) = -x;
end if;
end time_event;
【问题讨论】:
标签: modelica openmodelica