modelWallFriction

Extends from BaseClasses.RestrictionInterface.

Information

This component defines the complete regime of wall friction. The details are described in the MSL User's Guide. The functional relationship of the friction loss factor λ is displayed in the next figure. Function massFlowRate_dp() defines the "red curve" ("Swamee and Jain"), where as function pressureLoss_m_flow() defines the "blue curve" ("Colebrook-White"). The two functions are inverses from each other and give slightly different results in the transition region between Re = 1500 .. 4000, in order to get explicit equations without solving a non-linear equation.

PipeFriction1

Parameters

TypeNameDefaultDescription
Sizing
SI.LengthLLength of pipe
SI.DiameterDInner (hydraulic) diameter of pipe
SI.Lengthroughness2.5e-5Absolute roughness of pipe (default = smooth steel pipe)
Advanced
Booleanfrom_dptrue= true, use m_flow = f(dp) else dp = f(m_flow)
Initialization › Fluid
SI.AbsolutePressurep_init (from PartialFluidComponent)environment.p_ambientInitial temperature of the component

Connectors

TypeNameDefaultDescription
OpenHydraulics.Interfaces.FluidPortport_a (from HorizontalTwoPort)
OpenHydraulics.Interfaces.FluidPortport_b (from HorizontalTwoPort)

Components

TypeNameDefaultDescription
OpenHydraulics.Fluids.BaseClasses.PartialFluidoil (from PartialFluidComponent)This model must be defined in each circuit; the type must be a subtype of PartialFluid
SI.VolumeFlowRateq_flow_a (from HorizontalTwoPort)port_a.m_flow/oil.density(p_a)
SI.VolumeFlowRateq_flow_b (from HorizontalTwoPort)port_b.m_flow/oil.density(p_b)
SI.Pressuredp (from HorizontalTwoPort)port_a.p - port_b.pPressure drop (negative for pumps)
SI.AbsolutePressurep_a (from HorizontalTwoPort)Oil properties at the inlet
SI.AbsolutePressurep_b (from HorizontalTwoPort)Oil properties at the inlet