modelStaticCore

Pipe model using static conditions

Extends from AixLib.Fluid.Interfaces.PartialTwoPort.

Information

Pipe with heat loss using the time delay based heat losses for the transport delay of the fluid.

Implementation

This model is based on FixedResistances.BaseClasses.PlugFlowCore but does not contain the spatialDistribution operator.

The spatialDistribution operator is used for the temperature wave propagation through the length of the pipe. This operator is contained in BaseClasses.PlugFlow.

This model does not include thermal inertia of the pipe wall. The wall inertia is implemented in StaticPipe.

The removal of the thermal inertia with a mixing volume can be desirable in the case where mixing volumes are added manually at the pipe junctions.

The model PlugFlowHeatLoss implements a heat loss in design direction, but leaves the enthalpy unchanged in opposite flow direction. Therefore it is used in front of and behind the time delay.

The pressure drop is implemented using AixLib.Fluid.FixedResistances.HydraulicDiameter.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.LengthdhHydraulic diameter (assuming a round cross section area)
Modelica.Units.SI.LengthlengthPipe length
RealRThermal resistance per unit length from fluid to boundary temperature
RealCThermal capacity per unit length of pipe
Realfac1Factor to take into account flow resistance of bends etc., fac=dp_nominal/dpStraightPipe_nominal
Modelica.Units.SI.LengththicknessPipe wall thickness
RealReC4000Reynolds number where transition to turbulent starts
Nominal condition
Modelica.Units.SI.Velocityv_nominalVelocity at m_flow_nominal (used to compute default value for hydraulic diameter dh)
Modelica.Units.SI.MassFlowRatem_flow_nominalNominal mass flow rate
Advanced
Modelica.Units.SI.MassFlowRatem_flow_small1E-4*abs(m_flow_nominal)Small mass flow rate for regularization of zero flow
Booleanfrom_dpfalse= true, use m_flow = f(dp) else dp = f(m_flow)
BooleanhomotopyInitializationtrue= true, use homotopy method
Booleanlinearizedfalse= true, use linear relation between m_flow and dp for any flow rate
Geometry
Modelica.Units.SI.Heightroughness2.5e-5Average height of surface asperities (default: smooth steel pipe)
Initialization
Modelica.Units.SI.TemperatureT_start_inMedium.T_defaultInitialization temperature at pipe inlet
Modelica.Units.SI.TemperatureT_start_outMedium.T_defaultInitialization temperature at pipe outlet
BooleaninitDelayfalseInitialize delay for a constant mass flow rate if true, otherwise start from 0
Modelica.Units.SI.MassFlowRatem_flow_start0

Components

TypeNameDefaultDescription
AixLib.Fluid.FixedResistances.HydraulicDiameterresPressure drop calculation for this pipe
AixLib.Fluid.FixedResistances.BaseClasses.PlugFlowHeatLossheaLos_aHeat loss for flow from port_b to port_a
AixLib.Fluid.FixedResistances.BaseClasses.PlugFlowHeatLossheaLos_bHeat loss for flow from port_a to port_b
AixLib.Fluid.Sensors.MassFlowRatesenMasFloMass flow sensor
StaticTransportDelaytimDelTime delay
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPortHeat port to connect environment (positive heat flow for heat loss to surroundings)

Revisions

  • September 25, 2019, by Nils Neuland:
    Revised variable names and documentation to follow guidelines. Corrected malformed hyperlinks.