Customized Simscape convective heat transfer component not working
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Roland
le 19 Août 2022
Réponse apportée : Yifeng Tang
le 27 Août 2022
Hello, I am trying to create a custom simscape Convective Heat Transfer component that will allow me to use a variable convective heat transfer coefficient,
I have attempted to do so using the following code, but it isn't functioning as intended (heat flow is 0 regardless of temperature difference across it).
Is there something I am missing?
Thanks
component variableConvection
% This component will use a variable heat transfer coefficient when
% calculating the convective heat transfer
inputs
heat_tr_coeff = {0, 'W/(m^2*K)'}; % S:bottom
end
nodes
A = foundation.thermal.thermal; % A:bottom
B = foundation.thermal.thermal; % B:top
end
variables
T = {0, 'K'}; % Temperature difference
Q = {0, 'W'}; % Heat flow rate
end
parameters
area = {1e-4, 'm^2' }; % Area
end
equations
T == A.T - B.T;
Q == area * heat_tr_coeff * T;
end
end
0 commentaires
Réponse acceptée
Yifeng Tang
le 27 Août 2022
Hi Roland,
I believe you are missing one equation to define how Q is related to the heat flow through the ports.
Try adding the following code to your block
branches
Q : A.Q -> B.Q;
end
Get more info about the branches syntax here: https://www.mathworks.com/help/releases/R2022a/physmod/simscape/lang/branches.html
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Foundation and Custom Domains dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!