modelPipe

Pipe with two ports fluid ports and an internal fluid

Extends from PipePhysical (Physical description of a pipe of flexible shape, without fluid characteristics.), Interfaces.TwoFluidPorts (To be used by equipment with two fluid ports.).

Parameters

TypeNameDefaultDescription
Physical data
BooleanuseTubeLength (from PipePhysical)trueuse the supplied length
Modelica.Units.SI.DistancelTube (from PipePhysical)0supplied individual tube length
BooleanfixNumTubes (from PipePhysical)trueif true fixes the number of tubes to numTubes
IntegernumTubes (from PipePhysical)1number of parallel identical paths
BooleanisCircular (from PipePhysical)truethe pipe is circular in shape
BooleanuseDiameter (from PipePhysical)truethe supplied diameter will be used for calculation of section and perimeter
Modelica.Units.SI.Distancedi (from PipePhysical)0.0supplied internal diameter if path is circular
BooleanuseSectionAndPerimeter (from PipePhysical)falsethe supplied section and perimeter will be used
Modelica.Units.SI.Areasection (from PipePhysical)0supplied pipe section if not circular
Modelica.Units.SI.Distanceperimeter (from PipePhysical)0supplied perimeter if not circular
Modelica.Units.SI.Distancethickness (from PipePhysical)1e-3pipe thickness. Vessel wall thickness for halfcoils
Modelica.Units.SI.Distanceroughness (from PipePhysical)1.5e-005pipe roughness. SS:1.5e-5, Steel new:4.6e-5, Steel old:2.0e-4, Concrete:1.5e-3
Modelica.Units.SI.DistancethicknessInsul (from PipePhysical)0insulation thickness
Modelica.Units.SI.DensityrhoWall (from PipePhysical)8000
Ports links
BooleanuseElevDifference (from TwoFluidPorts)trueintroduces, or not, an equation for the ports elevation. Use only in one connector
FreeFluids.Types.ElevationOptionelevCalcMethod (from TwoFluidPorts)FreeFluids.Types.ElevationOption.differentialif useElevDifference==true, selects the equation to use: differential, or absolute for PortB
Modelica.Units.SI.LengthelevDifference (from TwoFluidPorts)0.0used only if previously selected. Positive if PortB higher than PortA
Modelica.Units.SI.LengthportBelevation (from TwoFluidPorts)0.0used only if previously selected.
BooleancalcEnthalpyDifference (from TwoFluidPorts)trueif true, will calculate the enthalpy difference between ports. Use only in one connector
BooleanpassComposition (from TwoFluidPorts)trueif true, the equation PortA.X=PortB.X will be activated
Flow
IntegernumActiveTubesnumTubesnumber of parallel identical paths used with flow. Default=numTubes
RealpipeComplexity0Approx. estimation of equivalent length,0=not used,0.25=supply lines,0.5=long runs, 1=normal,2=valves,4=complex valves
RealequivL_Di0Equivalent length of accesories as multiples of Di
RealnumVelocityHeads0number of velocity heads for pressure loss
Modelica.Units.SI.Areakv0This allows for special head loses to be incorporated inside the pipe calculation via Kv
Fractionaperture1Fraction of Kv used
BooleanfullBoretruetrue if the full pipe section is used for flow
BooleanisCompressibleFlowfalseindicates if kinetic energy and momentum are taken into account or not

Connectors

TypeNameDefaultDescription
FreeFluids.Interfaces.FluidPortAPortA (from TwoFluidPorts)
FreeFluids.Interfaces.FluidPortBPortB (from TwoFluidPorts)

Components

TypeNameDefaultDescription
Modelica.Units.SI.DiameterDi (from PipePhysical)pipe internal diameter only if circular, otherwise four times Section/Perimeter
Modelica.Units.SI.AreaPathSection (from PipePhysical)Internal section of the tube. But not the flow section if double pipe
Modelica.Units.SI.DistancePathPerimeter (from PipePhysical)Internal perimeter of the tube. But not the flow perimeter if double pipe
Modelica.Units.SI.DistanceLtotal (from PipePhysical)total pipe length, as necessary for obtainning its total weight
Modelica.Units.SI.DistanceLtube (from PipePhysical)pipe path length, as necessary for obtainning friction loss
IntegerNumTubes (from PipePhysical)number of parallel identical paths
Modelica.Units.SI.AreaSiTube (from PipePhysical)each tube internal surface
Modelica.Units.SI.AreaSiTotal (from PipePhysical)total pipe internal surface
Modelica.Units.SI.VolumeViTube (from PipePhysical)each tube internal volume
Modelica.Units.SI.VolumeViTotal (from PipePhysical)total pipe internal volume
Modelica.Units.SI.DiameterDo (from PipePhysical)pipe external diameter
Modelica.Units.SI.DiameterDinsul (from PipePhysical)pipe diameter with insulation
Modelica.Units.SI.AreaSoTube (from PipePhysical)each tube external surface
Modelica.Units.SI.AreaSoTotal (from PipePhysical)total pipe external surface
Modelica.Units.SI.VolumeVoTube (from PipePhysical)each tube external volume
Modelica.Units.SI.VolumeVoTotal (from PipePhysical)total pipe external volume
Modelica.Units.SI.AreaSinsulTube (from PipePhysical)each tube insulation surface
Modelica.Units.SI.AreaSinsulTotal (from PipePhysical)total pipe insulation surface
Modelica.Units.SI.MassMassPipeTotal (from PipePhysical)total mass of the pipe
Modelica.Units.SI.SpecificEnthalpyHdiff (from TwoFluidPorts)specific enthalpy difference: Port B - Port A
Modelica.Units.SI.PressureDifferencePdiff (from TwoFluidPorts)pressure difference: Port B - Port A
IntegerNumActiveTubesnumber of parallel identical paths used with flow.
RealSlopepipe slope as (PortB.Elevation-PortA.Elevation)/Ltube
Modelica.Units.SI.AreaSiActiveactive pipe internal surface
Modelica.Units.SI.VolumeViActiveactive pipe internal volume
Modelica.Units.SI.AreaSoActiveactive pipe external surface
Modelica.Units.SI.VolumeVoActiveactive pipe external volume
Modelica.Units.SI.AreaSinsulActiveactive pipe external surface
Modelica.Units.SI.DistanceLeTubeequivalent length of the pipe for pressure loss
Modelica.Units.SI.AreaPathSectionActivesection of each tube used for flow calculation
Modelica.Units.SI.DistancePathPerimeterActiveperimeter of each tube used for flow calculation
Modelica.Units.SI.DiameterDhfour time the hydraulic radius
Modelica.Units.SI.MassMassProductTotalMass of product inside all the tubes
Modelica.Units.SI.PressurePLossFrictionfriction head loss