modelPipe

Test of a pipe with multiple segments

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This model demonstrates the use of a pipe model. Both pipe models have the same mass flow rates and temperatures. Otherwise, the assert block would terminate the simulation.

The model on the top is connected to the ambience with one heat port, whereas the model at the bottom uses a vector of heat ports. Since they are all connected to the same temperature, they result in the same energy balance for the medium that flows through the pipe.

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.RampP
BuildingSystems.Fluid.Sources.Boundary_pTsou
BuildingSystems.Fluid.Sources.Boundary_pTsin
Modelica.Thermal.HeatTransfer.Sources.FixedTemperatureTEnv
BuildingSystems.Fluid.FixedResistances.Pipepip1
Modelica.Thermal.HeatTransfer.Sources.FixedTemperature[1]TEnv1
BuildingSystems.Fluid.FixedResistances.Pipepip2
BuildingSystems.Fluid.Sensors.TemperatureTwoPortsenTemTemperature sensor
BuildingSystems.Fluid.Sensors.TemperatureTwoPortsenTem1Temperature sensor
BuildingSystems.Utilities.Diagnostics.AssertEqualityassEqu

Contents

NameDescription
Medium

Revisions

  • June 1, 2015, by Christoph Nytsch-Geusen:
    Adaptation from the Buildings to the BuildingSystms library.
  • February 22, 2012 by Michael Wetter:
    Revised implementation.
  • February 12, 2012 by Wangda Zuo:
    First implementation.