Package ModelicaExtras.​Thermal.​FluidHeatFlow
Additional components for 1-dimensional incompressible thermo-fluid flow models

Information

Standard package icon.

Extends from Modelica.​Icons.​Package (Icon for standard packages).

Package Contents

NameDescription
ConvergingTee 
DivergingTee 
PipeExt 

Model ModelicaExtras.​Thermal.​FluidHeatFlow.​PipeExt
Partial model of two port

Information

Pipe with geometric parameters, temperature-dependent viscosity, and optional heat exchange.

Thermodynamic equations are defined by Partials.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.

Extends from Modelica.​Thermal.​FluidHeatFlow.​Interfaces.​Partials.​TwoPort (Partial model of two port).

Parameters

TypeNameDefaultDescription
Lengthdiameter0.032Pipe diameter
Lengthlength5Pipe length
Lengthh_g0Geodetic height (height difference from flowPort_a to flowPort_b)
RealrelRoughness1e-6Relative roughness
RealsumZeta0Sum of loss factors (bends, elbows)
RealfrictionLoss0Part of friction losses fed to medium
RealnueT[:,:][273,4e-4; 313,3.2e-5]Table kin. viscosity(T)
BooleanuseHeatPortfalseenable HeatPort
AccelerationgModelica.​Constants.​g_nGravitation
MediummediumModelica.Thermal.FluidHeatFlow.Media.Medium()Medium in the component
Massm Mass of medium
TemperatureT0 Initial temperature of medium
BooleanT0fixedfalseInitial temperature guess value or fixed
RealtapT1Defines temperature of heatPort between inlet and outlet temperature

Connectors

TypeNameDescription
FlowPort_aflowPort_a 
FlowPort_bflowPort_b 
HeatPort_aheatPortHeat port

Model ModelicaExtras.​Thermal.​FluidHeatFlow.​ConvergingTee

Information

The component ConvergingTee is a specialized element that works only in a narrow boundary condition. It represents a 90° T-branch with equal diameter for main passage (sides c and st) and any diameter for branch s.

The flow direction is mandantory and has to be from port st to port c and port s to port c. Other flow directions are not supported.

Calculation of zeta is taken from Idelchik 'Handbook of Hydraulic Resistance', 4th Edition 2007, Diagram 7.4

Parameters

TypeNameDefaultDescription
LengthDc0.005Diameter of main passage
LengthDs0.005Diameter of branch
MediummediumModelica.Thermal.FluidHeatFlow.Media.Medium()Medium in the component
TemperatureT0 Initial temperature of medium
BooleanT0fixedfalseInitial temperature guess value or fixed
RealfrictionLoss Part of friction losses fed to medium
BooleanenableZetaOutputfalseEnable zeta output
BooleanuseHeatPortfalseEnable HeatPort

Connectors

TypeNameDescription
FlowPort_bflowPort_cOutlet port c
FlowPort_aflowPort_stInlet port straight passage
FlowPort_aflowPort_sInlet port side branch
output RealOutputzeta_stzetacst
output RealOutputzeta_szetacs
output RealOutputQsQcQs/Qc
HeatPort_aheatPort 

Model ModelicaExtras.​Thermal.​FluidHeatFlow.​DivergingTee

Information

The component DivergingTee is a specialized element that works only in a narrow boundary condition. It represents a 90° T-branch with equal diameter for main passage (sides c and st) and any diameter for branch s.

The flow direction is mandantory and has to be from port c to port st and port c to port s. Other flow directions are not supported.

Calculation of zeta is taken from Idelchik 'Handbook of Hydraulic Resistance', 4th Edition 2007, Diagram 7.18 and 7.20

Parameters

TypeNameDefaultDescription
LengthDc0.005Diameter of main passage
LengthDs0.005Diameter of branch
MediummediumModelica.Thermal.FluidHeatFlow.Media.Medium()Medium in the component
TemperatureT0 Initial temperature of medium
BooleanT0fixedfalseInitial temperature guess value or fixed
RealfrictionLoss Part of friction losses fed to medium
BooleanenableZetaOutputfalseEnable zeta output
BooleanuseHeatPortfalseEnable HeatPort

Connectors

TypeNameDescription
FlowPort_aflowPort_cInlet port c
FlowPort_bflowPort_stOutlet port straight passage
FlowPort_bflowPort_sOutlet port side branch
output RealOutputzeta_stzetacst
output RealOutputzeta_szetacs
output RealOutputQsQcQs/Qc
HeatPort_aheatPort