"First solve for initial conditions failed to converge." Thermal model
2 次查看(过去 30 天)
显示 更早的评论
I struggle with my model failing to solve for my set initial conditions. I have built a thermal model for an electric actuator using thermal mass and convection blocks from simcape. However, I get a warning that there are conflicts between the model temperature constraint and the blocks target.
I am trying to set a starting temperature for the whole system at 20 degC, but in the following branch and mass codes I am not able to overrun the block's initial target. I have set "override" and the priority at high in the convection blocks parameters in simulink.
Example warning:
Branch.ssc with the first reffered equation:
component (Hidden=true) branch
% Thermal Branch
% This base component defines a branch with two ports in a thermal network.
% It also defines the temperature change and the heat flow rate through
% the branch.
% Copyright 2005-2016 The MathWorks, Inc.
nodes
A = foundation.thermal.thermal; % A:left
B = foundation.thermal.thermal; % B:right
end
variables (Conversion=relative)
T = {0, 'degC'}; % Temperature difference
end
variables
Q = {0, 'W'}; % Heat flow rate
end
branches
Q : A.Q -> B.Q;
end
equations
T == A.T - B.T;
end
end
0 个评论
回答(1 个)
Martin
2020-7-20
Hello Kotryna,
The temperature on those blocks is a difference, not absolute. Also focus on specifying the differential variables, otherwise the system may become overspecified.
Martin
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulation Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!