modelEntrance
Pipe entrance loss from a large plenum/reservoir into a pipe (minor loss)
Extends from TRANSFORM.Fluid.FittingsAndResistances.BaseClasses.PartialResistancenew.
Information
Minor-loss resistance for the entrance of a pipe drawing from a large plenum/reservoir. The pressure loss is
dp = K*m_flow^2/(2*rho*A^2)
referenced to the pipe velocity head, with a user-supplied entrance loss coefficient K. Typical values:
- sharp-edged (flush):
K ≈ 0.5(Idelchik/Crane) – default; Rennels recommends 0.57; - slightly rounded:
K ≈ 0.2–0.25; well-rounded / bellmouth:K ≈ 0.03–0.05; - re-entrant (Borda, protruding):
K ≈ 0.78–1.0; - beveled (45°, moderate):
K ≈ 0.2–0.3.
The loss opposes the flow (design direction is plenum → pipe). Circular cross-section.
References
Idelchik, I. E. Handbook of Hydraulic Resistance, Begell House; Rennels & Hudson, Pipe Flow (2012).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialResistancenew) | true | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
| Visualization | |||
| Boolean | showName (from PartialResistancenew) | true | = false to hide component name |
| Initialization | |||
| SI.MassFlowRate | m_flow_start (from PartialResistancenew) | 0 | Initial mass flow rate |
| Advanced | |||
| SI.MassFlowRate | m_flow_smooth (from PartialResistancenew) | 0.001 | Smoothing tolerance around zero flow rate |
| SI.MassFlowRate | dp_smooth (from PartialResistancenew) | 0.001 | Smoothing tolerance around zero flow rate |
| SI.ReynoldsNumber | Re_lam (from PartialResistancenew) | 2300 | Laminar transition Reynolds number |
| SI.ReynoldsNumber | Re_turb (from PartialResistancenew) | 4000 | Turbulent transition Reynolds number |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.FluidPort_Flow | port_a (from PartialResistanceInterface) | ||
| Interfaces.FluidPort_Flow | port_b (from PartialResistanceInterface) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.ThermodynamicState | state (from PartialResistanceInterface) | ||
| Medium.ThermodynamicState | state_a (from PartialResistancenew) | ||
| Medium.ThermodynamicState | state_b (from PartialResistancenew) | ||
| SI.PressureDifference | dp (from PartialResistancenew) | ||
| SI.MassFlowRate | m_flow (from PartialResistancenew) | ||
| SI.Length | dimension | 0.05 | Pipe inner diameter |
| Units.NonDim | K | 0.5 | Entrance loss coefficient (ref. pipe velocity) |
| SI.Velocity | v | Velocity in the pipe | |
| SI.Area | crossArea | 0.25*Modelica.Constants.pi*dimension^2 | Pipe cross-sectional area |