modelDualPipe

Extends from DisHeatLib.BaseClasses.PartialFourPortVectorInterface (Partial model transporting fluid between two ports without storing mass or energy).

Parameters

TypeNameDefaultDescription
DisHeatLib.Pipes.BaseClasses.BasePipepipeTypePipe type
Modelica.SIunits.LengthLLength of the pipes
Assumptions
BooleanallowFlowReversal1 (from PartialFourPortVector)true= false to simplify equations, assuming, but not enforcing, no flow reversal for medium 1
BooleanallowFlowReversal2 (from PartialFourPortVector)true= false to simplify equations, assuming, but not enforcing, no flow reversal for medium 2
BooleanallowFlowReversaltrue= false to simplify equations, assuming, but not enforcing, no flow reversal
General › Ports
IntegernPorts1 (from PartialFourPortVector)Number of ports 1
IntegernPorts2 (from PartialFourPortVector)Number of ports 2
Nominal condition
Modelica.SIunits.MassFlowRatem1_flow_nominal (from PartialFourPortVectorInterface)Nominal mass flow rate
Modelica.SIunits.MassFlowRatem2_flow_nominal (from PartialFourPortVectorInterface)Nominal mass flow rate
Advanced
Medium1.MassFlowRatem1_flow_small (from PartialFourPortVectorInterface)1E-4*abs(m1_flow_nominal)Small mass flow rate for regularization of zero flow
Medium2.MassFlowRatem2_flow_small (from PartialFourPortVectorInterface)1E-4*abs(m2_flow_nominal)Small mass flow rate for regularization of zero flow
Medium.MassFlowRatem_flow_small1E-4*abs(pipeType.m_flow_nominal)Small mass flow rate for regularization of zero flow
Advanced › Diagnostics
Booleanshow_T (from PartialFourPortVectorInterface)false= true, if actual temperature at port is computed
Flow resistance
Booleanfrom_dpfalse= true, use m_flow = f(dp) else dp = f(m_flow)
BooleanlinearizeFlowResistancefalse= true, use linear relation between m_flow and dp for any flow rate
Additional parameters
RealReC4000Reynolds number where transition to turbulent starts
Realfac1Factor to take into account flow resistance of bends etc., fac=dp_nominal/dpStraightPipe_nominal
Realcf1.0Correction factor of heat losses (needed for aggregation)
Initialization
Modelica.SIunits.TemperatureT_sl_initMedium.T_defaultInitial temperature of supply pipe
Modelica.SIunits.TemperatureT_rl_initMedium.T_defaultInitial temperature of return pipe

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a1 (from PartialFourPortVector)Fluid connector a1 (positive design flow direction is from port_a1 to port_b1)
Modelica.Fluid.Interfaces.FluidPort_aport_a2 (from PartialFourPortVector)Fluid connector a2 (positive design flow direction is from port_a2 to port_b2)
Modelica.Fluid.Interfaces.FluidPorts_b[nPorts1]ports_b1 (from PartialFourPortVector)Fluid connectors b1 (positive design flow direction is from port_a1 to ports_b1)
Modelica.Fluid.Interfaces.FluidPorts_b[nPorts2]ports_b2 (from PartialFourPortVector)Fluid connectors b2 (positive design flow direction is from port_a2 to ports_b2)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aport_ht

Components

TypeNameDefaultDescription
Medium1.MassFlowRatem1_flow (from PartialFourPortVectorInterface)port_a1.m_flowMass flow rate from port_a1 to ports_b1 (m1_flow > 0 is design flow direction)
Modelica.SIunits.PressureDifferencedp1 (from PartialFourPortVectorInterface)port_a1.p - ports_b1[1].pPressure difference between port_a1 and ports_b1[1]
Medium2.MassFlowRatem2_flow (from PartialFourPortVectorInterface)port_a2.m_flowMass flow rate from port_a2 to ports_b2 (m2_flow > 0 is design flow direction)
Modelica.SIunits.PressureDifferencedp2 (from PartialFourPortVectorInterface)port_a2.p - ports_b2[1].pPressure difference between port_a2 and ports_b2[1]
Medium1.ThermodynamicStatesta_a1 (from PartialFourPortVectorInterface)Medium1.setState_phX(port_a1.p, noEvent(actualStream(port_a1.h_outflow)), noEvent(actualStream(port_a1.Xi_outflow)))Medium properties in port_a1
Medium1.ThermodynamicState[nPorts1]sta_b1 (from PartialFourPortVectorInterface)Medium1.setState_phX(ports_b1.p, noEvent(actualStream(ports_b1.h_outflow)), noEvent(actualStream(ports_b1.Xi_outflow)))Medium properties in ports_b1
Medium2.ThermodynamicStatesta_a2 (from PartialFourPortVectorInterface)Medium2.setState_phX(port_a2.p, noEvent(actualStream(port_a2.h_outflow)), noEvent(actualStream(port_a2.Xi_outflow)))Medium properties in port_a2
Medium2.ThermodynamicState[nPorts2]sta_b2 (from PartialFourPortVectorInterface)Medium2.setState_phX(ports_b2.p, noEvent(actualStream(ports_b2.h_outflow)), noEvent(actualStream(ports_b2.Xi_outflow)))Medium properties in ports_b2
Modelica.SIunits.PowerQ_flowHeat flow to soil (i.e., losses)

Contents

NameDescription
MediumMedium in the component

Revisions

  • Feburary 27, 2019, by Benedikt Leitner:
    Implementation and added User's guide.