Simulink - Simscape HTC input using model parameters
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi,
I'm trying to define a variable convective heat transfer coefficient using model parameters (i.e. temperature) in the simulink model shown below. Is there a way to define this?
I get this error when I run the simulation ' ...or the model referenced by it contains a block that updates persistent or state variables while computing outputs and is not supported in an algebraic loop. It is in an algebraic loop with the following blocks.'
So does that mean we can't define the conv_HTC as a function of temperature or is there a way to do it?
Many thanks
댓글 수: 4
Youssef Noureddine
2022년 11월 10일
편집: Youssef Noureddine
2022년 11월 10일
Hi Delika,
Can you provide the contents of the "variable convective heat transfer" block? I would recommend continuing with this for now as it seems you are not encountering any errors. I would however suggest simplifying the model (blocks like temperature 1 and temperature 2 seem identical and may cause additional confusion).
Since I do not know what the contents of your custom block are, I cannot tell for certain if you will run into an error, but if you do, feel free to attach it here so we can understand what the exact issue simscape is running into is.
답변 (1개)
Lorenzo
2024년 12월 16일
Hello,
the convective heat transfer block supports variable heat transfer coefficient also in 22b. You just have to set the convection type to "Variable" which will open an additional port where you can provide your heat transfer coefficient (see below)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1821163/image.png)
Hope this helps,
Best
Lorenzo
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Foundation and Custom Domains에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!