modelTube

Tube (incl wall) with detailed energy, integrated momentum and mass balance

Extends from SiemensPower.Components.Pipes.TubeWithoutWall (Tube with detailed energy, integrated momentum and mass balance).

Information

This tube model comes with a detailed energy, but integrated momentum and mass balance. See pdf documentation for details of the integration of the hydrodynamic equations. Both heat transfer and friction pressure drop can be selected from a set of correlations.

Model restrictions

  • Mass accelaration pressure drop is not considered
  • dynamic mass balance has no effect if medium is incompressible

Author: Haiko Steuer SCD
Checked by:
Protection class: internal

License, Copyright and Disclaimer


Licensed by Siemens AG under the Siemens Modelica License 2

Copyright 2007-2012 Siemens AG. All rights reserved.

This Modelica package is free software and the use is completely at your own risk; it can be redistributed and/or modified under the terms of the Siemens Modelica License 2. For license conditions (including the disclaimer of warranty) see Siemens Modelica License 2 .

Parameters

TypeNameDefaultDescription
Realg (from BaseTube)Modelica.Constants.g_n
Realpi (from BaseTube)Modelica.Constants.pi
IntegernumberOfNodes (from BaseTube)2Number of nodes for thermal variables
SI.LengthdiameterInner (from BaseTube)geoPipe.d_out - 2*geoPipe.s
SI.Lengthdz (from BaseTube)geoPipe.L/numberOfNodes
SI.VolumeV (from BaseTube)geoPipe.A*geoPipe.L
SI.AreaA (from BaseTube)geoPipe.A
SI.VolumeVTotal (from BaseTube)geoPipe.Nt*V
SI.VolumeVCell (from BaseTube)V/numberOfNodes
Realsinphi (from BaseTube)geoPipe.H/geoPipe.L
Initialization
Modelica.SIunits.MassFlowRatem_flow_start (from PartialTwoPortTransport)1Guess value for mass flow rate
Medium.AbsolutePressurepIn_start (from PartialTwoPortTransport)Medium.reference_pStart value of inlet pressure
Medium.AbsolutePressurepOut_start (from PartialTwoPortTransport)Medium.reference_pStart value of outlet pressure
BooleanuseTemperatureStartValue (from PartialTwoPortTransport)falseUse T_start if true, otherwise h_start
Medium.SpecificEnthalpyhIn_start (from PartialTwoPortTransport)if useTemperatureStartValue then Medium.specificEnthalpy_pTX(pIn_start, TIn_start, XIn_start) else Medium.h_defaultStart value of specific enthalpy
Medium.SpecificEnthalpyhOut_start (from PartialTwoPortTransport)if useTemperatureStartValue then Medium.specificEnthalpy_pTX(pOut_start, TOut_start, XOut_start) else Medium.h_defaultStart value of specific outlet enthalpy
Medium.TemperatureTIn_start (from PartialTwoPortTransport)if useTemperatureStartValue then Medium.reference_T else Medium.temperature_phX(pIn_start, hIn_start, XIn_start)Start value of temperature
Medium.TemperatureTOut_start (from PartialTwoPortTransport)if useTemperatureStartValue then Medium.reference_T else Medium.temperature_phX(pOut_start, hOut_start, XOut_start)Start value of outlet temperature
Medium.MassFraction[Medium.nX]XIn_start (from PartialTwoPortTransport)Medium.reference_XStart value of mass fractions m_i/m
Medium.MassFraction[Medium.nX]XOut_start (from PartialTwoPortTransport)Medium.reference_XStart value of mass fractions m_i/m
BooleaninitializeInletPressure (from BaseTube)trueadd steady state equation for pressure
BooleaninitializeSteadyStateEnthalpies (from BaseTube)truelets initialize der(h)=0
BooleaninitializeSteadyStateInletEnthalpy (from BaseTube)truesteady state initial condition for input enthalpy
SI.CoefficientOfHeatTransferalpha_start10000Heat transfer coefficient (not too small for valid wall temperature)
Geometry and correlations
SiemensPower.Utilities.Structures.PipeGeogeoPipe (from BaseTube)Geometry of tube
Advanced › Initialization
Medium.SpecificEnthalpy[numberOfNodes]h_start (from BaseTube)hIn_start*ones(numberOfNodes) + (hOut_start - hIn_start)*equalCellDistributionguess values for initial enthalpy vector
SI.HeatFlowRate[numberOfNodes]Q_flow_start (from BaseTube)(hOut_start - hIn_start)*m_flow_start/(geoPipe.Nt*numberOfNodes)*ones(numberOfNodes)Detailed start values for heat flow
Advanced › Inner heat transfer
SI.AreaheatedArea (from BaseTube)geoPipe.Nt*geoPipe.L*Modelica.Constants.pi*diameterInnerTotal Area for heat transfer
Wall
IntegernumberOfWallLayers3Number of wall layers
SiemensPower.Utilities.Structures.PropertiesMetalmetalWall metal properties
Initialization › Wall
Medium.Temperature[numberOfNodes]TWall_startT_start + q_start/alpha_start*ones(numberOfNodes)start values for wall temperatures
Advanced › Branch geometry (for stress calculation)
SI.LengthdiameterBranchgeoPipe.d_out - 2*geoPipe.sAverage aperture of branch
SI.LengthwallThicknessBranchgeoPipe.sWall thickness of branch

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aportIn (from PartialTwoPortTransport)Inlet port
Modelica.Fluid.Interfaces.FluidPort_bportOut (from PartialTwoPortTransport)Outlet port
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[numberOfNodes]heatPortOuter wall heat port

Components

TypeNameDefaultDescription
Medium.SpecificEnthalpyhIn (from PartialTwoPortTransport)actual state at portIn
Medium.SpecificEnthalpyhOut (from PartialTwoPortTransport)actual state at portOut
SI.Pressuredp (from PartialTwoPortTransport)
Medium.BaseProperties[numberOfNodes]fluid (from BaseTube)
Medium.MassFlowRate[numberOfNodes]m_flows (from BaseTube)
Medium.Densityd_av (from BaseTube)
SI.SpecificVolumevol_av (from BaseTube)
SI.Pressuredpfric (from BaseTube)
SI.Pressuredphyd (from BaseTube)
Medium.AbsolutePressurep (from TubeWithoutWall)pressure
SiemensPower.Components.SolidComponents.WallwallMetal wall of the tube
SiemensPower.Interfaces.portHeatheatportinner wall (masked) heat port
SI.CoefficientOfHeatTransfer[numberOfNodes]alpha

Contents

NameDescription
heattransfer

Revisions

  • December 2006, added by Haiko Steuer