Simulink - two variables assigned to a flow path

조회 수: 9 (최근 30일)
Milos Krsmanovic
Milos Krsmanovic 2025년 12월 11일 23:36
댓글: Milos Krsmanovic 2025년 12월 12일 18:07
I would like to model and study a simple hydronic system with a handful of pipes randomly branching and merging. I would randomly assign and vary the flow rates and temperatures of the fluid and I would like to observe how those properties change throughout the network.
The two parameters are governed by two simplest expressions, based on whether a node is merging or diverting: q_1 + q_2 = q_3, and q_1 * t_1 + q_2 * t_2 = q_3 * t_3, where q is the flow, and t is the temperature.
I imagine Simscape can do this but it looks like an overkill, and I would like to try and model this by hand in Simulink instead so I can learn the basics better. What would be the best approach to simulate this in Simlink? I am not asking for ready models, just a guidance for which direction to pursue. Everything I tried so far makes me think I need to model parallel flow paths, one for the flow rate q and the other for the temperature t, but I'm wondering if there is a simpler way to combine them inside a common function, or something like that.
  댓글 수: 2
Walter Roberson
Walter Roberson 2025년 12월 12일 4:18
Well, if you are not using Simscape Fluids, if you are doing it directly in Simulink, then the easiest approach might be to model the network as an electrical network. For example, model increasing cross-sectional area of each pipe as the reciprocal of resistance.
Milos Krsmanovic
Milos Krsmanovic 2025년 12월 12일 18:07
I don't even need to size the pipes, do anything with velocities or pressure drops, etc. The only thing I'm after is how the temperature of a pipe/section changes in different parts of the network as flows merge and divert, and that is driven by the flow rate and temperature that I would explicitly assign.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by