initial condition to boiler modelisation
조회 수: 2 (최근 30일)
이전 댓글 표시
hello all,
i try to modelise a boiler with simscape. on the moment, i have this code
component chaudiere
% chaudiere
% Ce bloc modélise le fonctionnement d'une chaudière.
nodes
A = foundation.thermal.thermal; % A:left
B = foundation.thermal.thermal; % B:right
end
variables
T = { 0, 'K' };
end
parameters
Pch = { 0, 'W' }; % puissance de la chaudiere
Cp = { 4.1868, 'J/kg/K' }; % Cp eau
Debit = { 0, 'kg/s' }; % debit d'eau
end
function setup
if Pch < 0
error ('P chaudiere doit etre plus grande que 0');
end
if Cp < 0
error ('Cp eau doit etre plus grand que 0');
end
if Debit < 0
error ('Debit doit etre plus grand que 0');
end
across( T, B.T, A.T );
% température variable de L à R
end
equations
B.T==A.T+Pch/(Cp*Debit);
end
end
but the solver can't solve it because there is too much variables.
so i want to put an initial condition for A.T (the input temperature) bu only for the first iteration. after, input temperature will depend of an another output.
How can i do this?
thanks for your responses.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Equations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!