我想知道如何在 Modelica 中实现以下功能:
suppose variables a,b
Timetable object c
equation
if a>c.y then
b = f(a) // with f a mathematical function
else
b = g(a) // with g a mathematical function
end if;
der(a) = h(a,b) //with h a mathematical function
Modelica 如何确定 if 语句的哪种情况为真?如果没有“b”的值,它就无法计算“a”的值,这是在 if 语句中确定的。