modelPlugFlowAIT

Validation pipe against data from Austrian Institute of Technology

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

Information

The example contains experimental data from a real district heating network.

The pipes' temperatures are not initialized. Therefore, results of outflow temperature before approximately the first 10000 seconds should not be considered.

Note that these three models are identical, except for the pipe model that is used:

This comparison between different discretization levels and pipe models is made to check the influence of the discretization and pipe model on computation time and simulation accuracy.

Test bench schematic

Schematic of test district heating network

Calibration

To calculate the length specific thermal resistance R of the pipe, the thermal resistance of the surrounding ground is added, which yields

R=1/(0.208)+1/(2   lambda_g   Modelica.Constants.pi)   log(1/0.18),

where the thermal conductivity of the ground lambda_g = 2.4 W/(m K).

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.LengthLcap1Length over which transient effects typically take place
RealR801/(2*0.024*Modelica.Constants.pi)*log(0.07/0.0337) + 1/(2*2.4*Modelica.Constants.pi)*log(2/0.07)Thermal resistance per unit length of service pipes
BooleanpipVoltrueFlag to decide whether volumes are included at the end points of the pipe
BooleanallowFlowReversaltrue= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Modelica.Units.SI.MassFlowRatem_flow_nominal1Nominal mass flow rate, used for regularization near zero flow
Modelica.Units.SI.TimetauHeaTra6500Time constant for heat transfer, default 20 minutes
Modelica.Units.SI.Lengththickness0.0032Pipe wall thickness

Components

TypeNameDefaultDescription
Fluid.Sources.MassFlowSource_TPoint1Mass flow source
Fluid.Sources.MassFlowSource_TPoint4Substation 4
Fluid.Sources.MassFlowSource_TPoint3Subsation 3
Fluid.Sources.MassFlowSource_TPoint2Subtation 2
PlugFlowPipepip1Pipe 1
PlugFlowPipepip4Pipe 4
PlugFlowPipepip5Pipe 5
PlugFlowPipepip2Pipe 2
PlugFlowPipepip3Pipe 3
Modelica.Blocks.Sources.CombiTimeTableDataReaderRead measurement data
Data.PipeDataAIT151218pipeDataAIT151218Measurement data from AIT network
Modelica.Blocks.Sources.RealExpressionm_flow_p3Mass flow rate for substation 3
Modelica.Blocks.Sources.RealExpressionm_flow_p4Mass flow rate of substation 4
Modelica.Blocks.Sources.RealExpressionm_flow_p2
Modelica.Blocks.Sources.RealExpressionT_p1Inlet temperature
Fluid.Sensors.TemperatureTwoPortsenTem_p3Temperature sensor
Fluid.Sensors.TemperatureTwoPortsenTem_p2Temperature sensor
Fluid.Sensors.TemperatureTwoPortsenTem_p4Temperature sensor
Fluid.Sensors.TemperatureTwoPortsenTem_p1Temperature sensor
PlugFlowPipepip0Pipe 0
Buildings.Fluid.Sources.Boundary_pTExcludedBranchMass flow sink for excluded branch
Buildings.HeatTransfer.Sources.PrescribedTemperatureprescribedTemperatureVariable environment temperature
Fluid.Sensors.TemperatureTwoPortsenTemIn_p2Temperature sensor
Modelica.Blocks.Logical.SwitchswitchDecide if mass flow rate is below measurement noise threshold or not
Modelica.Blocks.Sources.RealExpressionm_flow_zeroDefault value if mass flow rate is below measurement noise threshold
Modelica.Blocks.Logical.LessThresholdlessThresholdMeasurement noise threshold
Modelica.Blocks.Logical.Switchswitch1Decide if mass flow rate is below measurement noise threshold or not
Fluid.Sources.MassFlowSource_TPoint5Bypass temperature sensor when flow rate is below measurement threshold
Buildings.Fluid.FixedResistances.JunctionsplPip1Splitter coming out of pip1
Buildings.Fluid.FixedResistances.JunctionsplPip2Splitter coming out of pip5

Contents

NameDescription
Medium

Revisions

  • April 29, 2026, by Michael Wetter:
    Changed configuration of table to cause the parameters to be evaluated, as this leads to more efficient code.
    This is for IBPSA, #2111.
  • March 7, 2020, by Michael Wetter:
    Replaced measured data from specification in Modelica file to external table, as this reduces the computing time.
    This is for #1289.
  • May 15, 2019, by Jianjun Hu:
    Replaced fluid source. This is for #1072.
  • July 4, 2016 by Bram van der Heijde:
    Added parameters to test the influence of allowFlowReversal and the presence of explicit volumes in the pipe.
  • January 26, 2016 by Carles Ribas:
    First implementation.