誰能給我一個提示什麼是「代數環」是指 - 我應該如何通過增加「預」 -operators這種情況應對?我認真沒有得到它...提前問題的理解一個Dymola的錯誤信息
Error: Failed to generate code for an algebraic loop
involving when equations or algorithms with when parts.
Unknowns:
pump.Hb_flow
pump.medium.d
pump.medium.h
pump.medium.state.melting
pump.medium.state.T
pump.V_flow
pump.V_flow_single
pump.W_single
Equations:
algorithm
when Modelica.SIunits.Conversions.to_degC(pump.medium.state.T) < 13.9 then
pump.medium.state.melting := true;
elsewhen Modelica.SIunits.Conversions.to_degC(pump.medium.state.T) > 32.8 then
pump.medium.state.melting := false;
end when;
// [removed set of equations that contained no "when"]
You may be able to cut the loop
by putting 'pre' around some of the references to
unknown continuous time variables in when parts or when conditions.
感謝, 問候
TIMO。