Skip to main content

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.

Created with Fabric.js 5.3.0

The stub has two fluid ports:

Port KeyTypeDirectionInterface NameDisplay Conditions
0FLUIDinputfluid inletalways show
1FLUIDoutputFluid outletalways 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

NamekeyTypeDefault / OptionsDescription
Pipe Internal Diameter [mm]Diameterreal50Actual internal diameter from design or measurements.
Pipe Length [m]Lengthreal10Centerline length for lumped connection pipes, including linepack. Use transmission pipeline for profiles or pressure-wave analysis.
Wall Thickness [mm]WallThicknessreal0Actual steel thickness determines outer diameter/area; overall coefficient is separate.
Internal Roughness [mm]Roughnessreal0.045Absolute internal roughness from material/condition; ordinary steel reference 0.045 mm.
Friction ModelFrictionModelchoiceColebrook / AGA / Weymouth / Panhandle A / Panhandle B / Nikuradse / Specified Darcy FactorFriction method according to project design practice.
AGA Resistance CorrectionAGADragFactorreal0.98AGA Drag Factor from project/calibration data, separate from pipeline efficiency.
Colebrook MethodColebrookSolutionMethodchoiceExplicit Approximation / Implicit IterationExplicit approximation versus iterative solution of Colebrook.
Darcy Friction FactorFrictionCoefficientreal0.02Darcy factor in (0,1], from design/test data.
Pipeline Efficiency FactorPipeEfficiencyreal1Friction calibration: 1 unchanged, below 1 increases resistance, above 1 reduces it. Calibrate against measured drop.
Inlet Elevation [m]InletElevationreal0Inlet elevation on common datum, unchanged by reversal.
Outlet Elevation [m]OutletElevationreal0Outlet elevation on common datum, unchanged by reversal.
Linepack Pressure Upper Limit [MPa(g)]MaxPressurereal150Transient linepack/charging pressure ceiling. At the limit, affected supply-flow boundaries become pressure-constrained for actual inflow. Use allowed project pressure.

External Heat Transfer

NamekeyTypeDefault / OptionsDescription
Overall Heat Transfer Coefficient ModeHeatTransferCoefficientInputModechoiceFixed Value / Time CurveFixed coefficient or a global time curve.
Pipe Overall Heat Transfer Coefficient [W/(m²·K)]HeatTransferCoefficientreal0Overall coefficient on steel outside area, including wall, insulation, and surroundings.
Overall Coefficient CurveCurveLibraryHeatTransferCoefficientNamechoice__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 ModeAmbientTemperatureInputModechoiceFixed Value / Time CurveFixed ambient or global time curve.
Ambient Temperature [℃]AmbientTemperaturereal25Surrounding air, soil, or water temperature according to installation.
Ambient Temperature CurveCurveLibraryTemperatureNamechoice__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​

  1. Select steady-state/transient and isothermal/non-isothermal globally.
  2. Add a short pipe and connect fluid ports.
  3. Enter diameter, length, maximum allowable pressure, wall, and roughness; follow units, especially mm.
  4. Retain Colebrook explicit approximation unless project data specify otherwise.
  5. Enter elevations for rises/falls; use equal values for level pipe.
  6. 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.
  7. Target the pipe with a measurement instrument for measurements.
  8. 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​

PhenomenonPriority Check
The pressure drop is obviously too largeID units, length, roughness, pipe efficiency, and whether the constant coefficient of friction is misused.
The voltage drop is in the opposite direction than expectedActual flow direction and pressure at both ends; short pipe allows reverse flow.
The outlet temperature does not changeWhether 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 imbalanceThe 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 controllerVerify 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​

SymbolMeaningUnit
DDPipe inner diameterm
LLPipe lengthm
δ\deltaPipe wall thicknessm
DoD_{\mathrm{o}}Pipe outer diameter, D+2δD+2\deltam
AAFlow cross-sectional aream²
AwA_{\mathrm{w}}Heat exchange area outside the tubem²
ε\varepsilonabsolute roughnessm
ηp\eta_{\mathrm{p}}pipeline efficiency—
qin, qoutq_{\mathrm{in}},\ q_{\mathrm{out}}Current working condition volume flow rate at inlet and outletm³/s
pin, poutp_{\mathrm{in}},\ p_{\mathrm{out}}Absolute pressure at inlet and outletPa
ρin, ρout\rho_{\mathrm{in}},\ \rho_{\mathrm{out}}Density at both endskg/m³
zin, zoutz_{\mathrm{in}},\ z_{\mathrm{out}}elevation of both endsm
KKTotal heat transfer coefficient of tube wallW/(m²·K)
TaT_{\mathrm{a}}ambient temperatureK

The inner diameter, wall thickness and roughness in the interface are converted from mm to m. The geometric quantity is

A=πD24,Do=D+2δ,Aw=πDoL.A=\frac{\pi D^2}{4},\qquad D_o=D+2\delta,\qquad A_w=\pi D_oL.

2. Mass Conservation and Transient Storage​

2.1 Steady State​

In steady state or without time step, the short tube satisfies

ρinqin−ρoutqout=0,\rho_{\mathrm{in}}q_{\mathrm{in}}-\rho_{\mathrm{out}}q_{\mathrm{out}}=0,

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:

Mn+1=AL2(ρinn+1+ρoutn+1).M^{n+1}=\frac{AL}{2}\left(\rho_{\mathrm{in}}^{n+1}+\rho_{\mathrm{out}}^{n+1}\right).

The discrete mass conservation is

ρinqin−ρoutqout−Mn+1−MnΔt=0.\rho_{\mathrm{in}}q_{\mathrm{in}}-\rho_{\mathrm{out}}q_{\mathrm{out}}-\frac{M^{n+1}-M^n}{\Delta t}=0.

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:

Rp=pin−pout−ρˉg(zout−zin)+ρinqin(qin−qout)A2−Δpf=0,R_p=p_{\mathrm{in}}-p_{\mathrm{out}}-\bar\rho g(z_{\mathrm{out}}-z_{\mathrm{in}}) +\frac{\rho_{\mathrm{in}}q_{\mathrm{in}}(q_{\mathrm{in}}-q_{\mathrm{out}})}{A^2} -\Delta p_f=0,

Among them

ρˉ=ρin+ρout2,qm=qin+qout2.\bar\rho=\frac{\rho_{\mathrm{in}}+\rho_{\mathrm{out}}}{2},\qquad q_m=\frac{q_{\mathrm{in}}+q_{\mathrm{out}}}{2}.

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 qin≈qoutq_{\mathrm{in}}\approx q_{\mathrm{out}}, 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 ff:

Δpf=fLDρv22,Re=ρ∣v∣Dμ,v=qmA.\Delta p_f=f\frac{L}{D}\frac{\rho v^2}{2}, \qquad Re=\frac{\rho |v|D}{\mu}, \qquad v=\frac{q_m}{A}.

Pipeline efficiency acts independently on friction along the way:

feff=fηp2.f_{\mathrm{eff}}=\frac{f}{\eta_p^2}.

Therefore, ηp<1\eta_{\mathrm{p}}<1 will increase the voltage drop, and ηp>1\eta_{\mathrm{p}}>1 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

1f=−2log⁡10(ε3.7D+2.51Ref).\frac{1}{\sqrt{f}}=-2\log_{10}\left( \frac{\varepsilon}{3.7D}+\frac{2.51}{Re\sqrt{f}} \right).

The two interface solution methods correspond to the same equation:

  • Explicit Approximation: directly calculates turbulent friction, suitable as the default method;
  • Implicit Iteration: Taking x=1/fx=1/\sqrt{f} as the unknown quantity, use Newton's method to find the standard equation.

At low Reynolds numbers, the laminar flow relationship f=64/Ref=64/Re is used, and the transition zone is a smooth transition between laminar and turbulent flow relationships.

4.2 AGA​

f=64/Ref=64/Re is used when Re≤1000Re\le1000; 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:

f=1[2log⁡10(3.7D/ε)]2.f=\frac1{\left[2\log_{10}(3.7D/\varepsilon)\right]^2}.

4.3 Weymouth​

f=0.009407ηp2D1/3.f=\frac{0.009407}{\eta_p^2D^{1/3}}.

4.4 Panhandle A/B​

fA=0.0847ηp2Re−0.1461,fB=0.0147ηp2Re−0.0392.f_A=\frac{0.0847}{\eta_p^2}Re^{-0.1461},\qquad f_B=\frac{0.0147}{\eta_p^2}Re^{-0.0392}.

In the implementation, the empirical model first calculates the original correlation expression, and then multiplies the short pipe uniformly by 1/ηp21/\eta_{\mathrm{p}}^2. 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:

f=finput,0<f≤1.f=f_{\mathrm{input}},\qquad 0<f\le 1.

5. Steady-State Heat Transfer and Joule–Thomson Correction​

Non-isothermal steady state uses Shukhov exponent

Θ=KAw∣m˙∣cp,\Theta=\frac{KA_w}{|\dot m|c_p},

During forward flow

Tout=Ta+(Tin−Ta)e−Θ+ΔTJT.T_{\mathrm{out}}=T_a+(T_{\mathrm{in}}-T_a)e^{-\Theta}+\Delta T_{JT}.

The Joule–Thomson correction for frozen physical properties is

ΔTJT=μJTpout−pinΘ(1−e−Θ).\Delta T_{JT}=\mu_{JT}\frac{p_{\mathrm{out}}-p_{\mathrm{in}}}{\Theta} \left(1-e^{-\Theta}\right).

When K=0K=0 or Θ→0\Theta\to0, it degrades to

ΔTJT=μJT(pout−pin).\Delta T_{JT}=\mu_{JT}(p_{\mathrm{out}}-p_{\mathrm{in}}).

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

Un+1−UnΔt=∑inm˙hin−∑outm˙hstored+KAw(Ta−Tstored),\frac{U^{n+1}-U^n}{\Delta t} =\sum_{\mathrm{in}}\dot m h_{\mathrm{in}} -\sum_{\mathrm{out}}\dot m h_{\mathrm{stored}} +KA_w(T_a-T_{\mathrm{stored}}),

Among them

Un+1=Mn+1e(ρstored,Tstored).U^{n+1}=M^{n+1}e(\rho_{\mathrm{stored}},T_{\mathrm{stored}}).

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 kk:

Nkn+1−Nkn=Δt∑inn˙inxk,in−Δt∑outn˙outxk,stored.N_k^{n+1}-N_k^n =\Delta t\sum_{\mathrm{in}}\dot n_{\mathrm{in}}x_{k,\mathrm{in}} -\Delta t\sum_{\mathrm{out}}\dot n_{\mathrm{out}}x_{k,\mathrm{stored}}.

The new inventory mole fraction is

xkn+1=Nkn+1∑jNjn+1.x_k^{n+1}=\frac{N_k^{n+1}}{\sum_jN_j^{n+1}}.

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.