OMNotebook Error: Class dev not found in scope (looking for a function or record)
OMNotebook Error: Class dev not found in scope (looking for a function or record)
我修改了 DrModelica 中的 van der Pol 示例,进行了以下更改:
model FPStirling "Free Piston Stirling engine model"
Real x(start = 1,fixed = true);
Real v(start = 1,fixed = true);
Real T(start = 1,fixed = true);
equation
der(x) = v;
dev(v) = T/x-1;
dev(T) = 1 - x;
end FPStirling;
计算 returns:{FPStirling}
然后我运行:simulate(FPStirling, startTime=0, stopTime=25 )
但我得到了输出:
record SimulationResult
resultFile = "",
messages = "Failed to build model: FPStirling"
end SimulationResult;
OMC-ERROR:
"[7:3-7:17] Error: Class dev not found in scope FPStirling (looking for a function or record).
Error: Error occurred while flattening model FPStirling
"
会不会是路径问题?
你真的在某处定义了函数 dev
吗?或者它可能是 der
.
的拼写错误
阿黛尔。
我修改了 DrModelica 中的 van der Pol 示例,进行了以下更改:
model FPStirling "Free Piston Stirling engine model"
Real x(start = 1,fixed = true);
Real v(start = 1,fixed = true);
Real T(start = 1,fixed = true);
equation
der(x) = v;
dev(v) = T/x-1;
dev(T) = 1 - x;
end FPStirling;
计算 returns:{FPStirling}
然后我运行:simulate(FPStirling, startTime=0, stopTime=25 )
但我得到了输出:
record SimulationResult
resultFile = "",
messages = "Failed to build model: FPStirling"
end SimulationResult;
OMC-ERROR:
"[7:3-7:17] Error: Class dev not found in scope FPStirling (looking for a function or record).
Error: Error occurred while flattening model FPStirling
"
会不会是路径问题?
你真的在某处定义了函数 dev
吗?或者它可能是 der
.
阿黛尔。