modelPipe

Pipe with optional heat exchange

Extends from FluidHeatFlow.BaseClasses.TwoPort (Partial model of two port), FluidHeatFlow.BaseClasses.SimpleFriction (Simple friction model).

Information

Pipe with optional heat exchange.

Thermodynamic equations are defined by BaseClasses.TwoPort. Q_flow is defined by heatPort.Q_flow (useHeatPort=true) or zero (useHeatPort=false).

Note: Setting parameter m (mass of medium within pipe) to zero leads to neglect of temperature transient cv*m*der(T).

Note: Injecting heat into a pipe with zero mass flow causes temperature rise defined by storing heat in medium's mass.

Parameters

TypeNameDefaultDescription
FluidHeatFlow.Media.Mediummedium (from TwoPort)FluidHeatFlow.Media.Medium()Medium in the component
SI.Massm (from TwoPort)Mass of medium
SI.TemperatureT0 (from TwoPort)Initial temperature of medium
BooleanT0fixed (from TwoPort)falseInitial temperature guess value or fixed
RealtapT (from TwoPort)1Defines temperature of heatPort between inlet and outlet temperature
BooleanuseHeatPortfalse= true, if HeatPort is enabled
SI.Lengthh_gGeodetic height (height difference from flowPort_a to flowPort_b)
SI.AccelerationgModelica.Constants.g_nGravitation
Simple friction
SI.VolumeFlowRateV_flowLaminar (from SimpleFriction)Laminar volume flow
SI.PressuredpLaminar (from SimpleFriction)Laminar pressure drop
SI.VolumeFlowRateV_flowNominal (from SimpleFriction)Nominal volume flow
SI.PressuredpNominal (from SimpleFriction)Nominal pressure drop
RealfrictionLoss (from SimpleFriction)0Part of friction losses fed to medium

Connectors

TypeNameDefaultDescription
FluidHeatFlow.Interfaces.FlowPort_aflowPort_a (from TwoPort)
FluidHeatFlow.Interfaces.FlowPort_bflowPort_b (from TwoPort)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort

Components

TypeNameDefaultDescription
SI.Pressuredp (from TwoPort)Pressure drop a->b
SI.VolumeFlowRateV_flow (from TwoPort)Volume flow a->b
SI.HeatFlowRateQ_flow (from TwoPort)Heat exchange with ambient
SI.TemperatureT (from TwoPort)Outlet temperature of medium
SI.TemperatureT_a (from TwoPort)Temperature at flowPort_a
SI.TemperatureT_b (from TwoPort)Temperature at flowPort_b
SI.TemperatureDifferencedT (from TwoPort)Temperature increase of coolant in flow direction
SI.TemperatureT_q (from TwoPort)Temperature relevant for heat exchange with ambient
SI.PressurepressureDrop (from SimpleFriction)
SI.VolumeFlowRatevolumeFlow (from SimpleFriction)
SI.PowerQ_friction (from SimpleFriction)