modelPlugFlowPipeZeta

Pipe model using spatialDistribution for temperature delay and conditional HydraulicResistance

Extends from AixLib.Fluid.Interfaces.PartialTwoPortInterface.

Information

Pipe with heat loss using the time delay based heat losses and transport of the fluid using a plug flow model, applicable for simulation of long pipes such as in district heating and cooling systems.

This model takes into account transport delay along the pipe length idealized as a plug flow. The model also includes thermal inertia of the pipe wall. This model determines the pressure drop either through a static factor or using the sum of zeta values.

Implementation

This model is based on AixLib.Fluid.FixedResistances.BaseClasses.PlugFlowCore and contains the spatialDistribution operator.

The spatialDistribution operator is used for the temperature wave propagation through the length of the pipe.

Heat losses are implemented by AixLib.Fluid.FixedResistances.BaseClasses.PlugFlowHeatLoss at each end of the pipe (see AixLib.Fluid.FixedResistances.BaseClasses.PlugFlowCore). Depending on the flow direction, the temperature difference due to heat losses is subtracted at the right fluid port.

The pressure drop is implemented using AixLib.Fluid.FixedResistances.HydraulicDiameter.

The thermal capacity of the pipe wall is implemented as a mixing volume of the fluid in the pipe, of which the thermal capacity is equal to that of the pipe wall material. In addition, this mixing volume allows the hydraulic separation of subsequent pipes. Thanks to the vectorized implementation of the (design) outlet port, splits and junctions of pipes can be handled in a numerically efficient way.

This mixing volume is not present in the PlugFlowCore model, which can be used in cases where mixing volumes at pipe junctions need to be added manually.

If Boolean use_zeta is set "true" HydraulicResistance is used.

HydraulicResistance takes into account additional pressure drops due to bends/valves/etc. Therefore the sum of zeta values has to be given prior.

If Boolean use_zeta is set "false" the pressureloss is determine through a static factor which has to given prior.

Assumptions

  • Heat losses are for steady-state operation.
  • The axial heat diffusion in the fluid, the pipe wall and the ground are neglected.
  • The boundary temperature is uniform.
  • The thermal inertia of the pipe wall material is lumped on the side of the pipe that is connected to ports_b.

Parameters

TypeNameDefaultDescription
RealReC4000Reynolds number where transition to turbulent starts
Additional pressurelosses
Booleanuse_zetafalse= true HydraulicResistance is implemented, zeta value has to be given next
Realfac1.0Factor to take into account flow resistance of bends etc., fac=dp_nominal/dpStraightPipe_nominal
Realsum_zetas0Sum of all zeta values. Takes into account additional pressure drops due to bends/valves/etc.
Advanced
Booleanfrom_dpfalse= true, use m_flow = f(dp) else dp = f(m_flow)
Modelica.Units.SI.MassFlowRatem_flow_small1E-4*abs(m_flow_nominal)Small mass flow rate for regularization of zero flow
BooleanhomotopyInitializationtrue= true, use homotopy method
Booleanlinearizedfalse= true, use linear relation between m_flow and dp for any flow rate
Material
Modelica.Units.SI.Lengthdhsqrt(4*m_flow_nominal/rho_default/v_nominal/Modelica.Constants.pi)Hydraulic diameter (assuming a round cross section area)
Modelica.Units.SI.Heightroughness2.5e-5Average height of surface asperities (default: smooth steel pipe)
Modelica.Units.SI.LengthlengthPipe length
Modelica.Units.SI.SpecificHeatCapacitycPip2300Specific heat of pipe wall material. 2300 for PE, 500 for steel
Modelica.Units.SI.DensityrhoPip930Density of pipe wall material. 930 for PE, 8000 for steel
Modelica.Units.SI.Lengththickness0.0035Pipe wall thickness
Nominal condition
Modelica.Units.SI.Velocityv_nominal1.5Velocity at m_flow_nominal (used to compute default value for hydraulic diameter dh)
Modelica.Units.SI.MassFlowRatem_flow_nominalNominal mass flow rate
Thermal resistance
Modelica.Units.SI.LengthdInsThickness of pipe insulation, used to compute R
Modelica.Units.SI.ThermalConductivitykInsHeat conductivity of pipe insulation, used to compute R
RealR1/(kIns*2*Modelica.Constants.pi/Modelica.Math.log((dh/2 + dIns)/(dh/2)))Thermal resistance per unit length from fluid to boundary temperature
Initialization
Modelica.Units.SI.TemperatureT_start_inMedium.T_defaultInitialization temperature at pipe inlet
Modelica.Units.SI.TemperatureT_start_outT_start_inInitialization temperature at pipe outlet
BooleaninitDelayfalseInitialize delay for a constant mass flow rate if true, otherwise start from 0
Modelica.Units.SI.MassFlowRatem_flow_start0Initial value of mass flow rate through pipe

Components

TypeNameDefaultDescription
Modelica.Units.SI.Velocityv_medVelocity of the medium in the pipe
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPortHeat transfer to or from surroundings (heat loss from pipe results in a positive heat flow)
AixLib.Fluid.FixedResistances.BaseClasses.PlugFlowCoreplugFlowCoreDescribing the pipe behavior
Fluid.MixingVolumes.MixingVolumevolControl volume connected to ports_b. Represents equivalent pipe wall thermal capacity.
FixedResistances.HydraulicResistancehydraulicResistance

Revisions

  • September 25, 2019, by Nils Neuland:
    Revised variable names and documentation to follow guidelines. Corrected malformed hyperlinks.
  • October 23, 2017, by Michael Wetter:
    Revised variable names and documentation to follow guidelines. Corrected malformed hyperlinks.
  • 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.