modelPlugFlowCore

Pipe model using spatialDistribution for temperature delay with modified delay tracker

Extends from IBPSA.Fluid.Interfaces.PartialTwoPort (Partial component with two ports).

Information

Pipe with heat loss using the time delay based heat losses and plug flow for the transport delay of the fluid.

Implementation

The spatialDistribution operator is used for the temperature wave propagation through the length of the pipe. This operator is contained in BaseClasses.PlugFlow.

This model does not include thermal inertia of the pipe wall. The wall inertia is implemented in PlugFlowPipe, which uses this model.
The removal of the thermal inertia with a mixing volume can be desirable in the case where mixing volumes are added manually at the pipe junctions.

The model PlugFlowHeatLoss implements a heat loss in design direction, but leaves the enthalpy unchanged in opposite flow direction. Therefore it is used in front of and behind the time delay.

References

Full details on the model implementation and experimental validation can be found in:

van der Heijde, B., Fuchs, M., Ribas Tugores, C., Schweiger, G., Sartor, K., Basciotti, D., Müller, D., Nytsch-Geusen, C., Wetter, M. and Helsen, L. (2017).
Dynamic equation-based thermo-hydraulic pipe model for district heating and cooling systems.
Energy Conversion and Management, vol. 151, p. 158-169. doi: 10.1016/j.enconman.2017.08.072.

Parameters

TypeNameDefaultDescription
Modelica.SIunits.LengthdhHydraulic diameter (assuming a round cross section area)
Modelica.SIunits.LengthlengthPipe length
RealRThermal resistance per unit length from fluid to boundary temperature
RealCThermal capacity per unit length of pipe
Realfac1Factor to take into account flow resistance of bends etc., fac=dp_nominal/dpStraightPipe_nominal
Modelica.SIunits.LengththicknessPipe wall thickness
RealReC4000Reynolds number where transition to turbulent starts
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)true= false to simplify equations, assuming, but not enforcing, no flow reversal
Nominal condition
Modelica.SIunits.Velocityv_nominalVelocity at m_flow_nominal (used to compute default value for hydraulic diameter dh)
Modelica.SIunits.MassFlowRatem_flow_nominalNominal mass flow rate
Advanced
Modelica.SIunits.MassFlowRatem_flow_small1E-4*abs(m_flow_nominal)Small mass flow rate for regularization of zero flow
Booleanfrom_dpfalse= true, use m_flow = f(dp) else dp = f(m_flow)
BooleanhomotopyInitializationtrue= true, use homotopy method
Booleanlinearizedfalse= true, use linear relation between m_flow and dp for any flow rate
Geometry
Modelica.SIunits.Heightroughness2.5e-5Average height of surface asperities (default: smooth steel pipe)
Initialization
Modelica.SIunits.TemperatureT_start_inMedium.T_defaultInitialization temperature at pipe inlet
Modelica.SIunits.TemperatureT_start_outMedium.T_defaultInitialization temperature at pipe outlet
BooleaninitDelayfalseInitialize delay for a constant mass flow rate if true, otherwise start from 0
Modelica.SIunits.MassFlowRatem_flow_start0

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a (from PartialTwoPort)Fluid connector a (positive design flow direction is from port_a to port_b)
Modelica.Fluid.Interfaces.FluidPort_bport_b (from PartialTwoPort)Fluid connector b (positive design flow direction is from port_a to port_b)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPortHeat port to connect environment (positive heat flow for heat loss to surroundings)

Components

TypeNameDefaultDescription
IBPSA.Fluid.FixedResistances.HydraulicDiameterresPressure drop calculation for this pipe
IBPSA.Fluid.FixedResistances.BaseClasses.PlugFlowdelModel for temperature wave propagation
IBPSA.Fluid.FixedResistances.BaseClasses.PlugFlowHeatLossheaLos_aHeat loss for flow from port_b to port_a
IBPSA.Fluid.FixedResistances.BaseClasses.PlugFlowHeatLossheaLos_bHeat loss for flow from port_a to port_b
IBPSA.Fluid.Sensors.MassFlowRatesenMasFloMass flow sensor
IBPSA.Fluid.FixedResistances.BaseClasses.PlugFlowTransportDelaytimDelTime delay

Revisions

  • October 20, 2017, by Michael Wetter:
    Replaced model that lumps flow resistance and transport delays with two separate models, as these are physically distinct processes. This also avoids one more layer of models.
    Revised variable names and documentation to follow guidelines.
  • July 4, 2016 by Bram van der Heijde:
    Introduce pipVol.
  • October 10, 2015 by Marcus Fuchs:
    Copy Icon from KUL implementation and rename model. Replace resistance and temperature delay by an adiabatic pipe.
  • September, 2015 by Marcus Fuchs:
    First implementation.