Short Pipe
The short pipe is used to describe the pressure drop, gravity potential difference, heat transfer outside the pipe and transient pipe storage between two gas nodes. The component name in the Workbench is "Stub" and the kernel class ID is Pipe.
If the pipe section needs to be discretized along the way, to show spatial distribution, or to describe the long-distance gas transmission process, "long-distance pipeline" should be used first; the short pipe adopts the endpoint lumped model and does not include internal grids.
Component Appearance and Location
Expand Pipeline Valve in the component library on the left and drag the first "short pipe" icon into the canvas. After selecting the component, the parameter panel will be displayed on the right.
The stub has two fluid ports:
| Port Key | Type | Direction | Interface Name | Display Conditions |
|---|---|---|---|---|
0 | FLUID | input | fluid inlet | always show |
1 | FLUID | output | Fluid outlet | always show |
The solver allows reverse flow; the "inlet/outlet" here is mainly used for port number, initial direction and parameter description, and does not limit the actual flow direction.
The short tube provides only two fluid ports. When pressure or flow needs to be fed into the control network, use a measurement instrument to select this stub and the corresponding measurement signal.
Parameter List
Equipment Specifications
| Name | key | Type | Default / Options | Description |
|---|---|---|---|---|
| Pipe Internal Diameter [mm] | Diameter | real | 50 | Actual internal diameter from design or measurements. |
| Pipe Length [m] | Length | real | 10 | Centerline length for lumped connection pipes, including linepack. Use transmission pipeline for profiles or pressure-wave analysis. |
| Wall Thickness [mm] | WallThickness | real | 0 | Actual steel thickness determines outer diameter/area; overall coefficient is separate. |
| Internal Roughness [mm] | Roughness | real | 0.045 | Absolute internal roughness from material/condition; ordinary steel reference 0.045 mm. |
| Friction Model | FrictionModel | choice | Colebrook / AGA / Weymouth / Panhandle A / Panhandle B / Nikuradse / Specified Darcy Factor | Friction method according to project design practice. |
| AGA Resistance Correction | AGADragFactor | real | 0.98 | AGA Drag Factor from project/calibration data, separate from pipeline efficiency. |
| Colebrook Method | ColebrookSolutionMethod | choice | Explicit Approximation / Implicit Iteration | Explicit approximation versus iterative solution of Colebrook. |
| Darcy Friction Factor | FrictionCoefficient | real | 0.02 | Darcy factor in (0,1], from design/test data. |
| Pipeline Efficiency Factor | PipeEfficiency | real | 1 | Friction calibration: 1 unchanged, below 1 increases resistance, above 1 reduces it. Calibrate against measured drop. |
| Inlet Elevation [m] | InletElevation | real | 0 | Inlet elevation on common datum, unchanged by reversal. |
| Outlet Elevation [m] | OutletElevation | real | 0 | Outlet elevation on common datum, unchanged by reversal. |
| Linepack Pressure Upper Limit [MPa(g)] | MaxPressure | real | 150 | Transient linepack/charging pressure ceiling. At the limit, affected supply-flow boundaries become pressure-constrained for actual inflow. Use allowed project pressure. |
External Heat Transfer
| Name | key | Type | Default / Options | Description |
|---|---|---|---|---|
| Overall Heat Transfer Coefficient Mode | HeatTransferCoefficientInputMode | choice | Fixed Value / Time Curve | Fixed coefficient or a global time curve. |
| Pipe Overall Heat Transfer Coefficient [W/(m²·K)] | HeatTransferCoefficient | real | 0 | Overall coefficient on steel outside area, including wall, insulation, and surroundings. |
| Overall Coefficient Curve | CurveLibraryHeatTransferCoefficientName | choice | __UNSELECTED__ | Select a time series for the overall heat transfer coefficient from the global curve library. Its area basis is the steel pipe's outer surface. Steady-state runs use the value at the simulation start time. For transient runs, the series must cover the entire simulation period. The solver does not extrapolate. |
| Ambient Temperature Mode | AmbientTemperatureInputMode | choice | Fixed Value / Time Curve | Fixed ambient or global time curve. |
| Ambient Temperature [℃] | AmbientTemperature | real | 25 | Surrounding air, soil, or water temperature according to installation. |
| Ambient Temperature Curve | CurveLibraryTemperatureName | choice | __UNSELECTED__ | Select a time series for the ambient temperature around the pipe from the global curve library. Steady-state runs use the value at the simulation start time. For transient runs, the series must cover the entire simulation period. The solver does not extrapolate. |
Parameter Guidance
- Geometry. Enter length in m and internal diameter and wall thickness in mm. If the specification gives outside diameter, subtract twice the wall thickness before entering the internal diameter. Use a common elevation datum for both ends.
- Friction. Choose the model before entering roughness or constant factor; see selection guidance below.
- Heat transfer. In non-isothermal calculations, choose a fixed value or time curve independently for the overall coefficient and ambient temperature. The coefficient uses the steel pipe outside area. A coefficient of zero removes environmental heat exchange.
Enter Curves
Set the quantity to Time Curve and select Edit Local Curve or Reference Curve Database for its source. Enter time and value pairs locally or select a named curve of the same type. Use W/(m²·K) for overall heat transfer coefficient and °C for ambient temperature. Set the sources independently. Choose a curve source.
How to Choose Friction Model
- For general engineering calculations, Colebrook + Explicit Approximation is preferred. It works for laminar, transition zone and turbulent flows and takes roughness into account.
- When you need to solve the standard Colebrook equation directly, choose Implicit Iteration. The two methods correspond to the same physical equation, but the numerical solution methods are different.
- AGA, Weymouth, and Panhandle A/B are gas pipeline empirical correlations that should be consistent with the design standards and historical definition adopted for the project.
- Use Constant Coefficient of Friction only when there is a calibration value, the value is clearly given in the design manual, or when an existing model needs to be reproduced.
- "Pipe efficiency" is an independent correction for friction and should not be used as a substitute for wall roughness or constant friction coefficient.
Modeling Steps
- Select steady-state/transient and isothermal/non-isothermal globally.
- Add a short pipe and connect fluid ports.
- Enter diameter, length, maximum allowable pressure, wall, and roughness; follow units, especially mm.
- Retain Colebrook explicit approximation unless project data specify otherwise.
- Enter elevations for rises/falls; use equal values for level pipe.
- For non-isothermal calculations, set the overall heat transfer coefficient and ambient temperature independently. Enter local time points or select a named curve for each time-dependent input. A coefficient of zero approximates an adiabatic boundary.
- Target the pipe with a measurement instrument for measurements.
- Check pressure difference, direction, velocity, temperature, and linepack.
View Results
The short tube results page highlights:
- Inlet/outlet pressure and pipe section pressure difference;
- Inlet/outlet standard volume flow and current working condition volume flow;
- inlet/outlet temperature, density and flow rate;
- Transient storage mass
inventoryMass[kg]; - Standard state storage
standardInventory[Nm³]; - Medium composition and chemical composition.
Steady-state calculations also look at the current in-pipe inventory, but the cumulative effect of inventory over time only enters the conservation equation in transient steps.
Common Inspections
| Phenomenon | Priority Check |
|---|---|
| The pressure drop is obviously too large | ID units, length, roughness, pipe efficiency, and whether the constant coefficient of friction is misused. |
| The voltage drop is in the opposite direction than expected | Actual flow direction and pressure at both ends; short pipe allows reverse flow. |
| The outlet temperature does not change | Whether the global model is an isothermal model, whether the total heat transfer coefficient is 0, and whether the ambient temperature is close to the fluid temperature. |
| Transient mass imbalance | The time step, the sign of the flow at both ends, and whether the storage mass is increasing or decreasing. |
| There is no signal from the controller | Verify the measurement instrument’s target device, measurement signal options, and wiring of the signal port to the controller. |
Professional Theory
This section describes the main physical model used in the short pipe component of NexusFlow gas pipe network simulation. The short pipe is a two-port lumped model: it calculates the pressure drop between the ports and uses a lumped inventory to describe the pipe mass, composition and energy in the transient state; it does not establish an internal grid along the length of the pipe.
1. Symbols and Geometric Quantities
| Symbol | Meaning | Unit |
|---|---|---|
| Pipe inner diameter | m | |
| Pipe length | m | |
| Pipe wall thickness | m | |
| Pipe outer diameter, | m | |
| Flow cross-sectional area | m² | |
| Heat exchange area outside the tube | m² | |
| absolute roughness | m | |
| pipeline efficiency | — | |
| Current working condition volume flow rate at inlet and outlet | m³/s | |
| Absolute pressure at inlet and outlet | Pa | |
| Density at both ends | kg/m³ | |
| elevation of both ends | m | |
| Total heat transfer coefficient of tube wall | W/(m²·K) | |
| ambient temperature | K |
The inner diameter, wall thickness and roughness in the interface are converted from mm to m. The geometric quantity is
2. Mass Conservation and Transient Storage
2.1 Steady State
In steady state or without time step, the short tube satisfies
That is, the inlet mass flow rate is equal to the outlet mass flow rate.
2.2 Transient
The current implementation enables lumped storage by default. The inventory quality of the new time layer is approximated by a density trapezoid at both ends:
The discrete mass conservation is
Therefore, unequal mass flow rates at both ends do not necessarily indicate an error: the difference may be increasing or releasing pipe stock. inventoryMass and standardInventory in the results can be used to judge this process.
3. Pressure Equation
The kernel uses the following pressure residuals:
Among them
The third term is the gravity head, and the fourth term is the inertia correction caused by different endpoint flow rates. In the steady state, there is usually , the inertia correction approaches zero, and the equation degenerates into the common "pressure difference = friction along the way + elevation pressure head".
4. Darcy Friction
All interface models ultimately return a Darcy friction coefficient of :
Pipeline efficiency acts independently on friction along the way:
Therefore, will increase the voltage drop, and will decrease the voltage drop. Efficiency does not change the original Darcy coefficient returned by the friction model.
4.1 Colebrook-White
The standard equation of the turbulent zone is
The two interface solution methods correspond to the same equation:
- Explicit Approximation: directly calculates turbulent friction, suitable as the default method;
- Implicit Iteration: Taking as the unknown quantity, use Newton's method to find the standard equation.
At low Reynolds numbers, the laminar flow relationship is used, and the transition zone is a smooth transition between laminar and turbulent flow relationships.
4.2 AGA
is used when ; the AGA smooth tube implicit relationship is used in the middle zone; the completely rough form is used after the critical Reynolds number is exceeded:
4.3 Weymouth
4.4 Panhandle A/B
In the implementation, the empirical model first calculates the original correlation expression, and then multiplies the short pipe uniformly by . The above formula combines the two steps to facilitate engineering understanding; there is no need to repeatedly correct the efficiency.
4.5 Constant Friction Coefficient
The constant model uses user-entered Darcy coefficients directly:
5. Steady-State Heat Transfer and Joule–Thomson Correction
Non-isothermal steady state uses Shukhov exponent
During forward flow
The Joule–Thomson correction for frozen physical properties is
When or , it degrades to
During reverse flow, the upstream and downstream ends are exchanged. In the zero-flow state, the temperatures at both ends are kept under conditions to avoid transmitting temperature with uncertain flow direction.
6. Transient Energy Conservation
Instead of using the steady-state Shukhov algebra, the transient solves for the lumped inventory energy. Its physical form is
Among them
The inlet carries the respective enthalpy, and the outlet takes away the enthalpy of the current stock mixture; the tube wall heat exchange directly enters the conservation of energy. Therefore, the transient temperature response is affected by flow, storage, physical properties and heat transfer at the same time.
7. Conservation of Components
When there is a clear inflow at steady state, the outlet composition is equal to the upstream composition. In the transient state, solve for the inventory moles for each independent component :
The new inventory mole fraction is
This lumped mixing assumption is suitable for short pipes and fast network calculations, but does not produce a component front along the length of the pipe; a pipe model with along-the-line discretization should be used when spatial propagation is required.
8. Model Boundaries and Usage Suggestions
- The short pipe is a single-phase gas model; before use, make sure that the working conditions do not enter the two-phase zone.
- The lumped model only saves an inventory state and does not resolve the pressure, temperature and component distribution along the process.
- Roughness, efficiency, and constant friction coefficient are different physical quantities and should not be substituted for each other.
- The empirical friction correlation should be consistent with engineering standards; when reusing parameters across projects, the units and coefficient calibers should be checked.
- Transient results should check port flow and pipe storage changes at the same time, and cannot just use "whether the inlet flow is equal to the outlet flow" to judge conservation.