Skip to main content

Transmission Pipeline

The along-process discrete model is used to describe the pressure, temperature, composition and pipe storage distribution of long-distance gas pipelines.

Component Appearance and Location​

Expand Pipeline Valve in the component library on the left and find "Long-distance Pipeline".

Created with Fabric.js 5.3.0

Ports and Connections​

Port KeyTypeDirectionInterface NameDisplay Conditions
0FLUIDinputfluid inletalways show
1FLUIDoutputFluid outletalways show

A transmission pipeline has only two fluid ports. To send a running value to the control network, select the pipe and measurement point in a measurement instrument. Configure thermal boundaries on the pipe using its parameters and curves.

Parameter List​

Equipment Specifications

NamekeyTypeDefault / OptionsDescription
Pipe Internal Diameter [mm]Diameterreal300Original steel internal diameter.
Pipe Length [km]Lengthreal5Total pipeline length.
Wall Thickness [mm]WallThicknessreal8Determines steel outside diameter.
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 / Constant Friction FactorTransmission friction model; only selected-model parameters apply.
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.
Elevation ProfileElevationtableConfigure one row at a timeCenterline elevations on one datum, measured from fixed inlet. One point must be at 0 and applies throughout. Multiple points strictly increase through 0 and total length with linear interpolation; no automatic rescaling/moving. Elevation differences cannot exceed segment lengths.
Elevation Profile / Distance Along Pipeline [km]Elevation.distancereal0Centerline distance from fixed inlet, 0 to total length; unchanged by flow reversal.
Elevation Profile / Elevation [m]Elevation.elevationreal0Centerline elevation at this point in m.
Linepack Pressure Upper Limit [MPa(g)]MaxPressurereal150Transient linepack/charging ceiling; not a substitute for design pressure or strength checks.

External Heat Transfer

NamekeyTypeDefault / OptionsDescription
External Heat Transfer ModelExternalHeatMethodchoiceSpecified Overall Coefficient / Specified Heat per Unit Length / Equivalent CylinderOverall coefficient uses steel outside area and temperature difference; heat per length imposes heat directly; equivalent cylinder uses steel/layers/environment and optionally material storage.
InstallationInstallationTypechoiceBuried / Above-Ground / SubmergedBuried, above-ground, or submerged determines environment. Not used for specified heat per length.
Include Material Thermal StorageMaterialHeatStorageEnabledchoiceWithout Thermal Storage / With Thermal StorageIncludes steel, effective external layers, and equivalent-soil heat capacity. Disabled retains conduction without storage.
Overall Heat Transfer Coefficient ModeHeatTransferCoefficientInputModechoiceFixed Value / Axial Variation / Axial Time VariationEngineering input mode for overall coefficient K.
Overall Heat Transfer Coefficient [W/(m²·K)]HeatTransferCoefficientreal0Gas-to-environment overall coefficient on steel outside area; no separate layer conductivity/storage inputs needed.
Axial Overall CoefficientHeatTransferCoefficientProfiletableConfigure one row at a timeOverall coefficient on steel outside area, without separate layer conduction/storage inputs. Distances use the fixed inlet: a single point at 0 applies throughout; multiple points strictly increase through 0 and total length, interpolating linearly without automatic rescaling/moving.
Axial Overall Coefficient / Distance Along Pipeline [km]HeatTransferCoefficientProfile.distancereal0Centerline distance from fixed inlet, 0 to total length; unchanged by flow reversal.
Axial Overall Coefficient / Overall Heat Transfer Coefficient [W/(m²·K)]HeatTransferCoefficientProfile.valuereal0Gas-to-environment overall coefficient on steel outside area; no separate layer conductivity/storage inputs needed.
Overall Heat Transfer Coefficient Curve ReferencesHeatTransferCoefficientCurveLibraryProfiletableConfigure one row at a timeSelect a time series from the curve database for each location along this pipe. The distances apply to this pipe only. Measure them from the designated inlet along the pipe centerline. A single point must be at distance 0 and applies to the entire pipe. For multiple points, distances must strictly increase and include 0 and the full pipe length. The solver interpolates linearly between points and preserves their positions. Steady-state runs use the value at the start time, which the curves must cover. Transient runs require coverage for the entire simulation period. The solver does not extrapolate in time.
Overall Heat Transfer Coefficient Curve References / Distance Along Pipeline [km]HeatTransferCoefficientCurveLibraryProfile.distancereal0Centerline distance from fixed inlet, 0 to total length; unchanged by flow reversal.
Overall Heat Transfer Coefficient Curve References / Curve NameHeatTransferCoefficientCurveLibraryProfile.curveNamechoice__UNSELECTED__Select an overall heat transfer coefficient time series from the curve database. It must cover the start time for steady-state runs or the entire simulation period for transient runs. Multiple locations can use the same series.
Heat per Unit Length ModeHeatRatePerLengthInputModechoiceFixed Value / Axial Variation / Axial Time VariationEngineering input mode for heat per unit length.
Heat per Unit Length [W/m]HeatRatePerLengthSpecreal0Heat per length, positive outward loss, negative external heating.
Axial Heat per Unit LengthHeatRatePerLengthProfiletableConfigure one row at a timeHeat per length, positive outward loss, negative external heating. Distances use the fixed inlet: a single point at 0 applies throughout; multiple points strictly increase through 0 and total length, interpolating linearly without automatic rescaling/moving.
Axial Heat per Unit Length / Distance Along Pipeline [km]HeatRatePerLengthProfile.distancereal0Centerline distance from fixed inlet, 0 to total length; unchanged by flow reversal.
Axial Heat per Unit Length / Heat per Unit Length [W/m]HeatRatePerLengthProfile.valuereal0Heat per length, positive outward loss, negative external heating.
Heat Flow per Unit Length Curve ReferencesHeatRatePerLengthCurveLibraryProfiletableConfigure one row at a timeSelect a time series from the curve database for each location along this pipe. The distances apply to this pipe only. Measure them from the designated inlet along the pipe centerline. A single point must be at distance 0 and applies to the entire pipe. For multiple points, distances must strictly increase and include 0 and the full pipe length. The solver interpolates linearly between points and preserves their positions. Steady-state runs use the value at the start time, which the curves must cover. Transient runs require coverage for the entire simulation period. The solver does not extrapolate in time.
Heat Flow per Unit Length Curve References / Distance Along Pipeline [km]HeatRatePerLengthCurveLibraryProfile.distancereal0Centerline distance from fixed inlet, 0 to total length; unchanged by flow reversal.
Heat Flow per Unit Length Curve References / Curve NameHeatRatePerLengthCurveLibraryProfile.curveNamechoice__UNSELECTED__Select a heat flow per unit length time series from the curve database. It must cover the start time for steady-state runs or the entire simulation period for transient runs. Multiple locations can use the same series.
Internal Convection Coefficient ModeInternalHeatTransferCoefficientModechoiceCustom / Automatic CalculationSpecified coefficient or automatic calculation from flow, temperature difference, and properties.
Internal Convection Coefficient [W/(m²·K)]InternalHeatTransferCoefficientreal500Gas-to-inner-wall convection coefficient, distinct from overall gas-to-environment coefficient.
Pipe Wall Conductivity [W/(m·K)]PipeWallThermalConductivityreal45Steel wall conductivity for equivalent-cylinder model.
Steel Density [kg/m³]PipeWallDensityreal7850Steel density for heat capacity, used with material storage.
Steel Specific Heat [J/(kg·K)]PipeWallHeatCapacityreal500Steel specific heat for capacity, used with material storage.
Initial Steel Temperature [℃]PipeWallInitialTemperaturereal20Manual initial material temperature for transient material storage only. Steady initialization or loaded states supply their own material temperatures.
External LayersOuterMaterialLayerstableConfigure one row at a timeLayers ordered outward from steel. Move whole rows; recheck manual radial-mesh references after renaming/adding/removing.
External Layers / Material NameOuterMaterialLayers.nametext—Unique within this pipeline; update manual mesh after renaming.
External Layers / Thickness [mm]OuterMaterialLayers.thicknessreal0One-sided radial thickness; zero layers retain settings but are inactive.
External Layers / Conductivity [W/(m·K)]OuterMaterialLayers.thermalConductivityreal0Material conductivity, positive for positive thickness.
External Layers / Density [kg/m³]OuterMaterialLayers.densityreal0Layer heat-capacity property, needed only for positive thickness with storage enabled.
External Layers / Specific Heat [J/(kg·K)]OuterMaterialLayers.heatCapacityreal0Layer heat-capacity property, needed only for positive thickness with storage enabled.
External Layers / Initial Temperature [℃]OuterMaterialLayers.initialTemperaturereal20Manual initial material temperature for transient material storage only. Steady initialization or loaded states supply their own material temperatures.
Pipe Center Burial Depth [m]BurialDepthToCenterreal1.2Center-to-ground depth must exceed the outermost actual material radius; equivalent soil extent is automatic.
Soil Conductivity [W/(m·K)]SoilThermalConductivityreal1.6Soil conductivity for buried equivalent cylinder.
Soil Density [kg/m³]SoilDensityreal1800Soil density for material storage.
Soil Specific Heat [J/(kg·K)]SoilHeatCapacityreal900Soil specific heat for material storage.
Initial Soil Temperature [℃]SoilInitialTemperaturereal20Manual initial material temperature for transient material storage only. Steady initialization or loaded states supply their own material temperatures.
Burial-Depth Soil Temperature ModeBuriedGroundTemperatureInputModechoiceFixed Value / Axial Variation / Axial Time VariationEngineering input mode for soil temperature at burial depth.
Burial-Depth Soil Temperature [℃]BuriedGroundTemperaturereal25Soil temperature at pipeline depth, the buried external condition.
Axial Soil TemperatureBuriedGroundTemperatureProfiletableConfigure one row at a timeAxial soil temperature at burial depth. Distances use the fixed inlet: a single point at 0 applies throughout; multiple points strictly increase through 0 and total length, interpolating linearly without automatic rescaling/moving.
Axial Soil Temperature / Distance Along Pipeline [km]BuriedGroundTemperatureProfile.distancereal0Centerline distance from fixed inlet, 0 to total length; unchanged by flow reversal.
Axial Soil Temperature / Burial-Depth Soil Temperature [℃]BuriedGroundTemperatureProfile.valuereal25Soil temperature specified by axial position.
Soil Temperature at Burial Depth Curve ReferencesBuriedGroundTemperatureCurveLibraryProfiletableConfigure one row at a timeSelect a time series from the curve database for each location along this pipe. The distances apply to this pipe only. Measure them from the designated inlet along the pipe centerline. A single point must be at distance 0 and applies to the entire pipe. For multiple points, distances must strictly increase and include 0 and the full pipe length. The solver interpolates linearly between points and preserves their positions. Steady-state runs use the value at the start time, which the curves must cover. Transient runs require coverage for the entire simulation period. The solver does not extrapolate in time.
Soil Temperature at Burial Depth Curve References / Distance Along Pipeline [km]BuriedGroundTemperatureCurveLibraryProfile.distancereal0Centerline distance from fixed inlet, 0 to total length; unchanged by flow reversal.
Soil Temperature at Burial Depth Curve References / Curve NameBuriedGroundTemperatureCurveLibraryProfile.curveNamechoice__UNSELECTED__Select a time series for soil temperature at burial depth from the curve database. It must cover the start time for steady-state runs or the entire simulation period for transient runs. Multiple locations can use the same series.
Air Convection Coefficient ModeOverheadExternalHeatTransferCoefficientModechoiceCustom / Automatic CalculationSpecified coefficient or automatic calculation from flow, temperature difference, and properties.
Air Convection Coefficient [W/(m²·K)]OverheadExternalHeatTransferCoefficientreal12Convection between outermost pipe surface and air.
External Wind Speed [m/s]AirExternalVelocityreal0Nonnegative external fluid speed relative to pipe, for automatic outer convection.
Air Density [kg/m³]AirExternalFluidDensityreal1.205Air/water properties at actual external temperature for automatic convection. Defaults are about 20 °C references, not automatically updated with ambient temperature.
Air Dynamic Viscosity [Pa·s]AirExternalFluidDynamicViscosityreal0.0000181Air/water properties at actual external temperature for automatic convection. Defaults are about 20 °C references, not automatically updated with ambient temperature.
Air Constant-Pressure Specific Heat [J/(kg·K)]AirExternalFluidHeatCapacityreal1005Air/water properties at actual external temperature for automatic convection. Defaults are about 20 °C references, not automatically updated with ambient temperature.
Air Conductivity [W/(m·K)]AirExternalFluidThermalConductivityreal0.026Air/water properties at actual external temperature for automatic convection. Defaults are about 20 °C references, not automatically updated with ambient temperature.
Air Thermal Expansion Coefficient [1/K]AirExternalFluidThermalExpansionreal0.00341Air/water properties at actual external temperature for automatic convection. Defaults are about 20 °C references, not automatically updated with ambient temperature.
Air Temperature ModeAirTemperatureInputModechoiceFixed Value / Axial Variation / Axial Time VariationEngineering input mode for air temperature.
Air Temperature [℃]AirTemperaturereal20Ambient air temperature for above-ground pipe.
Axial Air TemperatureAirTemperatureProfiletableConfigure one row at a timeAxial air temperature. Distances use the fixed inlet: a single point at 0 applies throughout; multiple points strictly increase through 0 and total length, interpolating linearly without automatic rescaling/moving.
Axial Air Temperature / Distance Along Pipeline [km]AirTemperatureProfile.distancereal0Centerline distance from fixed inlet, 0 to total length; unchanged by flow reversal.
Axial Air Temperature / Air Temperature [℃]AirTemperatureProfile.valuereal20Air temperature specified by position.
Air Temperature Curve ReferencesAirTemperatureCurveLibraryProfiletableConfigure one row at a timeSelect a time series from the curve database for each location along this pipe. The distances apply to this pipe only. Measure them from the designated inlet along the pipe centerline. A single point must be at distance 0 and applies to the entire pipe. For multiple points, distances must strictly increase and include 0 and the full pipe length. The solver interpolates linearly between points and preserves their positions. Steady-state runs use the value at the start time, which the curves must cover. Transient runs require coverage for the entire simulation period. The solver does not extrapolate in time.
Air Temperature Curve References / Distance Along Pipeline [km]AirTemperatureCurveLibraryProfile.distancereal0Centerline distance from fixed inlet, 0 to total length; unchanged by flow reversal.
Air Temperature Curve References / Curve NameAirTemperatureCurveLibraryProfile.curveNamechoice__UNSELECTED__Select an air temperature time series from the curve database. It must cover the start time for steady-state runs or the entire simulation period for transient runs. Multiple locations can use the same series.
Water Convection Coefficient ModeSubseaExternalHeatTransferCoefficientModechoiceCustom / Automatic CalculationSpecified coefficient or automatic calculation from flow, temperature difference, and properties.
Water Convection Coefficient [W/(m²·K)]SubseaExternalHeatTransferCoefficientreal12Convection between outermost pipe surface and water.
External Water Speed [m/s]WaterExternalVelocityreal0Nonnegative external fluid speed relative to pipe, for automatic outer convection.
Water Density [kg/m³]WaterExternalFluidDensityreal998.2Air/water properties at actual external temperature for automatic convection. Defaults are about 20 °C references, not automatically updated with ambient temperature.
Water Dynamic Viscosity [Pa·s]WaterExternalFluidDynamicViscosityreal0.001002Air/water properties at actual external temperature for automatic convection. Defaults are about 20 °C references, not automatically updated with ambient temperature.
Water Constant-Pressure Specific Heat [J/(kg·K)]WaterExternalFluidHeatCapacityreal4182Air/water properties at actual external temperature for automatic convection. Defaults are about 20 °C references, not automatically updated with ambient temperature.
Water Conductivity [W/(m·K)]WaterExternalFluidThermalConductivityreal0.598Air/water properties at actual external temperature for automatic convection. Defaults are about 20 °C references, not automatically updated with ambient temperature.
Water Thermal Expansion Coefficient [1/K]WaterExternalFluidThermalExpansionreal0.000207Air/water properties at actual external temperature for automatic convection. Defaults are about 20 °C references, not automatically updated with ambient temperature.
Water Temperature ModeWaterTemperatureInputModechoiceFixed Value / Axial Variation / Axial Time VariationEngineering input mode for water temperature.
Water Temperature [℃]WaterTemperaturereal15Water temperature around submerged pipe.
Axial Water TemperatureWaterTemperatureProfiletableConfigure one row at a timeAxial water temperature. Distances use the fixed inlet: a single point at 0 applies throughout; multiple points strictly increase through 0 and total length, interpolating linearly without automatic rescaling/moving.
Axial Water Temperature / Distance Along Pipeline [km]WaterTemperatureProfile.distancereal0Centerline distance from fixed inlet, 0 to total length; unchanged by flow reversal.
Axial Water Temperature / Water Temperature [℃]WaterTemperatureProfile.valuereal15Water temperature specified by position.
Water Temperature Curve ReferencesWaterTemperatureCurveLibraryProfiletableConfigure one row at a timeSelect a time series from the curve database for each location along this pipe. The distances apply to this pipe only. Measure them from the designated inlet along the pipe centerline. A single point must be at distance 0 and applies to the entire pipe. For multiple points, distances must strictly increase and include 0 and the full pipe length. The solver interpolates linearly between points and preserves their positions. Steady-state runs use the value at the start time, which the curves must cover. Transient runs require coverage for the entire simulation period. The solver does not extrapolate in time.
Water Temperature Curve References / Distance Along Pipeline [km]WaterTemperatureCurveLibraryProfile.distancereal0Centerline distance from fixed inlet, 0 to total length; unchanged by flow reversal.
Water Temperature Curve References / Curve NameWaterTemperatureCurveLibraryProfile.curveNamechoice__UNSELECTED__Select a water temperature time series from the curve database. It must cover the start time for steady-state runs or the entire simulation period for transient runs. Multiple locations can use the same series.

Sampling Settings

NamekeyTypeDefault / OptionsDescription
Profile Output ModeSpatialResultSamplingModechoiceFirst and Last Only / Every Calculation Step / Fixed Simulation IntervalProfile output instants, delivered together after simulation. First/last reduces data; does not alter calculation time steps.
Profile Output Interval [h]SpatialResultSamplingIntervalHoursreal6Simulation-time output interval, independent of wall time. Adaptive runs choose the nearest completed calculation instant without changing time steps.
Output Material Temperature ProfilesOutputMaterialTemperatureProfilechoiceClosed / OpenOutput steel, active-layer, and equivalent-soil temperature profiles in steady/transient mode, with or without storage. Does not change heat calculations.

Advanced Settings

NamekeyTypeDefault / OptionsDescription
Axial Mesh ModeAxialGridModechoiceAutomatic Mesh / User-SpecifiedAutomatic uniform axial mesh targets 1 km with at least 5 cells. User-specified uses entered count. Initial mesh remains fixed.
Axial Cell CountLongPipeCellCountinteger10User axial count; automatic uses 1 km and at least 5. More cells improve resolution and cost; assess sufficiency through result sensitivity.
Radial Mesh ModeRadialGridModechoiceAutomatic Mesh / User-SpecifiedAutomatic radial mesh: steel 2, each active layer 3, soil 8 cells. Manual needs each count. Assess resolution versus cost using result sensitivity.
Steel Radial Cell CountSteelWallRadialCellCountinteger2Manual steel radial cells; more resolution costs more, so check result sensitivity.
External Layer Radial MeshOuterMaterialRadialCellCountstableConfigure one row at a timeOne row per active material, keyed by unique name. Update after name/add/remove changes; moving layers does not require count changes.
External Layer Radial Mesh / Material NameOuterMaterialRadialCellCounts.namechoice—Reference by material name; update after renaming/removal.
External Layer Radial Mesh / Radial Cell CountOuterMaterialRadialCellCounts.cellsinteger3Radial Cell Count
Soil Radial Cell CountSoilRadialCellCountinteger8Manual soil radial cells; assess resolution versus cost using result sensitivity.
Higher-Order Species TransportHighOrderSpeciesTransportchoiceClosed / EnabledReduces species numerical diffusion for sharper composition fronts, at higher cost. Disabled uses first-order upwind.

Parameter Guidance​

  • Geometry. Length uses km; follow displayed diameter, thickness, and roughness units. Use one elevation datum and profiles measured from inlet to outlet.
  • Mesh and sampling. Automatic mesh uses roughly 1 km cells, at least 5. Select User-specified to enter cell count. Transient profile output supports first/last instants, every step, or fixed simulation intervals; this only controls profile saving.
  • Thermal boundaries. For non-isothermal simulations, select overall heat transfer coefficient, heat flow per unit length, or the equivalent cylinder model according to the engineering data. Heat flow per unit length uses W/m, with heat loss to the environment positive. Enter local points or reference database time curves at axial positions. Each time curve must cover the calculation interval.
  • Equivalent cylinder. Configure buried, above-ground, or submerged conditions and additional layers. Enable wall/layer thermal storage for non-isothermal transients as needed and check material heat capacities.

Enter Axial Time Curves​

After selecting Axial Time Variation, set the curve source for overall heat transfer coefficient, heat flow per unit length, or the soil, air, or water temperature for the selected installation.

Curve sourceAxial table entries
Edit Local CurveEnter distance in km and time–value pairs at each position.
Reference Curve DatabaseEnter distance in km and the name of a time curve of the corresponding type at each position.

Distances increase from inlet to outlet and must cover the modeled segment. Each time curve must cover the calculation interval. The software evaluates each position at the current time, then interpolates along the pipe. For variation by distance alone, enter distance and value pairs.

Set sources separately. Use W/(m²·K) for overall coefficient, W/m for heat flow per unit length, and °C for ambient temperature. Choose a curve source.

Modeling Steps​

  1. Add a transmission pipeline and connect fluid ports.
  2. Enter diameter, length, maximum allowable pressure, wall, roughness, and elevation control points by distance.
  3. Without dedicated calibration, retain Colebrook explicit approximation and efficiency 1.0.
  4. For non-isothermal calculations, select buried, above-ground, or submerged installation and choose overall heat transfer coefficient, heat flow per unit length, or the equivalent cylinder model. Use fixed values, axial profiles, or axial time variation as appropriate. Enter local time curves or reference the database.
  5. Set profile output frequency; prefer first/last or fixed intervals for long runs.
  6. For monitoring, target the pipeline with a measurement instrument and connect signal to controls.
  7. Check direction, pressure/temperature profiles, linepack, and boundaries.

View Results​

The results of long-distance pipelines should be judged based on the endpoint values and distribution along the route:

  • Inlet, outlet pressure and total pressure drop;
  • Pressure distribution along the route and check changes caused by elevation and friction;
  • Inlet, outlet flow and transient inlet and outlet flow differences;
  • Total inventory within the tube and its changes over time;
  • Temperature along the path, ambient temperature and heat dissipation in non-isothermal calculations;
  • Gas composition and propagation process along the route in component transport calculations;
  • Whether the spatial distribution at different sampling moments corresponds to boundary changes.

Professional Theory​

Long-distance pipelines adopt a one-dimensional compressible flow model that is discrete along the route. Different from the endpoint lumped model of short pipes, long pipes solve pressure, flow rate and temperature at internal nodes, and save gas inventory and components in the control volume. Therefore, they can describe pressure wave propagation, pipe storage peak shaving, temperature changes along the way, and gas source component migration.

1. Main Symbols​

SymbolMeaningUnit
xxAxial distance along the pipem
ttSimulation times
DD、AAPipe inner diameter, flow cross-sectional aream、m²
pp、TT、ρ\rhoAbsolute pressure, temperature, densityPa、K、kg/m³
uuAxial flow velocity, positive direction from inlet to outletm/s
ffDarcy friction coefficient—
ηp\eta_{\mathrm{p}}pipeline efficiency—
KKComprehensive heat transfer coefficient outside the tubeW/(m²·K)
xkx_kThe mole or mass fraction of the kk component—

The geometric cross-sectional area is:

A=πD24.A=\frac{\pi D^2}{4}.

2. Conservation of Mass and Momentum​

The one-dimensional mass conservation equation is:

∂(ρA)∂t+∂(ρAu)∂x=0.\frac{\partial(\rho A)}{\partial t} +\frac{\partial(\rho A u)}{\partial x}=0.

The momentum equation takes into account inertia, pressure gradient, friction along the way, and elevation:

∂(ρAu)∂t+∂(ρAu2)∂x=−A∂p∂x−feff2DρAu∣u∣−ρAgsin⁡θ.\frac{\partial(\rho A u)}{\partial t} +\frac{\partial(\rho A u^2)}{\partial x} =-A\frac{\partial p}{\partial x} -\frac{f_{\mathrm{eff}}}{2D}\rho A u|u| -\rho A g\sin\theta.

Pipe efficiency only corrects for hydraulic friction:

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

Therefore, reducing pipe efficiency increases the pressure drop along the path for the same flow rate, but does not repeatedly correct the elevation term, the thermal equation, or the independent local resistance component.

3. Friction Model​

The local form of Darcy pressure drop is:

dpfdx=feffDρu∣u∣2.\frac{\mathrm{d}p_f}{\mathrm{d}x} =\frac{f_{\mathrm{eff}}}{D}\frac{\rho u|u|}{2}.

Reynolds number and relative roughness are:

Re=ρ∣u∣Dμ,r=εD.Re=\frac{\rho |u|D}{\mu},\qquad r=\frac{\varepsilon}{D}.

The selection principles of Colebrook model, AGA, Weymouth, Panhandle A/B and constant friction coefficient are consistent with those of short pipes. The long tube uses local pressure, temperature and composition to calculate density, viscosity and friction at each internal location.

4. Energy Conservation and Heat Transfer Outside the Tube​

4.1 Energy Equation and Positive Direction of Heat Dissipation​

The one-dimensional energy equation including kinetic energy, potential energy and heat transfer outside the tube is:

∂∂t[ρA(e+u22+gz)]+∂∂x[ρAu(h+u22+gz)]=−qloss′.\frac{\partial}{\partial t} \left[\rho A\left(e+\frac{u^2}{2}+gz\right)\right] +\frac{\partial}{\partial x} \left[\rho Au\left(h+\frac{u^2}{2}+gz\right)\right] =-q'_{\mathrm{loss}}.

qloss′q'_{\mathrm{loss}} is the heat loss per unit pipe length, in W/m. The notation convention is:

  • qloss′>0q'_{\mathrm{loss}}>0: The gas dissipates heat to the external environment;
  • qloss′<0q'_{\mathrm{loss}}<0: The external environment supplies heat to the gas;
  • qloss′=0q'_{\mathrm{loss}}=0: Pipe insulation.

The outer thermal boundary of the tube is uniformly written in linear form:

qloss′=a(x,t)T+b(x,t).q'_{\mathrm{loss}}=a(x,t)T+b(x,t).

For a heat transfer model driven by temperature differences:

qloss′=G′(x,t)[T−Tenv(x,t)],a=G′,b=−G′Tenv,q'_{\mathrm{loss}} =G'(x,t)\left[T-T_{\mathrm{env}}(x,t)\right], \qquad a=G',\quad b=-G'T_{\mathrm{env}},

Where G′G' is the thermal conductivity per unit length, the unit is W/(m·K). It goes into the source term of the gas temperature equation:

∂T∂t+u∂T∂x=1ρcv[−T(∂p∂T)ρ∂u∂x+fρ∣u∣32Dh−4qloss′πDh2].\frac{\partial T}{\partial t}+u\frac{\partial T}{\partial x} =\frac{1}{\rho c_v} \left[ -T\left(\frac{\partial p}{\partial T}\right)_{\rho}\frac{\partial u}{\partial x} +\frac{f\rho |u|^3}{2D_h} -\frac{4q'_{\mathrm{loss}}}{\pi D_h^2} \right].

Here DhD_h is the actual flow diameter. Additional layers within the tube will reduce the DhD_h, thus not only changing the heat transfer area, but also affecting the hydraulic cross-sectional area and flow rate.

4.2 Laying Environment and Ambient Temperature​

Different laying methods use different environmental boundaries:

Laying MethodAmbient Temperature TenvT_{\mathrm{env}}External Heat Transfer Path
BuriedThe ground temperature deep in the center of the pipePipe inner membrane, pipe wall and additional layers, soil, surface environment
overheadair temperatureTube inner membrane, tube wall and additional layer, air side convection
underwaterwater temperatureTube inner membrane, tube wall and additional layer, water side convection

The ambient temperature can be set to a fixed value, a distribution along the route, or a time curve corresponding to the location along the route. Linear interpolation is used between positions along the route; linear interpolation is also used between adjacent moments in the time curve. The interface is entered in °C and the energy equation uses K internally.

4.3 Customized Overall Heat Transfer Coefficient​

When the total heat transfer coefficient KK of the entire heat transfer path is known, the heat dissipation per unit length is:

qloss′=πDs,oK(T−Tenv),q'_{\mathrm{loss}} =\pi D_{s,o}K\left(T-T_{\mathrm{env}}\right),

Where Ds,oD_{s,o} is the outer diameter of the steel pipe:

Ds,o=D+2δ.D_{s,o}=D+2\delta.

Therefore:

G′=πDs,oK.G'=\pi D_{s,o}K.

KK in this model is based on the outer surface area of the steel pipe and should include all equivalent thermal resistances such as the inner membrane of the pipe, the pipe wall, the insulation layer and the external environment. K=0K=0 means adiabatic. If the total heat transfer coefficient in the design data uses another diameter DrefD_{\mathrm{ref}} as the area basis, it should first be converted according to the conservation of thermal conductivity per unit length:

Ks,o=KrefDrefDs,o.K_{s,o}=K_{\mathrm{ref}} \frac{D_{\mathrm{ref}}}{D_{s,o}}.

KK can be a fixed value, a distribution along the way, or a time-varying value along the way. It is suitable for scenarios where the total heat transfer coefficient has been back-calculated in experiments, designs, or operations.

4.4 Customized Heat Flow per Unit Length​

When the heat loss along the pipeline is known, it can be specified directly:

qloss′=qspec′(x,t).q'_{\mathrm{loss}}=q'_{\mathrm{spec}}(x,t).

The model no longer back-calculates heat flow based on the temperature difference between the gas and the environment, so a positive specified value will still cause the gas to continue to cool even if T<TenvT<T_{\mathrm{env}} is used. Users should ensure that the direction and magnitude of heat flow are consistent with the working conditions. It is suitable for calculations with known heat loads, test inversion heat flows, or calculations that require the application of external heating power; negative values indicate external heating per unit length.

Specifying heat flow also supports fixed values, distribution along the path, and time changes along the path. The total heat loss of the pipe section is:

Q˙loss=∫0Lqspec′(x,t) dx.\dot Q_{\mathrm{loss}}= \int_0^L q'_{\mathrm{spec}}(x,t)\,\mathrm{d}x.

4.5 Equivalent Cylinder Model​

When it is necessary to explicitly describe the pipe wall, insulation layer and external environment, the one-dimensional radial equivalent cylinder model is used. The engineering expression of the total thermal resistance per unit length is:

Rtot′=Ri′+∑jRλ,j′+Renv′,G′=1Rtot′,R'_{\mathrm{tot}} =R'_i+\sum_jR'_{\lambda,j}+R'_{\mathrm{env}}, \qquad G'=\frac{1}{R'_{\mathrm{tot}}},

and have:

qloss′=T−TenvRtot′.q'_{\mathrm{loss}} =\frac{T-T_{\mathrm{env}}}{R'_{\mathrm{tot}}}.

The thermal resistance of the inner film of the tube is:

Ri′=1hiπDh.R'_i=\frac{1}{h_i\pi D_h}.

The thermal resistance of the jj th cylindrical thermal conductive layer is:

Rλ,j′=ln⁡(Dj,o/Dj,i)2πλj.R'_{\lambda,j} =\frac{\ln\left(D_{j,o}/D_{j,i}\right)}{2\pi\lambda_j}.

The outer film thermal resistance of overhead or underwater pipes is:

Ro′=1hoπDext,R'_o=\frac{1}{h_o\pi D_{\mathrm{ext}}},

Where DextD_{\mathrm{ext}} is the outermost diameter. Buried pipes also contain soil heat conduction from the outside surface of the pipe to the surface. Its commonly used equivalent thermal resistance is:

Rsoil′=arcosh⁡(2H/Dext)2πλsoil,H>Dext2,R'_{\mathrm{soil}} =\frac{\operatorname{arcosh}\left(2H/D_{\mathrm{ext}}\right)} {2\pi\lambda_{\mathrm{soil}}}, \qquad H>\frac{D_{\mathrm{ext}}}{2},

Among them, HH is the buried depth of the pipe center, and λsoil\lambda_{\mathrm{soil}} is the soil thermal conductivity.

The equivalent cylinder model converts the heat transfer path composed of the inner film of the tube, the steel tube, the additional layer and the external environment into the total thermal resistance per unit length. The steel pipe layer is determined by the inner diameter, wall thickness and pipe wall thermal conductivity; additional layers can represent inner coating, inner lining layer, outer anti-corrosion layer, insulation layer and outer protective layer.

4.6 Inner Tube Film Heat Transfer Coefficient​

The heat transfer coefficient of the inner tube membrane hih_i can be given directly or automatically calculated according to the local gas state. Automatically calculated using:

Rei=ρ∣u∣Dhμ,Pri=cpμλg,hi=NuiλgDh.Re_i=\frac{\rho |u|D_h}{\mu}, \qquad Pr_i=\frac{c_p\mu}{\lambda_g}, \qquad h_i=\frac{Nu_i\lambda_g}{D_h}.

The laminar flow area adopts the inlet section correlation, and the fully developed turbulent flow area adopts:

Nui=0.023Rei0.8Pri0.33[1+(DhLc)0.7].Nu_i=0.023Re_i^{0.8}Pr_i^{0.33} \left[1+\left(\frac{D_h}{L_c}\right)^{0.7}\right].

The transition zone is a continuous connection between laminar and turbulent flow correlations. The automatic calculation will change with the local density, viscosity, specific heat, thermal conductivity and flow rate, so different hih_i can be obtained at each position of the long pipe.

4.7 Ambient Side Heat Transfer Coefficient​

The ambient side heat transfer coefficient hoh_o can be given by the user or automatically calculated.

The automatic surface environmental heat transfer coefficient of the buried scene is:

ho=5.7+3.8∣vext∣,h_o=5.7+3.8|v_{\mathrm{ext}}|,

Among them, vextv_{\mathrm{ext}} represents the surface wind speed. It describes the heat exchange boundary between the surface and the outside world. The heat conduction inside the soil is still calculated separately by the burial depth and soil thermal conductivity.

Both natural and forced convection are considered for overhead and underwater scenarios. The external dimensionless number is:

Reo=ρo∣vo∣Dextμo,Pro=cp,oμoλo,Re_o=\frac{\rho_o|v_o|D_{\mathrm{ext}}}{\mu_o}, \qquad Pr_o=\frac{c_{p,o}\mu_o}{\lambda_o}, Gro=gβo∣Tw,o−Tenv∣Dext3νo2,Rao=GroPro.Gr_o=\frac{g\beta_o|T_{w,o}-T_{\mathrm{env}}| D_{\mathrm{ext}}^3}{\nu_o^2}, \qquad Ra_o=Gr_oPr_o.

The Nusselt numbers for natural convection and forced convection are respectively:

Nufree=0.53Rao1/4,Nu_{\mathrm{free}}=0.53Ra_o^{1/4}, Nuforced=(0.4Reo1/2+0.06Reo0.67)Pro0.4.Nu_{\mathrm{forced}} =\left(0.4Re_o^{1/2}+0.06Re_o^{0.67}\right)Pr_o^{0.4}.

Final take:

ho=(Nufree+Nuforced)λoDext.h_o= \frac{\left(Nu_{\mathrm{free}}+Nu_{\mathrm{forced}}\right)\lambda_o} {D_{\mathrm{ext}}}.

Therefore automatic mode requires external flow velocity, density, dynamic viscosity, constant pressure specific heat, thermal conductivity and volume expansion coefficient. The properties of air should be used for overhead pipes, and the properties of water should be used for underwater pipes.

4.8 Results Interpretation and Model Selection​

The result is the heat dissipation along the way:

qloss′(x,t)=a(x,t)T(x,t)+b(x,t).q'_{\mathrm{loss}}(x,t) =a(x,t)T(x,t)+b(x,t).

It should be analyzed together with the ambient temperature, gas temperature and flow rate along the way. Under low flow, the same heat loss per unit length will cause a greater temperature drop per unit mass; under high flow, the temperature is closer to the upstream incoming flow temperature.

Suggested uses for the three models are as follows:

ModelRecommended Conditions of UseKey Considerations
Customized overall heat transfer coefficientOverall known equipment or operating conditions KKCheck area benchmark to ensure KK includes all thermal resistance
Customized unit length heat flowThermal loads along the route are known or external heating needs to be appliedThe heat flow does not automatically reverse with the temperature difference. The user is responsible for the sign and magnitude.
Equivalent cylinder modelKnown pipe wall, insulation layer, burial depth and external medium parametersCheck thickness, thermal conductivity, inner and outer membrane parameters and laying scenarios layer by layer

Do not repeatedly superimpose the total heat transfer coefficient that includes the thermal resistance of the insulation layer with the insulation layer parameters of the equivalent cylinder model. The two are different closure methods, and one should be selected based on available engineering data.

5. Storage and Component Transportation​

The total mass in the pipe is the storage mass:

M=∫0LρA dx.M=\int_0^L \rho A\,\mathrm{d}x.

In the transient state, the mass flow difference between the inlet and outlet changes the pipe storage:

dMdt=m˙in−m˙out.\frac{\mathrm{d}M}{\mathrm{d}t}=\dot m_{\mathrm{in}}-\dot m_{\mathrm{out}}.

The kk component satisfies the conservation transport equation:

∂(ρAxk)∂t+∂(m˙xk)∂x=0.\frac{\partial(\rho A x_k)}{\partial t} +\frac{\partial(\dot m x_k)}{\partial x}=0.

The components adopt conservative upwind discretization: the inflow boundary uses the external air component, and the outflow boundary uses the upstream control volume component in the pipe. Therefore, the air source switching will propagate along the pipeline section by section, rather than appearing at the outlet instantaneously.

6. Boundaries and Flows​

In forward flow, the inlet temperature and inlet composition are the incoming flow boundaries; in reverse flow, the boundary roles are exchanged. The two-way inflow or two-way outflow conditions apply boundaries according to the actual flow directions of the two endpoints, avoiding the fixed assumption of "left-end inlet, right-end outlet".

7. Scope of Application​

  • Suitable for long-distance gas pipelines that require distribution, storage, pressure waves and component migration along the route.
  • The denser the grid, the higher the spatial resolution, but the greater the computational effort; the grid and time steps should match the scale of pressure, temperature, or composition changes.
  • One-dimensional models do not resolve three-dimensional flows within elbows, tees, and equipment. These additional losses should be expressed using local resistance or specialized equipment components.

Common Inspections​

  • The parameter units shall be subject to the interface markings; the pressure shall be distinguished between gauge pressure and absolute pressure, and the flow rate shall be distinguished between standard conditions and local working conditions.
  • Conditional parameters are only displayed and involved in calculations in the corresponding mode. Do not judge their validity based solely on the existence of fields in the model JSON.
  • When the port connections, number of boundaries, or control directions are wrong, the model topology should be corrected first, and then the solver parameters should be adjusted.