Steady-State Gas Supply Through a Short Pipe
A gas source, short pipe, and load represent a medium-pressure gas branch. The source maintains 0.3 MPag and downstream demand is 100 Nm³/h. NexusFlow calculates outlet pressure from the pipe data and gas properties. Use this example to practice setting pressure and flow boundaries and checking steady-state results.
Study Overview
| Item | Configuration |
|---|---|
| Scenario | A 500 m medium-pressure branch supplies a regulator station inlet |
| Network | One gas source, one short pipe, and one terminal load |
| Analysis | Steady-state, isothermal gas network calculation |
| Boundaries | Upstream pressure of 0.3 MPag and downstream standard volumetric flow of 100 Nm³/h |
| Gas properties | AGA8Gross with simple gas ReferenceNaturalGas |
| Main results | Outlet pressure of 0.296496 MPag and pipe pressure drop of 3.504 kPa |
| Use | Check branch pressure drop and terminal supply pressure for a specified demand |
Scenario and Network Layout

Connect the components in the flow direction.
Gas source (300 kPag) → 500 m PE100 SDR11 De63 branch → Regulator inlet load (100 Nm³/h)
The load represents demand at the regulator inlet. The example stops at this boundary. The short pipe is a lumped two-port component. Consider a transmission pipeline model when analyzing linepack propagation or temperature profiles along the route.
Pipe Parameters
| Setting | Value |
|---|---|
| Component | Short Pipe (Pipe) |
| Length | 500 m |
| Internal diameter | 51.4 mm |
| Wall thickness | 5.8 mm |
| Absolute roughness | 0.01 mm |
| Friction model and solution method | Colebrook, explicit approximation |
| Pipe efficiency | 1 |
| Inlet and outlet elevations | 0 m at both ends |
De63 identifies the 63 mm outside diameter. Use the internal diameter of mm in the calculation. Entering the outside diameter as the internal diameter underestimates pressure drop.
Boundary Conditions and Simulation Setup
Gas Source and Load
| Component | Boundary type | Input | Calculated result |
|---|---|---|---|
| Gas source (300 kPag) | Pressure | 0.3 MPag, 20 °C | Supply flow |
| Regulator inlet load (100 Nm³/h) | Flow | 100 Nm³/h | Load pressure |
Downstream demand determines supply flow. Upstream pressure and pipe resistance determine the outlet pressure. The 0.296496 MPag at the load is a calculated result.
Gas and Global Settings
| Setting | Value |
|---|---|
| Simulation and thermal modes | Steady-state and isothermal |
| Global temperature | 20 °C |
| Gas property model | AGA8Gross |
| Initial supply medium | Simple gas ReferenceNaturalGas |
| Gas relative density | 0.6 |
| Carbon dioxide mole percentage | 0% |
| Higher heating value | 39.82 MJ/Nm³ |
| Gauge pressure reference | 101.325 kPa(a) |
| Standard conditions | 101.325 kPa(a), 20 °C |
| Steady-state result time | 2026-01-01 00:00:00 |
Define the gas in the Simple Gas Library using these values and select it on the source. Check the flow units and reference temperature when comparing standard volumetric flows.
Steady-State Results and Analysis
| Check | Reference value |
|---|---|
| Source and pipe inlet pressure | 0.300000 MPag |
| Pipe outlet and load pressure | 0.296496 MPag |
| Pipe pressure drop | 3.504 kPa |
| Gas source flow | 100.000 Nm³/h |
| Standard volumetric flow at pipe inlet and outlet | 100.000 / 100.000 Nm³/h |
| Load demand | 100.000 Nm³/h |
| Outlet temperature | 20 °C |

The interface rounds outlet pressure to 0.2965 MPag and pressure drop to 3.5041 kPa. The calculations below use the unrounded result.
The pipe stores no additional mass at steady state, so the source, pipe, and load have equal standard volumetric flows. Global isothermal mode holds temperature at 20 °C.
Using the unrounded outlet pressure of 0.296495929 MPag, the difference between the two ends is
Pressure drop is about 0.87% of absolute inlet pressure. An independent Darcy calculation using mean gas properties and an iterative Colebrook solution gives 3.504243 kPa, about 0.00489% above the software result. The Reynolds number is approximately , in the turbulent range. See Short pipe theory.
Maximum nodal mass imbalance is approximately kg/s. Pressure difference at the connections is 0 Pa. Check pressure drop, flow continuity, and nodal conservation together.
Review Results
- Open the example from the model gallery and check upstream pressure, downstream flow, pipe internal diameter, and simple gas properties.
- Select the completed steady-state task in Tasks. To try a comparison, save a personal copy of the model before changing parameters and running it.
- Check the source, pipe, and load results. Supply and demand should both be 100 Nm³/h.
- Right-click the short pipe and use Create Data Block. Check inlet and outlet pressures and pressure drop. Confirm approximately 0.296496 MPag at the outlet and 3.504 kPa across the pipe.
- Check for 20 °C at the outlet and review steady-state residuals under Other Results.
See Run and view results. Component references are available for the source, short pipe, and load.
Applicability and Common Checks
| Check | What to verify |
|---|---|
| Wrong boundary type | Enter 100 Nm³/h at the downstream flow boundary. Changing it to a pressure boundary changes the scenario and the result. |
| Incorrect diameter or length unit | Use m for length and mm for internal diameter, wall thickness, and roughness. Internal diameter is 51.4 mm here. |
| Standard versus actual volumetric flow | The boundary uses 100 Nm³/h at standard conditions. Read actual volumetric flow at the operating pressure from its own result field. |
| Gas properties differ | Check AGA8Gross, the gas name, relative density, CO₂, higher heating value, and standard conditions. |
| Adequate downstream supply | The model imposes flow. Compare the calculated outlet pressure with the project's minimum acceptable inlet pressure. |
To study regulator losses, local valve resistance, terrain elevation changes, or transient demand, add the relevant equipment and boundary conditions and run a separate case.
Further Comparisons
| Case | Change | Compare |
|---|---|---|
| Higher demand | Increase downstream flow only | Outlet pressure, pipe pressure drop, and compliance with minimum supply pressure |
| Lower upstream pressure | Reduce source pressure at unchanged demand | Terminal pressure margin |
| Larger branch diameter | Increase effective internal diameter at unchanged length, demand, and source conditions | Reduction in pressure drop and terminal pressure |
| Longer branch | Increase pipe length only | Total pressure drop and available downstream pressure |
Run each comparison separately to obtain its results.