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.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Sizing | |||
| SI.Length | L | Length of pipe | |
| SI.Diameter | D | Inner (hydraulic) diameter of pipe | |
| SI.Length | roughness | 2.5e-5 | Absolute roughness of pipe (default = smooth steel pipe) |
| Advanced | |||
| Boolean | from_dp | true | = true, use m_flow = f(dp) else dp = f(m_flow) |
| Initialization › Fluid | |||
| SI.AbsolutePressure | p_init (from PartialFluidComponent) | environment.p_ambient | Initial temperature of the component |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| OpenHydraulics.Interfaces.FluidPort | port_a (from HorizontalTwoPort) | ||
| OpenHydraulics.Interfaces.FluidPort | port_b (from HorizontalTwoPort) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| OpenHydraulics.Fluids.BaseClasses.PartialFluid | oil (from PartialFluidComponent) | This model must be defined in each circuit; the type must be a subtype of PartialFluid | |
| SI.VolumeFlowRate | q_flow_a (from HorizontalTwoPort) | port_a.m_flow/oil.density(p_a) | |
| SI.VolumeFlowRate | q_flow_b (from HorizontalTwoPort) | port_b.m_flow/oil.density(p_b) | |
| SI.Pressure | dp (from HorizontalTwoPort) | port_a.p - port_b.p | Pressure drop (negative for pumps) |
| SI.AbsolutePressure | p_a (from HorizontalTwoPort) | Oil properties at the inlet | |
| SI.AbsolutePressure | p_b (from HorizontalTwoPort) | Oil properties at the inlet |