modelPartialStraightPipe

Base class for straight pipe models

Extends from Modelica.Fluid.Interfaces.PartialTwoPort (Partial component with two ports).

Information

Base class for one dimensional flow models. It specializes a PartialTwoPort with a parameter interface and icon graphics.

Parameters

TypeNameDefaultDescription
SI.VolumeVcrossArea*length*nParallelVolume size
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)system.allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Geometry
RealnParallel1Number of identical parallel pipes
SI.DiameterdiameterDiameter of circular pipe
Modelica.Fluid.Types.Roughnessroughness2.5e-5Average height of surface asperities (default: smooth steel pipe)
General › Geometry
SI.LengthlengthLength
BooleanisCirculartrue= true, if cross sectional area is circular
SI.AreacrossAreaModelica.Constants.pi*diameter*diameter/4Inner cross section area
SI.LengthperimeterModelica.Constants.pi*diameterInner perimeter
Static head
SI.Lengthheight_ab0Height(port_b) - Height(port_a)

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a (from PartialTwoPort)Fluid connector a (positive design flow direction is from port_a to port_b)
Modelica.Fluid.Interfaces.FluidPort_bport_b (from PartialTwoPort)Fluid connector b (positive design flow direction is from port_a to port_b)

Components

TypeNameDefaultDescription
Modelica.Fluid.Systemsystem (from PartialTwoPort)System wide properties

Contents

NameDescription
FlowModel