DEV environment · test payments only
ChemEngWorks

Calculators › GasWorks

GAS HYDRAULICS

GasWorks

Explore compressible flow, pressure losses and gas-line performance.

Calculates compressible gas flow along a line: the inlet pressure a known outlet pressure needs, or the outlet pressure a known inlet pressure gives, with the density, velocity and Mach number at each end.

Prices

RunsPrice
Every run1 credit
  • A run that fails because of its inputs, doesn't converge or runs out of time is free.
  • Cancelling a run is free, before or after it starts.
  • A fault on our side is never charged: the run is tried again automatically.

A credit costs 8p to 10p, depending on the pack. Credits don't expire. Packs and prices

Inputs and results

You enter

  • The gas: a ThermoWorks mixture that is all vapour, or the workbook's saved steam case
  • Flow rate, temperature and the known pressure
  • Bores, length, roughness, fittings, valves (Cv), an orifice and extra resistance

You get

  • The other end's pressure and the pressure loss
  • Density, velocity and Mach number at each end
  • Reynolds number and friction factor

Example: Compressible gas flow

LIVE VAPOUR

The workbook's steam case: 40,000 kg/h of steam at 702.4 K through 10 m of 428.65 mm bore line to atmospheric pressure, and the inlet pressure that needs.

The starting case every new GasWorks case opens on, run by the engine on our servers and stored (engine 1.0.0 · data 1.0.0+components-1.0.0). Nothing is calculated in your browser, here or in the calculator. Exports and the other tools of a run need an account.

REQUIRED INLET PRESSURE1.03946bar absolute
PRESSURE LOSS0.026213bar
OUTLET MACH · BORE 10.3813dimensionless

Inlet to outlet

INLET · 1.03946 bar absoluteOUTLET · 1.01325 bar absolute239.77133 m/s · M 0.3717245.97425 m/s · M 0.3813Bore 1 · 428.6504 mmStraight length · 10 mBoth displayed velocities and Mach numbers use bore 1.

Boundary states · schematic, not an axial pressure profile

Live LineWorks property transfer at the known outlet pressure. Temperature, Z, viscosity and γ are held constant in the GasWorks solve.

Pressure, velocity & Mach
QuantityInletOutlet
Absolute pressure · bar1.03946291.01325
Gauge pressure · bar0.02621290
GasWorks density · kg/m³0.32111740.3130196
Velocity · bore 1 · m/s239.7713316245.9742492
Mach · bore 10.37168610.3813017
Outlet velocity · bore 2 · m/s245.974249
Outlet Mach estimate · bore 20.3813
Gas properties used
Temperature429.252 °C
Reference absolute pressure · bar1.01325
Mass flow · kg/h40,000
Molecular weight · g/mol18.015
Gas viscosity · cP0.0252822
Compressibility Z0.9986738
Heat-capacity ratio γ1.2840536
Gas Cp · J/(mol·K)37.635132
LineWorks PR density at reference · kg/m³0.312974
Hydraulic detail
Reynolds number1,305,273.9
Darcy friction factor0.01326205
Fully turbulent factor fT0.01212803
Straight pipe fL/D0.3093909
Inventory fitting K0
Control valves equivalent K0
Transition angle · degrees0
Transition K · bore 10
Orifice equivalent K0
Additional resistance K0
Total KΣ0.3093909
Pressure ratio P₁/P₂1.0258701
Equation residual-2.9837e-16
Stream composition
ComponentFeed mole fractionVapour mole fraction
WATER11

Vapour mass fraction 1 · maximum mole-balance residual 0.00e+0.

1 component/property correlations are outside their temperature ranges. Results include extrapolation; inspect the coverage list.

Source correlation ranges exceeded (K)
WATER: psat 273.16–623.16 K

Methods

  • The workbook's isothermal compressible-flow relation, solved by bisection
  • Friction, fittings and valves as in LineWorks (Crane's Technical Paper 410)
  • Gas properties from ThermoWorks: Peng–Robinson compressibility, Wilke viscosity and ideal-gas heat capacity, constant along the line; the far end is checked again for liquid

How every calculator is tested: Methods and validation.

Limits

  • Isothermal flow with constant properties
  • Valves and orifices as resistance only: no choking
  • Refused at or above Mach 1; warned above Mach 0.7
  • All-vapour streams only

Results are screening estimates from the methods described. A competent engineer must check them before relying on them in design, safety or operating decisions.

How it is checked

Parity with the original
The engine is a port of the original standalone calculator, and reproduces it on 884 generated cases: every quantity within 10⁻¹² relative.
Validation against reference data
No published reference cases yet.
The original's own checks
Replays the workbook's saved steam case.