modelLumpedPipe

Example for a composite pipe model

Extends from Modelica.Fluid.Pipes.BaseClasses.PartialStraightPipe (Base class for straight pipe models).

Information

Simple pipe model consisting of one volume, wall friction (with different friction correlations) and gravity effect. This model is mostly used to demonstrate how to build up more detailed models from the basic components. Note, if the "heatPort" is not connected, then the pipe is totally insulated (= no thermal flow from the fluid to the pipe wall/environment).

Parameters

TypeNameDefaultDescription
SI.VolumeV (from PartialStraightPipe)crossArea*length*nParallelVolume size
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)system.allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Geometry
RealnParallel (from PartialStraightPipe)1Number of identical parallel pipes
SI.Diameterdiameter (from PartialStraightPipe)Diameter of circular pipe
Modelica.Fluid.Types.Roughnessroughness (from PartialStraightPipe)2.5e-5Average height of surface asperities (default: smooth steel pipe)
General › Geometry
SI.Lengthlength (from PartialStraightPipe)Length
BooleanisCircular (from PartialStraightPipe)true= true, if cross sectional area is circular
SI.AreacrossArea (from PartialStraightPipe)Modelica.Constants.pi*diameter*diameter/4Inner cross section area
SI.Lengthperimeter (from PartialStraightPipe)Modelica.Constants.pi*diameterInner perimeter
Static head
SI.Lengthheight_ab (from PartialStraightPipe)0Height(port_b) - Height(port_a)
Assumptions › Dynamics
Modelica.Fluid.Types.DynamicsenergyDynamicssystem.energyDynamicsFormulation of energy balance
Modelica.Fluid.Types.DynamicsmassDynamicssystem.massDynamicsFormulation of mass balance
Initialization
Medium.AbsolutePressurep_a_startsystem.p_startStart value of pressure at port a
Medium.AbsolutePressurep_b_startp_a_startStart value of pressure at port b
Booleanuse_T_starttrueUse T_start if true, otherwise h_start
Medium.TemperatureT_startif use_T_start then system.T_start else Medium.temperature_phX((p_a_start + p_b_start)/2, h_start, X_start)Start value of temperature
Medium.SpecificEnthalpyh_startif use_T_start then Medium.specificEnthalpy_pTX((p_a_start + p_b_start)/2, T_start, X_start) else Medium.h_defaultStart value of specific enthalpy
Medium.MassFraction[Medium.nX]X_startMedium.X_defaultStart value of mass fractions m_i/m
Medium.ExtraProperty[Medium.nC]C_startfill(0, Medium.nC)Start value of trace substances
Medium.MassFlowRatem_flow_startsystem.m_flow_startStart value for mass flow rate
Assumptions › Heat transfer
Booleanuse_HeatTransferfalse= true to use the HeatTransfer model

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_aheatPort

Components

TypeNameDefaultDescription
Modelica.Fluid.Systemsystem (from PartialTwoPort)System wide properties
Modelica.Fluid.Pipes.StaticPipestaticPipe1
Modelica.Fluid.Vessels.ClosedVolumevolume
Modelica.Fluid.Pipes.StaticPipestaticPipe2

Contents

NameDescription
HeatTransfer