Skip to Content
  • Article
  • Open Access

16 July 2026

Invariant-Based Analysis of Transient Gas Flow and Optimal Valve Spacing in Pipelines

and
Department of Operation and Reconstruction of Buildings and Facilities, Azerbaijan University of Architecture and Construction, Baku AZ1073, Azerbaijan
*
Author to whom correspondence should be addressed.
This article belongs to the Section Engineering

Abstract

Leakage-induced transients in natural gas transmission pipelines can significantly affect operational safety and emergency response. This study develops a physics-based analytical framework for predicting transient pressure evolution, leakage dynamics, and emergency valve response in high-pressure gas pipelines while deriving a closed-form criterion for optimal valve spacing. The governing equations of compressible gas flow are reduced to a diffusion-type model incorporating acoustic wave propagation and frictional attenuation. A dynamic Robin-type boundary condition is introduced to describe valve–pipeline interactions, and closed-form analytical solutions are obtained using the Laplace transform method. An analytical leakage function and an explicit valve spacing criterion are derived directly from the governing equations and boundary conditions. Parametric investigations under representative transmission pipeline operating conditions demonstrate that the optimal valve spacing depends systematically on attenuation characteristics, activation thresholds, and allowable response times. The analytical solution further predicts a narrow quasi-invariant valve activation interval of approximately 112–116 s, which is theoretically explained through the dominant acoustic–diffusive balance of the proposed model. Verification against an independent finite difference solution shows excellent agreement, with the maximum relative deviation remaining below 1%, thereby confirming the accuracy and numerical consistency of the analytical formulation. The proposed framework provides a physically interpretable and computationally efficient tool for leakage assessment, emergency valve design, and safety-oriented analysis of conventional natural gas transmission pipelines.

1. Introduction

1.1. Background and Motivation

The safe operation of high-pressure gas transmission pipelines depends on the accurate prediction of transient flow behavior under abnormal operating conditions, particularly during leakage events. When a leak occurs, pressure disturbances propagate along the pipeline as coupled acoustic and diffusive waves whose evolution is governed by gas compressibility, hydraulic resistance, and boundary interactions. Understanding these transient processes is essential for leak isolation, emergency response, and pipeline safety assessment [1,2,3,4].
Current engineering practice relies on emergency shut-off valves installed at prescribed intervals along transmission pipelines. International standards, including API RP 14E [5], ISO 13623 [6], and IGEM/TD/1 [7], provide recommendations for valve placement based primarily on operational and safety considerations. Typical valve spacing ranges from 25 to 40 km. However, these recommendations do not explicitly incorporate the transient gas dynamic mechanisms governing pressure propagation and emergency valve response during leakage events.
Recent studies have substantially advanced the understanding of transient gas flow behavior in transmission pipelines through analytical, numerical, and coupled multiphysics approaches. Finite volume and finite element formulations have been widely employed to simulate leakage-induced pressure transients, while optimization-based methodologies have been developed to improve emergency valve placement and pipeline safety. More recently, coupled pipeline system models and transient flow analyses have focused on enhancing leakage detection, pressure wave interpretation, and safety-oriented operational strategies under increasingly complex operating conditions [8,9,10,11]. Despite these advances, relatively few studies have established explicit closed-form analytical relationships linking transient pressure evolution, leakage dynamics, and emergency valve spacing within a unified mathematical framework.
Existing approaches to valve spacing design may be classified as empirical, simulation-based, and optimization-based. Empirical methods are simple to apply but provide only a limited representation of transient flow processes. Numerical simulations accurately reproduce complex transient behavior and remain indispensable for detailed engineering analyses; however, they generally require repeated computations for different operating scenarios and parameter combinations. Optimization techniques improve design flexibility but are likewise dependent on the selected operating conditions and computational framework [9]. Consequently, analytical approaches remain of considerable interest because they provide complementary closed-form relationships that facilitate physical interpretation, rapid parametric assessment, and preliminary engineering design within a unified mathematical framework. The present study is intentionally restricted to conventional natural gas transmission pipelines in order to establish a rigorous analytical framework for transient pressure evolution, leakage dynamics, and emergency valve response. Future work will focus on extending the proposed analytical formulation to multicomponent gas mixtures and non-isothermal transient flow conditions [10,11,12]. These developments motivate the need for physically consistent analytical models suitable for both safety assessment and engineering design.
Numerical methods such as the finite volume method (FVM) and finite element method (FEM) have become indispensable tools for analyzing transient gas flow phenomena in complex pipeline systems because they accurately capture nonlinear flow behavior, complex geometries, and realistic operating conditions. However, these methods generally require repeated numerical computations for each parameter configuration and often provide limited analytical insight into the explicit relationships among governing physical parameters. In contrast, analytical models provide closed-form expressions that reveal the dependence of transient pressure evolution, leakage dynamics, and valve response directly on the governing parameters. Therefore, the present work is intended to complement, rather than replace, established numerical simulation techniques by providing a physically interpretable analytical framework that is also suitable for rapid engineering assessment and preliminary design.

1.2. Research Gap and Contributions

Considerable research has been devoted to transient gas flow modeling, leak detection, and emergency isolation in pipeline systems [13,14,15]. Previous studies have investigated pressure wave propagation, state estimation techniques, and numerical optimization of valve placement. Despite these advances, several limitations remain.
First, emergency valves are frequently represented using simplified static boundary conditions, which do not fully reflect the interaction between transient pressure decay and valve response. Second, leakage behavior is often introduced through empirical assumptions rather than derived directly from governing flow equations. Third, most available approaches rely on numerical simulations or scenario-specific optimization procedures, making it difficult to establish explicit relationships between leakage characteristics and valve placement.
To address these limitations, the present study develops a fully analytical framework for transient leak-induced gas flow and emergency valve response in transmission pipelines. The proposed formulation combines transient flow dynamics, leakage evolution, and valve operation within a unified mathematical model.
The main contributions of the study are:
  • The formulation of a dynamic Robin-type boundary condition describing emergency valve response;
  • The derivation of an analytical leakage function directly from the governing transient-flow model;
  • The establishment of a closed-form analytical expression for optimal emergency valve spacing;
  • The identification of a quasi-invariant valve activation time, indicating a stable acoustic–diffusive equilibrium during transient pipeline operation.
These results provide analytical insight into the relationship between leakage development, pressure wave propagation, and emergency isolation while offering practical guidance for the design and operation of gas transmission pipelines.

2. Theoretical Model and Governing Equations

A pressurized transmission pipeline of length L is considered, with a leakage point located at x = ℓ1 and an emergency shut-off valve located at x = . The gas flow is assumed to be one-dimensional, isothermal, and compressible (Figure 1). The transported medium is assumed to be conventional natural gas. Accordingly, the acoustic velocity ccc is treated as the characteristic wave propagation parameter determined by the thermophysical properties of the gas under the representative operating conditions considered in this study. Frictional resistance is represented by a linearized Darcy–Weisbach coefficient (2a).
Figure 1. Physical configuration of the pipeline system considered in the analytical model.
A localized leakage at x = 1 generates a transient pressure disturbance described by the analytically derived leakage function Gut(t). The emergency shut-off valve located at x = is represented through a dynamic Robin-type boundary condition. The analytical formulation establishes the relationship between transient pressure attenuation, valve response, and optimal valve spacing Δopt.
The acoustic velocity c is treated as a characteristic parameter of conventional natural gas and is assumed constant for the representative operating conditions considered in the present analysis. This affects the pressure diffusivity,
D = c 2 2 a ,
and therefore modifies the propagation and attenuation of leak-induced pressure disturbances. For conventional natural gas, the acoustic velocity is determined by the thermophysical properties of the gas and constitutes one of the principal parameters governing transient pressure wave propagation and hydraulic attenuation in transmission pipelines [9,10]. In the present formulation, this effect is incorporated through the acoustic velocity c, the attenuation coefficient β, and the valve sensitivity parameter κ.
The following assumptions are adopted: one-dimensional compressible flow, small-disturbance linearization, isothermal conditions, ideal gas behavior P = ρc2, and linearized friction. The isothermal approximation is appropriate for long buried transmission pipelines, where the surrounding soil damps short-term temperature variations caused by leakage expansion [16]. Accordingly, temperature effects are incorporated indirectly through the representative thermophysical properties adopted in the analytical model, whereas localized thermal variations are assumed to have a negligible influence on the large-scale transient pressure propagation considered in the present study. Temperature-induced changes in density and sound velocity are therefore treated as secondary effects compared with the dominant pressure diffusion dynamics [3,4]. Transient gas flow is governed by the one-dimensional continuity and momentum equations [17,18]:
ρ t + ρ v x = 0 ,
v t + 1 ρ P x + 2 a v = 0
where ρ is the gas density, v is the velocity, G = ρv is the mass flow variable, and P is the pressure. Using P = ρc2 and eliminating the velocity term, the governing equation reduces to the pressure diffusion form
P x , t t = D 2 P x , t x 2
where D = c 2 2 a is the effective pressure diffusivity.
The detailed derivation of Equation (1) from the linearized continuity and momentum equations, together with the diffusion approximation adopted in the present study, is provided in Appendix A.
The initial pressure distribution before leakage is assumed to be linear:
P x , 0   = P 1 2 a G 0 x
where P1 is the inlet pressure and G0 is the initial mass flow rate at x = 0.
The boundary and interface conditions are defined as follows. At the inlet, a constant supply condition is imposed:
G 0 , t = G 0 P x x = 0 = 2 a G 0
At the leakage point, pressure continuity and mass flow discontinuity are imposed:
P 1 l 1 , t = P 2 l 1 , t , P 2 x x = l 1 P 1 x x = l 1 = 2 a G u t t
where Gut(t) is the transient leakage discharge.
At the valve location x = , a dynamic Robin-type boundary condition is introduced:
P x x = l + κ P l , t = κ P l , 0
The parameter κ represents the effective pressure feedback gain of the valve controller.
It does not correspond to a single measurable mechanical quantity such as actuator stiffness, valve travel, or closure time. Instead, it is an equivalent boundary parameter characterizing the overall hydraulic response of the valve–controller assembly.
The limiting cases κ = 0 and κ → ∞ correspond to Neumann-type and Dirichlet-type behavior, respectively. Thus, the boundary condition links pressure decay at the valve location with the valve response during leakage-induced transients.
The Robin boundary condition represents a linearized dynamic interaction between the transient pressure field and the emergency shut-off valve. The parameter κ characterizes the effective sensitivity of the valve controller to pressure deviations and determines the coupling strength between the hydraulic response of the pipeline and the valve actuation mechanism. Small values of κ correspond to weak pressure feedback and delayed valve response, whereas larger values represent stronger feedback and faster valve activation.
Accordingly, Equation (5) should be interpreted as an effective linear boundary model describing the hydraulic influence of the emergency valve rather than a detailed mechanistic model of valve closure dynamics.
The associated fundamental decay rate ω1 lies between the Neumann and Dirichlet limits for Robin-type boundary conditions. For typical high-pressure gas transmission pipelines, reported values of ω1 are approximately 0.15–0.25 s−1, which is consistent with the representative value ω1 = 0.2 s−1 used in this study [3,5].
For the representative transmission pipeline conditions investigated, the corresponding dimensionless valve sensitivity parameter is of the order
κ = O ( 10 3 ) ,
which is consistent with practical emergency shut-off valves operating under proportional pressure feedback control. The adopted parameter range therefore represents realistic engineering conditions rather than an arbitrary numerical choice.
The leakage discharge is represented by the analytically derived function
G u t t = r β ; l 1 G 0 1 e β t
where r(β;1) is a dimensionless calibration function, β is the leak attenuation coefficient, and t is time after leakage initiation. The calibration function is defined as
r   β ;   l 1 = 1 + α 1 l 1 L e x p β β 0 ,
where β is a leak attenuation coefficient dependent on the leak location and pipeline parameters. The physical interpretation and engineering parametrization of the amplification factor r(β;1) are discussed in Appendix B. This factor accounts for the combined influence of leak location and hydraulic attenuation on the effective leakage intensity. Consequently, the leakage discharge evolves smoothly from the undisturbed state toward a finite asymptotic value while maintaining a direct connection between leakage dynamics and measurable transient pressure decay.
The present formulation adopts an isothermal approximation for the transient gas flow. This assumption is appropriate for large-scale transmission pipelines because the governing pressure transients propagate over distances that are several orders of magnitude larger than the localized leakage orifice. Although the Joule–Thomson effect may produce a local temperature reduction in the immediate vicinity of the leak, its spatial extent is typically limited to a small region surrounding the leakage opening and has only a minor influence on the large-scale pressure wave propagation considered here. Consequently, the governing equations describe the transient hydraulic response of the pipeline rather than the detailed thermodynamic expansion inside the leakage jet. The proposed analytical formulation is therefore applicable to transmission pipeline operating conditions for which thermal relaxation with the surrounding environment maintains approximately isothermal flow during the transient process.
For high-pressure buried transmission pipelines, the characteristic thermal equilibration length is typically much smaller than the overall pipeline length, while the investigated transient interval (0–300 s) is sufficiently long for radial heat exchange with the pipe wall to reduce local thermal gradients. Accordingly, the isothermal approximation provides a reasonable first-order description of the global transient pressure response.

3. Analytical Solution and Valve Spacing Formulation

3.1. Analytical Solution of the Transient Pressure Field

To obtain an analytical description of leak-induced transient pressure evolution, the Laplace transform is applied to the governing pressure diffusion equation (Equation (1)) [1,11]:
s P ¯ ( x , s ) P x , 0 = D d 2 P ¯ x 2 2 a P ¯ x , s
where P ¯ ( x , s ) denotes the Laplace transform of the pressure field and s is the transform variable. The transformed equation admits the general solution
P ¯ x , s = A c h λ x + B s h λ x + P ¯ part p x , s
Following inversion of the Laplace-domain solution and application of the interface and boundary conditions, the transient pressure field is represented through modal expansions in the upstream and downstream regions.
  • Region I: (0 < x1)
P 1 x , t = h ( x ) + n = 1 B n t ϕ n x
  • Region II (1 < x)
P 2 x , t = h ( x ) + n = 1 C n t ϕ n ( x )
where h(x) denotes the stationary pressure profile, while ϕ n ( x ) are the eigenfunctions of the Robin Sturm–Liouville problem associated with the global pipeline domain. Their explicit forms, eigenvalue relations, normalization constants, and modal coefficients are derived in Appendix A.6.

3.2. Analytical Leakage Function and Valve Response

A central objective of the present formulation is to derive the leakage discharge directly from the governing equations rather than prescribing it empirically. By combining the flux discontinuity condition at the leak location with the dynamic valve boundary condition, the following Laplace-domain relation is obtained:
G ¯ u t s = Λ l , l 1 , κ ; s P l , 0 s P ¯ l , s
where Λ(,1,κ;s) is the leak–valve interaction kernel.
Physically, the kernel Λ(,1,κ;s) represents the transfer of leak-induced pressure disturbances from the leak location to the valve through the coupled pipeline–valve system. The Laplace-domain leakage relation in Equation (11) follows from the compatibility conditions of the transformed two-region boundary value problem. The interaction kernel contains the spectral information associated with the inlet condition, the leak interface conditions, and the Robin-type valve boundary condition, as derived in Appendix A.5.
The detailed derivation of the leakage law, including the dominant pole reduction of the leak–valve interaction kernel and the resulting transient leakage function, is presented in Appendix A.5. The resulting analytical leakage law is
G u t t = r β ; l 1 G 0 1 e β t
which is subsequently employed in the derivation of the valve pressure response and activation criterion. The analytical leakage law given by Equation (12) is not intended to represent the instantaneous thermodynamic discharge through a suddenly opened leak or rupture. Instead, it describes the effective transient leakage forcing governing the evolution of the large-scale pipeline pressure field after leakage initiation.
Consequently, the condition Gut(0) = 0 should be interpreted as the reference instant immediately following leakage initiation, when the global pressure disturbance has not yet fully developed along the pipeline. The subsequent exponential evolution reflects the establishment of the large-scale hydraulic response rather than the local compressible discharge inside the leakage opening.
Unlike conventional leak discharge equations, which explicitly depend on the discharge coefficient, leak area, upstream and downstream pressures, and compressible flow regime, the present analytical formulation adopts an effective macroscopic description. The influence of these local physical mechanisms is represented collectively through the measurable attenuation coefficient β, together with the calibration factor r(β,1).
The attenuation coefficient β characterizes the decay of the transient pressure field and may be estimated from inlet pressure measurements using
P 0 , t = P 1 e β t
where P1 denotes the pre-leak inlet pressure.
A key feature of the proposed analytical framework is that the leakage dynamics are parameterized through the measurable attenuation coefficient β, which can be directly identified from transient inlet pressure measurements using Equation (13). Accordingly, β should not be interpreted as an intrinsic property of the leak itself, but rather as an effective macroscopic transient parameter characterizing the global pressure attenuation in the pipeline.
Consequently, the value of β implicitly reflects the combined influence of several physical factors, including leakage location, leak size and geometry, operating pressure, hydraulic resistance, pipeline configuration (buried or aboveground), and other mechanisms affecting transient pressure propagation. Thus, these physical effects are not neglected but incorporated collectively through a single experimentally identifiable parameter governing the global transient response.
Conventional compressible leak discharge models generally express the leakage rate as a function of the local thermodynamic conditions at the leakage opening, for example,
G = C d A 2 ρ   Δ P
or its compressible flow counterparts.
In contrast, Equation (12) does not seek to model the detailed nozzle flow physics at the leakage orifice. Instead, it represents the effective hydraulic forcing responsible for the global transient pressure evolution governing emergency valve activation. Accordingly, the proposed formulation should be interpreted as a pipeline-scale transient flow model rather than a local leak discharge model.
Consequently, the leakage discharge becomes linked to a measurable transient flow parameter, allowing the analytical model to be calibrated using observed pressure data. To determine the transient pressure response at the valve location, the inlet condition, leak interface conditions, and Robin valve boundary condition are enforced simultaneously. The resulting Laplace-domain solution is
P ¯ l , s = P l , 0 s A l s 2 B l , β s + β  
and the corresponding time-domain pressure response becomes
P l , t = P l , 0 A l t B l , β e β t
The coefficients A() and B(,β) represent the steady-state and transient components of the valve pressure response, respectively. Their analytical forms are obtained from the transformed boundary value problem by enforcing the inlet, leak interface, and valve boundary conditions. Details of the derivation are provided in Appendix A, particularly Equations (A12)–(A15). Valve activation is assumed to occur when the normalized pressure ratio reaches a prescribed threshold:
P l , t P l , 0 = θ c r = 1 A l P l , 0 t B l , β P l , 0 1 e β t
This condition defines the instant at which the pressure-sensing mechanism initiates automatic valve closure. Equations (15) and (16) represent the general valve pressure response obtained from the transformed boundary value problem. This expression retains the steady component A ( l ) and the leakage-induced transient component B ( l , β ) e β t . In contrast, the dominant-mode expression used later in Appendix A.7 is a reduced design-level approximation obtained by retaining only the leading spatial mode and combining the local leakage attenuation with the global acoustic–diffusive decay rate.

3.3. Optimal Valve Spacing and Parametric Analysis

The analytical solution developed above permits formulation of the emergency valve placement problem as a safety-constrained optimization task. The objective is to maximize the spacing between neighboring emergency shut-off valves while ensuring that transient pressure decay triggers valve activation within the allowable response time.
The optimization problem is expressed as
Δ l o p t = m a x Δ l { Δ l } ,   subject   to     P ( l , t v ) P ( l , 0 )   θ c r ,   t v t m a x
Substituting the analytical valve pressure solution into the above constraints yields the closed-form expression for the optimal valve spacing:
Δ l o p t = L π arccos θ c r exp β + π 2 c 2 2 a L 2 t max
Equation (17) represents the dominant-mode analytical design criterion and is applicable provided that
θ c r e x p [ ( β + K ) t m a x ] 1
This inequality constitutes the feasibility condition of the dominant-mode approximation. For the representative pipeline investigated in the present study, the valve activation times reported below are evaluated from the complete modal pressure solution (Equations (15) and (16)), whereas Equation (17) provides the corresponding analytical design criterion for preliminary valve spacing assessment.
In the equation, L is the pipeline length, c is the acoustic velocity, β is the attenuation coefficient, tmax is the allowable response time, and θcr is the critical pressure ratio defining valve activation. The detailed derivation of Equation (17), including the dominant-mode approximation and valve activation criterion, is provided in Appendix A.7.
The proposed analytical spacing criterion is intended to complement, rather than replace, existing engineering codes and regulatory requirements. Accordingly, the calculated value of Δopt should be interpreted as an analytical design recommendation to be applied together with the applicable pipeline safety regulations. Furthermore, the parameter tmax represents the allowable pressure threshold activation time of the emergency valve and should not be interpreted as the total mechanical valve closure time.
The resulting relation provides a direct analytical estimate of valve spacing without iterative numerical optimization. Equation (17) enables direct assessment of the combined influence of attenuation, activation threshold, and allowable response time on optimal valve spacing under representative transmission pipeline conditions.
L = 100 km, a = 0.05 s−1, c = 400 m/s.
Three attenuation scenarios were considered:
  • 1 = 12 km → β = 6.4 × 10−5 s−1 (upstream region);
  • 1 = 48 km → β = 2.1 × 10−5 s−1 (mid-section);
  • 1 = 84 km → β = 7.4 × 10−6 s−1 (downstream region).
The investigated parameter domain covers activation thresholds 0.50 ≤ θcr ≤ 0.90 and allowable response times 60 s ≤ tmax ≤ 600 s, encompassing the range typically encountered in transmission pipeline safety analyses.
In Figure 2, for the representative design configuration (θcr = 0.85 and Δ = 25 km), the corresponding valve activation times are obtained from the complete modal analytical solution (Equations (15) and (16)) and are approximately 115 s, 115 s, and 116 s for the three attenuation scenarios considered. Although the attenuation coefficient varies significantly with leak location, the activation time remains within a narrow interval. This behavior arises from the balance between local leak attenuation and global diffusive damping within the pipeline. For the representative system parameters considered here, the characteristic acoustic–diffusive constant remains comparable to the attenuation coefficient β. Consequently, variations in leak position produce only minor changes in the activation time, resulting in a quasi-invariant response:
t ≈ 112–116 s.
Figure 2. Contour distributions of the normalized optimal valve spacing (Δopt/L) as functions of the critical pressure ratio (θcr) and allowable response time (tmax) for three representative attenuation coefficients.
This result indicates that emergency valve activation is governed primarily by the global transient dynamics of the pipeline system rather than by the leak location alone. The existence of this quasi-invariant activation interval provides a physically interpretable basis for valve spacing design and emergency response planning in long-distance gas transmission pipelines.

4. Results and Discussion

4.1. Boundary Verification and Transient Pressure Response

Representative parameters of a high-pressure gas transmission pipeline were adopted to investigate the transient response characteristics predicted by the analytical model.
P1 = 5.5 × 105 Pa, G0 = 30 Pa × s/m, a = 0.05 s−1, c = 400 m/s and L = 100 km.
The dynamic Robin-type valve boundary condition introduced in Equation (5) was implemented to examine representative valve response regimes. The analytical solution satisfies pressure continuity at the leakage location while preserving consistency with both the inlet flow condition and the dynamic Robin-type valve boundary condition. To investigate the influence of leakage position, three representative leakage scenarios were considered,
1 = 12 km, 1 = 48 km, and 1 = 84 km,
corresponding to upstream, mid-section, and downstream regions of the pipeline, respectively. For each scenario, the normalized valve pressure response P(,t)/P(,0) was evaluated using the analytical solution. For the representative threshold θcr = 0.85, the analytical model directly yields the corresponding valve activation times.
Figure 3 presents the resulting transient pressure decay curves. Although the attenuation coefficient varies from 6.4 × 10−5 for the upstream leakage scenario to 7.4 × 10−6 for the downstream case, the corresponding valve activation times remain confined to a narrow interval of approximately 112–116 s.
Figure 3. Normalized transient pressure decay at the valve location for three representative leakage scenarios: upstream (1 = 12 km), mid-section (1 = 48 km), and downstream (1 = 84 km).
The horizontal dashed line denotes the valve activation threshold θcr = 0.85, while the vertical dotted lines indicate the corresponding activation times.
The results indicate that the transient valve pressure response exhibits only weak sensitivity to leakage location. Despite substantial variation in the attenuation coefficient, the predicted activation times differ by less than 1%. This behavior suggests the existence of a quasi-invariant response time governed primarily by the global acoustic–diffusive dynamics of the pipeline system rather than by local leakage characteristics alone. From an engineering perspective, this finding is important because it implies that emergency valve actuation may be designed using a nearly location-independent response criterion. Consequently, the proposed analytical framework provides a physically consistent basis for determining optimal valve spacing and for developing robust emergency response strategies in long-distance gas transmission pipelines.

4.2. Optimal Valve Spacing Analysis

Equation (17) provides a direct analytical relationship between optimal valve spacing, activation threshold, and allowable response time, enabling quantitative assessment of emergency valve placement under different operating conditions.
Figure 4 illustrates the resulting optimal valve spacing surface predicted by the analytical formulation.
Figure 4. Optimal emergency valve spacing as a function of the activation threshold and allowable response time.
The results demonstrate that the allowable valve spacing increases with the maximum permissible isolation time. This behavior is expected because longer response times permit transient pressure disturbances to propagate over larger distances before valve activation is required.
The analysis also shows that increasing valve sensitivity (lower activation threshold) reduces the permissible spacing. More sensitive valves respond earlier to pressure decay and therefore require denser installation along the pipeline.
The calculated spacing values generally fall within the range commonly adopted in transmission pipeline practice, indicating consistency between the analytical predictions and engineering experience.
Most importantly, Equation (17) provides a direct analytical relationship between transient flow characteristics and valve placement, eliminating the need for repeated numerical optimization during preliminary design studies.

4.2.1. Representative Engineering Design

The practical applicability of the proposed analytical criterion can be illustrated using the representative transmission pipeline parameters adopted throughout this study. The calculations were performed for a pipeline length of L = 100 km, an acoustic velocity of c = 400 ms−1, a hydraulic resistance coefficient of 2a = 0.1 s−1, a critical valve activation threshold of θcr = 0.85, an attenuation coefficient of β = 2.1 × 10−5 s−1, and an allowable activation time of tmax = 114 s. Substituting these representative values into Equation (17) yields an optimal emergency valve spacing of
Δ l o p t = 24.9 25   km
where the reported value is obtained directly from the analytical expression without numerical fitting or empirical correction.
This result demonstrates how the proposed analytical formulation can be used directly during the preliminary design stage of transmission pipelines. Unlike empirical spacing recommendations, the present criterion explicitly relates valve placement to measurable transient flow characteristics, attenuation properties, valve response parameters, and the allowable emergency response time. Consequently, the analytical framework provides engineers with a physically interpretable and computationally efficient tool for determining valve locations before performing detailed numerical simulations or final engineering design.

4.2.2. Practical Engineering Perspective

Distributed optical fiber sensing (DOFS) has become an effective technology for real-time leakage monitoring because it provides continuous distributed measurements along the pipeline. However, DOFS primarily serves as a sensing and detection system, whereas the present work addresses a different engineering problem. The proposed analytical framework provides explicit closed-form relationships linking transient pressure evolution, leakage dynamics, valve response characteristics, and optimal emergency valve spacing. Consequently, the analytical model is intended to complement rather than replace distributed sensing technologies. In practical applications, measured pressure or leak detection information obtained from DOFS, SCADA, or other monitoring systems may be directly incorporated into the proposed analytical formulation to support rapid engineering assessment, emergency response planning, and preliminary valve placement design.

4.3. Influence of Leak Attenuation and System Invariance

The influence of leak severity was investigated through the attenuation coefficient β. The selected attenuation coefficients cover the complete range of leak locations considered in this study, representing upstream, mid-section, and downstream leakage scenarios.
  • β = 6.4 × 10−5 s−1;
  • β = 2.1 × 10−5 s−1;
  • β = 7.4 × 10−6 s−1.
The above values correspond to upstream, mid-section, and downstream leakage scenarios, respectively.
Although Figure 4 demonstrates the effect of attenuation on the optimal valve spacing, it does not directly reveal the corresponding valve activation times. To further investigate the transient response characteristics of the system, the activation times associated with the three representative leakage scenarios were extracted from the analytical pressure response model. Figure 5 demonstrates the corresponding valve activation times associated with the three attenuation regimes.
Figure 5. Quasi-invariant valve activation time under different leak-attenuation conditions.
Figure 5 demonstrates that the valve activation time remains confined to a narrow interval despite substantial variation in the attenuation coefficient. The activation times remain confined to a narrow interval of approximately 112–116 s despite nearly one order of magnitude variation in the attenuation coefficient. This observation is consistent with the quasi-invariant response behavior identified from the transient pressure decay curves in Figure 3. The observed stability of the activation time supports the existence of a characteristic acoustic–diffusive response scale that governs the global transient dynamics of the pipeline system and explains the weak sensitivity of valve activation to leak location and attenuation intensity.

Physical Interpretation of the Quasi-Invariant Activation Interval

The relatively narrow valve activation interval observed in the present study can be explained directly from the analytical activation criterion (Equation (17)). According to the closed-form solution,
t v = 1 β + K l ln θ c r Φ ( Δ l ) ,
the activation time is governed by two principal factors: the combined attenuation parameter (β + K) and the logarithmic spatial factor associated with the dominant transient mode. Under the representative transmission pipeline conditions investigated,
β = 2.5 × 10−5–2.5 × 10−4 s−1,
whereas the valve response coefficient is of order K 10 2   s 1 , yielding
β K = O ( 10 3 10 2 ) .
so that β K . Consequently,
1 β + K 1 K 1 β K
indicating that moderate variations in the attenuation coefficient introduce only second-order corrections to the activation time. Furthermore, the logarithmic spatial factor varies only weakly over the investigated leak locations. The combined effect of these two characteristics confines the predicted activation time to a narrow interval of approximately 112–116 s throughout the representative parameter range considered.
Accordingly, the observed quasi-invariant activation interval should not be interpreted as a universal characteristic of all gas transmission pipelines. Rather, it represents an asymptotic consequence of the present analytical formulation under the representative operating conditions investigated, reflecting the dominant acoustic–diffusive balance between hydraulic attenuation and valve dynamics. This analytical interpretation is fully consistent with the numerical observations presented in Figure 5 and provides the theoretical explanation for the narrow activation interval reported in the present study.

4.4. Validation Against Benchmark Studies

The physical consistency of the proposed formulation can be assessed through comparison with established analytical and numerical studies of transient gas flow behavior [2,3,4]. Previous studies have shown that leak-induced pressure disturbances propagate as damped diffusion-type waves characterized by exponential pressure decay and finite response times. The present analytical model reproduces these fundamental features.
In particular, the predicted pressure ratio
P(,t)/P(,0)
exhibits monotonic exponential-type decay, consistent with diffusion-dominated transient flow behavior. Furthermore, the predicted valve activation interval
t ≈ 112–116 s
falls within the response time range commonly reported for high-pressure transmission pipelines of comparable length and acoustic velocity.
Benchmark comparisons indicate agreement with established transient flow studies, while independent finite difference verification performed in Section 4.5 yields a maximum deviation below 1%. Although comprehensive experimental datasets for controlled leakage transients in long-distance pipelines remain limited, the observed agreement with established transient flow theory supports the physical plausibility of the proposed analytical formulation and the validity of the dynamic Robin-type boundary condition.

4.5. Numerical Verification Framework

To support the analytical formulation, an independent finite difference verification framework was established for the governing pressure diffusion equation. The purpose of this verification is not to replace the closed-form solution but to confirm that the analytical model reproduces the same transient valve pressure behavior as a direct numerical discretization of the governing equation.
The governing equation used for verification is
P t = D 2 P x 2 + S ( x , t ) , D = c 2 2 a
subject to the same inlet condition, leak interface condition, and dynamic Robin-type valve boundary condition used in the analytical formulation. The leakage discharge is represented by
G u t t = r ( β ; l 1 ) G 0 1 e β t
The pipeline domain 0 x L is divided into (N) uniform grid intervals,
x i = i Δ x , Δ x = L N , i = 0 , 1 , , N .
For the representative verification case, the same baseline parameters as in the analytical study are used:
L = 100 km , c = 400 m / s , 2 a = 0.1 s - 1 , β = 2.1 × 10 5 s 1
with N = 100, giving Δ x = 1 km . The transient response is integrated with a time step of Δ t = 1 s . For the interior grid points, the pressure diffusion equation is discretized as
P i j + 1 = P i j + η ( P i + 1 j 2 P i j + P i 1 j ) Δ t S i j , η = D Δ t ( Δ x ) 2
The inlet boundary is imposed using the fixed-gradient condition corresponding to the prescribed inlet mass flow,
P x + κ P l , t = κ P l , 0
At the valve location, the Robin boundary condition is discretized as
P N P N 1 Δ x + κ P N = κ P N 0
The inlet Neumann condition is imposed using a first-order backward finite difference approximation. The normalized valve pressure response is then evaluated as
θ F D M t = P N ( t ) P N ( 0 )
This numerical response is compared with the analytical dominant-mode prediction
θ A n . t = P l , t P l , 0 = exp [ ( β + K ) t ]
For verification purposes, Equation (15) was reduced to its dominant-mode representation by neglecting higher-order exponentially decaying modes and combining the local leakage attenuation with the global acoustic–diffusive decay rate.
The relative deviation between the analytical and finite difference solutions is quantified by
ε t = 100   θ F D M ( t ) θ A n . ( t ) θ A n . ( t )
and the maximum deviation over the simulation interval is computed as
ε m a x = m a x 0 t T θ F D M ( t ) θ A n . ( t ) θ A n . ( t ) × 100 %
where T denotes the total simulation time.
To address the reviewer’s concerns regarding numerical stability and grid independence, the finite difference verification was repeated using three successively refined computational grids. For each grid, the time step was selected to satisfy the classical von Neumann stability criterion of the explicit diffusion scheme,
η = D Δ t ( Δ x ) 2 0.5
The numerical parameters adopted for the verification, together with the corresponding maximum relative deviations, are summarized in Table 1.
Table 1. Comparison between distributed optical fiber sensing and the proposed analytical framework.
Representative absolute pressures corresponding to the normalized values may be obtained directly using P = (P/P1)P1, where P1 = 5.5 × 105 Pa.
The results summarized in Table 2 confirm both the numerical stability and the grid convergence of the explicit finite difference verification. For all computational grids, the stability parameter satisfies the von Neumann criterion η < 0.5, ensuring stable time integration. Furthermore, the maximum relative deviation decreases systematically as the spatial and temporal discretizations are refined, demonstrating convergence of the numerical solution toward the analytical solution. Even for the coarsest grid of N = 100, the maximum deviation remains below 0.01%, while additional refinement further reduces the error by more than one order of magnitude. These results confirm that the proposed analytical model accurately captures the dominant transient dynamics of the governing diffusion equation rather than merely reproducing a fitted response.
Table 2. Numerical stability and grid convergence assessment of the explicit finite difference verification.
Accordingly, the analytical formulation should not be regarded as an alternative to high-fidelity numerical simulation but rather as a complementary predictive tool that provides closed-form engineering relationships and enables rapid preliminary assessment prior to detailed numerical analysis.
The representative numerical examples presented in this work are intended to illustrate the behavior of the analytical formulation rather than to establish universal quantitative design criteria for all transmission pipelines.
It should be noted that the present finite difference comparison verifies the numerical consistency of the analytical formulation within the adopted diffusion model. It does not constitute an independent validation of the underlying physical assumptions. Validation against full hyperbolic compressible flow models (e.g., Method of Characteristics or CFD) is beyond the scope of the present study and represents an important direction for future research.

5. Conclusions

This study developed a physics-based analytical framework for predicting transient gas flow, leakage dynamics, and emergency valve response in high-pressure conventional natural gas transmission pipelines. By reducing the governing equations of compressible flow to a diffusion-type formulation, the proposed model captures the combined effects of acoustic wave propagation and frictional attenuation within a unified analytical framework. A dynamic Robin-type boundary condition and a Laplace transform solution were employed to derive explicit closed-form expressions for transient pressure evolution, leakage behavior, and optimal emergency valve spacing.
The analytical formulation establishes a direct relationship between pressure attenuation, valve sensitivity, response time, and valve placement. Parametric investigations demonstrated that the optimal valve spacing depends systematically on the governing hydraulic and operational parameters, while the analytical solution predicts a narrow quasi-invariant valve activation interval of approximately 112–116 s under the representative operating conditions investigated.
The analytical model was independently verified against a finite difference solution using identical governing equations, physical parameters, and boundary conditions. Excellent agreement was obtained throughout the simulation interval, with the maximum relative deviation remaining below 1%, thereby confirming the numerical consistency and predictive capability of the proposed formulation.
The proposed analytical framework provides a practical tool for preliminary valve spacing design, emergency response planning, and pipeline safety assessment. Owing to its explicit closed-form formulation and low computational cost, the method is compatible with modern monitoring and supervisory systems and may serve as a foundation for future extensions to multicomponent gas mixtures, thermo-hydraulic coupling, and field validation under broader operating conditions.

Author Contributions

I.G.A.: Conceptualization, supervision, methodology, formal analysis, analytical modeling, investigation, project administration, and writing—review and editing. E.K.: Validation, visualization, writing—original draft, and data curation. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

The authors would like to express sincere gratitude to our colleagues and the peer reviewers for their constructive feedback and insightful comments, which significantly contributed to improving the clarity and quality of this research.

Conflicts of Interest

The authors declare no conflicts of interest.

Nomenclature

aDistributed friction coefficient (half of linear resistance (2a))αLaplace-domain spatial attenuation parameter
cSpeed of sound in the gas mixtureβLeak attenuation coefficient
DEffective pressure diffusivity (c2/2a)κDynamic valve coefficient (Robin parameter)
G0Steady-state mass flow rate at (x = 0)λnEigenvalues satisfying Robin boundary condition
Gut(t) Leakage discharge as a function of timeΛ(x,,1;s)Laplace-domain leak–valve interaction kernel
KGlobal diffusive damping constant (π2 c2/(2aL2))θcrNormalized critical pressure ratio
ΔoptOptimal valve spacingωnModal decay rate (D\λn2)
tmaxMaximum allowable valve actuation timer(β;1)Leakage calibration function
LTotal pipeline lengthtTime
, 1Valve location; leak locationL{⋅}Laplace transform
P(x,t) Pressure at location (x) and time (t)L−1{⋅}Inverse Laplace transform

Appendix A. Derivation of the Optimal Valve Spacing Under Transient Leakage Conditions

Appendix A.1. Governing Equation and Laplace Transform Derivation of the Governing Diffusion Equation

Starting from the linearized one-dimensional continuity and momentum equations
Continuity ρ t + ρ v x = 0 , Momentum v t + 1 ρ P x + 2 a v = 0
Eliminating the mass flow variable G yields the damped hyperbolic pressure equation
2 P t 2 + 2 a P t = c 2 P 2 x 2
For the long-time friction-dominated transient regime considered in this study,
2 P t 2 2 a P t
Therefore,
P t = D 2 P x 2
where D = c 2 2 a is the effective hydraulic diffusivity, where c is the small-disturbance sound speed. For the representative operating conditions considered in this study, c =400 m/s is adopted as the characteristic acoustic velocity of conventional natural gas. The undisturbed pre-leak pressure profile is
P x , 0 = P 1 2 a G 0 x
with G0 representing the nominal inlet mass flow (constant supply).
A localized leak occurs at x = 1, and an emergency shut-off valve (ESV) is at x = (>1). The pipeline segment of interest is x ∈ [0, ].

Appendix A.2. Initial and Boundary Conditions

Inlet (compressor) boundary. For the time window of interest, we take a fixed-supply condition
G 0 , t = G 0 P x x = 0 = 2 a G 0
Leak discontinuity at x = 1. Mass extraction across the leak produces a jump in axial mass flow and hence in the axial pressure gradient. In the linear model, this gives
P 1 l 1 , t = P 2 l 1 , t , P 2 x x = l 1 P 1 x x = l 1 = 2 a G u t t
where Gut(t) is the (yet-unknown) transient leakage discharge.
Dynamic valve boundary at x = . The ESV senses/acts on the arriving pressure wave. A dissipative (Robin-type) dynamic boundary condition captures this behavior:
d P d x + κ P l , t = κ P l , 0
which enforces real-time decay of P(,t) toward its undisturbed value at a rate controlled by the valve sensitivity κ. Setting the right-hand side to P(,0) ensures zero perturbation at t = 0.

Appendix A.3. Laplace Transform Solution by Segments

We define the Laplace transform as P ¯ ( x , s ) = L P x , t = 0 P ( x , t ) e s t d t . Transforming (A1) with (A2) gives, for each segment j ∈{1,2} (upstream 0 < x1, downstream 1x ≤ ℓ):
s P ¯ j P j x , 0 = D d 2 P ¯ j d x 2
General solutions:
P ¯ 1 x , s = A 1 cos h λ x + B 1 sin h λ x + P ¯ 1 p x , s
P ¯ 2 x , s = A 2 cos h λ l x x + B 2 sin h λ l x + P ¯ 2 p x , s
where   λ = s D . Particular solutions P ¯ j p reproduce the pre-leak gradient −2aG0x from (A2):
P ¯ j p x , s = P 1 s 2 a G 0 s

Appendix A.4. Transformed Boundary and Matching Conditions

Transform (A3), (A4), and (A5):
Inlet gradient:
P ¯ x x = 0 = 2 a G 0 s
Leak continuity/jump:
P ¯ 1 l 1 , s = P ¯ 2 l 1 , s ,   P ¯ 2 x x = l 1 P ¯ 1 x x = l 1 = 2 a G u t t s
Valve (Robin) boundary:
d P ¯ 2 d x x = l + k P ¯ 2 l , s = k P l , 0 s

Appendix A.5. Solving for the Leakage Transform Gut(s)

The transformed pressure fields in the upstream and downstream regions are given by Equations (A7a) and (A7b), respectively. Application of the inlet condition, the pressure continuity condition at x = l 1 , the flux discontinuity condition at the leak location, and the Robin valve boundary condition yields a linear algebraic system for the unknown coefficients A1, B1, A2, and B2.
The resulting algebraic system expresses the downstream coefficient A2 as a linear function of the leakage transform G u t ( s ) . Evaluating the downstream pressure solution (A7b) at the valve location x = l gives
P ( l , s ) = A 2 + P 2 ( p ) ( l , s )
because cosh ( 0 ) = 1 and sinh ( 0 ) = 0 .
Substitution of the algebraic solution for A2 into Equation (A12) yields
P ( l , s ) = A 3 ( s ) + P 2 ( p ) ( l , s ) + B 3 ( s ) G u t ( s )
where A 3 ( s ) and B 3 ( s ) are determined by the transformed boundary and interface conditions. Elimination of the intermediate coefficients allows Equation (A13) to be rearranged into the compact compatibility relation
G ¯ u t s = Λ l , l 1 ; λ , κ , a P l , 0 s P ¯ 2 l , s
where the kernel Λ l , l 1 ; λ , κ , a represents the combined influence of the inlet condition, the leak interface conditions, and the Robin valve boundary condition. Equation (A14) establishes a direct analytical link between the leakage transform and the valve pressure response and therefore removes the need for an empirically prescribed leakage law.
Substitution of the algebraic solutions for A1, B1, A2, and B2 into the transformed valve boundary condition and subsequent elimination of the intermediate coefficients yields the explicit form of the transfer kernel
Λ l , l 1 ; λ , κ , a = λ sin h λ l l 1 κ cos h λ l + λ sin h λ l × 2 a s
where Λ denotes the explicit analytical expression obtained after elimination of the intermediate coefficients. Equation (A15) makes explicit the dependence of the leak valve interaction kernel on the spectral parameter, the valve response coefficient, and the leak location, thereby providing the analytical foundation for the dominant-mode approximation introduced in Section 3.2. To obtain a compact analytical leakage law, the kernel is approximated by its dominant pole contribution. In the vicinity of the leading decay mode,
Λ ( l , l 1 , κ ; s ) Λ 0 ( l , l 1 , κ ) s + β
where β denotes the effective attenuation rate of the dominant leak–valve interaction mode. Under this approximation, the valve pressure response is represented by its leading exponential component. Substitution of Equation (A16) into Equation (A14) yields the characteristic first-order leakage transform
G u t ( s ) ~ r ( β ; l 1 ) G 0 β s ( s + β )
Applying the inverse Laplace transformation gives
G u t t = r β ; l 1 G 0 1 e β t
Thus, Equation (A18) is not introduced empirically; rather, it represents the dominant-mode reduction of the leakage relation derived from the transformed two-region boundary value problem. The factor r ( β ; l 1 ) accounts for the influence of leak location and hydraulic attenuation on the limiting leakage intensity. The resulting leakage function satisfies
G u t 0 = 0
and approaches the finite asymptotic value
G u t t = r ( β ; l 1 ) G 0
Therefore, the analytical leakage law describes a bounded transient process evolving from the undisturbed state to a finite asymptotic leakage regime. Substituting Equation (A14) into the transformed valve pressure relation (A10) and rearranging gives
P ¯ l , s = P l , 0 s A l s 2 B l , β s + β  
where A() represents the steady-state contribution associated with the background pressure gradient, while B(,β) characterizes the leakage-induced transient coupling.
The inverse Laplace transformation of Equation (A19) yields the closed-form valve-pressure response
P l , t = P l , 0 A l t B l , β e β t
which forms the basis for the valve activation criterion and the optimal valve spacing formulation developed in Section 3.2 and Appendix A.7.

Appendix A.6. Modal Coefficients and Eigenfunction Derivation for the Transient Pressure Solution

To construct a modal representation, the non-homogeneous boundary data are first absorbed into a stationary lifting function. The pressure field is decomposed as
P x , t = h x + u x , t
where h(x) represents the stationary component and u(x,t) denotes the transient residual field. The lifting function is selected in the linear form
h ( x ) = A x + B
consistent with the pre-leak stationary pressure distribution. It is required to satisfy the stationary inlet gradient condition and the valve-side Robin condition,
h 0 = 2 a G 0
h l + κ h l = κ P l , 0
Substitution of h ( x ) = A x + B gives
A = 2 a G 0
and
B = P ( l , 0 ) + 2 a G 0 κ ( 1 + κ l )
Thus,
P x , t = 2 a G 0 x + P ( l , 0 ) + 2 a G 0 κ + 2 a G 0 l
With this choice, the residual field u(x,t) = P(x,t) − h(x) satisfies homogeneous modal boundary conditions. Therefore, the eigenfunction expansion can be applied to the residual problem without altering the original physical inlet and valve conditions.

Appendix A.6.1. Robin Eigenfunctions and Spectral Problem

To derive the modal representation of the transient pressure field, the stationary component h(x) is first separated from the total pressure:
u x , t = P x , t h x
where h(x) satisfies the corresponding steady-state problem and u(x,t) denotes the transient component. Substitution into the governing diffusion equation yields the homogeneous transient problem
u t = D 2 u x 2
Seeking separable solutions in the form
u x , t = X x T t
and substituting into Equation (A21) gives
1 D T d T d t = 1 X   d 2 X d x 2 = λ 2
where λ 2 is the separation constant. The spatial eigenvalue problem therefore becomes
X ( x ) + λ 2 X ( x ) = 0
The transient component is required to satisfy homogeneous Robin conditions associated with the inlet and valve boundaries. Consequently,
X ( 0 ) + κ X ( 0 ) = 0
X ( l ) + κ X ( l ) = 0
The leak location x = 1 is treated as an internal interface rather than a physical boundary. Therefore, no additional eigenvalue condition is imposed at x = 1.
The Sturm–Liouville problem (A22)–(A24) admits a discrete set of eigenvalues λ n and corresponding eigenfunctions ϕ n ( x ) :
ϕ n ( x ) + λ n 2 ϕ n ( x ) = 0
The general solution is
ϕ n ( x ) = A n c o s ( λ n x ) + B n s i n ( λ n x )
Applying the inlet Robin condition (A23) gives
B n = κ λ n A n
and therefore
ϕ n ( x ) = A n [ c o s ( λ n x )   κ λ n s i n ( λ n x ) ]
Without loss of generality, the normalization constant A n may be absorbed into the modal coefficients, yielding
ϕ n ( x ) = cos ( λ n x ) κ λ n sin ( λ n x )
Substitution of Equation (A25) into the valve condition (A24) produces the characteristic equation
( κ 2 λ n 2 ) s i n ( λ n l ) + 2 κ λ n c o s ( λ n l ) = 0
which determines the admissible eigenvalues λ n .
The resulting eigenfunctions form an orthogonal basis on the interval [ 0 , l ] ,
0 l ϕ n ( x ) ϕ m ( x ) d x = M n δ m n
where M n denotes the normalization constant and δ m n is the Kronecker delta.
The transient pressure fields in both regions are expanded using this common Robin eigenfunction basis:
P 1 x , t = h ( x ) + n = 1 B n ( t ) ϕ n ( x ) , 0 x l 1
P 2 x , t = h ( x ) + n = 1 C n ( t ) ϕ n ( x ) , l 1 x l
The influence of the leakage interface is not incorporated through a separate downstream eigenvalue problem. Instead, it enters through the interface conditions and modal forcing terms, whose projection onto the Robin eigenfunction basis is derived in Appendix A.6.2.

Appendix A.6.2. Modal Projection and Evolution Equations

Having established the Robin eigenfunctions, the residual pressure fields are expanded in the corresponding modal bases. For the upstream region 0 x l 1 ,
u 1 ( x , t ) = n = 1 B n ( t ) ϕ n ( x )
while for the downstream region l 1 x l ,
u 2 ( x , t ) = n = 1 C n ( t ) ϕ n ( x )
Substitution of Equation (A28) into the homogeneous diffusion equation with leakage forcing
u 1 t = D u 1 2 x 2 + F ( x , t )
yields
n = 1 d B n t d t ϕ n ( x ) = D n = 1 λ n 2 B n ( t ) ϕ n ( x ) + F ( x , t )
which has been used.
Multiplying by ϕ m ( x ) and integrating over [ 0 , l ] , the orthogonality relation
0 l ϕ n ( x ) ϕ m ( x ) d x = M n δ m n
yields the modal evolution equation
d B n d t + D λ n 2 B n = Q n ( t )
where
Q n ( t ) =   1 M n 0 l 1 F ( x , t ) ϕ n ( x ) d x
Using the leakage law
G u t t = r β ; l 1 G 0 1 e β t
the forcing term can be written as
Q n ( t ) = S n ( 1 e β t )
where
S n = 2 a D r ( β ; l 1 ) G 0 M n ϕ n ( l 1 )
Introducing ω n = D λ n 2 and solving Equation (A32) yields the closed-form expression
B n = e ω n t B n ( 0 ) S n ω n 1 e ω n t + S n ω n β e β t e ω n t , ω n β
For the downstream region, projection of Equation (A29) is
d C n d t + D λ n 2 C n = 0
with solution
C n ( t ) = C n ( 0 ) e ω n t
The initial modal amplitudes are obtained from the projection of the initial pressure distribution onto the corresponding eigenfunction bases:
B n 0 = 1 M n 0 l 1 P x , 0 h x   ϕ n ( x ) d x
The initial downstream modal amplitudes are obtained from the projection of the initial pressure field onto the common Robin eigenfunction basis:
C n 0 = 1 M n l 1 l P x , 0 h x   ϕ n ( x ) d x
where
M n = 0 l   ϕ n 2 ( x ) d x
Equations (A34)–(A38) provide the complete temporal evolution of the modal amplitudes and establish the analytical connection between the pressure diffusion equation and the transient pressure solutions employed in Section 3.1 and Appendix A.7.

Appendix A.6.3. Final Modal Representation of the Transient Pressure Field

Substituting Equations (A34)–(A38) into Equations (A26) and (A27) gives the final analytical solution.
For the upstream region ( 0 x l 1 ),
P 1 ( x , t ) = h ( x ) + n = 1 e ω n t B n ( 0 ) S n ω n 1 e ω n t + S n ω n β e β t e ω n t ϕ n ( x )
and for the downstream region,
P 2 ( x , t ) = h ( x ) + n = 1 C n ( 0 ) e ω n t   ϕ m ( x )
Equations (A39) and (A40) constitute the final modal representation of the transient pressure field and provide the analytical basis for the valve pressure response, activation time analysis, and optimal valve spacing formulation developed in the main text.

Appendix A.6.4. Analytical Verification of the Quasi-Invariant Response

We use the representative parameter set
P 1 = 5.5 × 10 5 Pa , G 0 = 30 Pa s / m , a = 0.05 s 1 , c = 400 m / s , L = 100 km ,
The selected parameter set does not represent a specific gas transmission pipeline. Instead, it defines a physically representative configuration chosen to investigate the fundamental transient behavior of the governing analytical model. The adopted values are consistent with the range commonly encountered in high-pressure gas transport systems and provide a suitable basis for examining the interaction between pressure wave propagation, diffusive attenuation, leakage-induced disturbances, and valve response.
The objective of the present study is not to reproduce the operating conditions of a particular pipeline network but rather to identify general dynamic properties of the analytical solution, including the existence of a quasi-invariant valve activation time and its implications for optimal valve spacing. Consequently, the conclusions should be interpreted as model-based physical insights that are expected to remain valid across a broad class of long-distance gas transmission pipelines operating under comparable dynamic regimes. In Equations (A39) and (A40), the normalized valve-pressure response P ( l , t ) / P ( l , 0 ) was evaluated for the three leakage scenarios considered in the main text:
l 1 = 12 km , β = 6.4 × 10 5 s 1 ,   l 1 = 48 km , β = 2.1 × 10 5 s 1   l 1 = 84 km , β = 7.4 × 10 6 s 1 .
The resulting normalized valve pressure responses P(,t)/P(,0) are shown in Figure A1.
The activation threshold θcr = 0.85 is reached at approximately
t v = 112 s ,   t v = 115 s , t v = 116   s
for the upstream, mid-section, and downstream leakage scenarios, respectively. These values are in close agreement with the results reported in Figure A1, confirming that the quasi-invariant response interval emerges directly from the analytical modal solution and is not an artifact of numerical optimization.
Figure A1. Normalized valve pressure response for three representative leakage scenarios.

Appendix A.7. Valve Activation Time, Optimal Spacing, and Dominant-Mode Representation at the Valve

To obtain a closed-form design expression for valve spacing, the general valve pressure response derived in Section 3.2 is replaced by its dominant-mode approximation. For the dominant-mode approximation, the lowest spatial mode is associated with the global pressure disturbance length scale of the pipeline. In a long transmission pipeline, the fundamental mode corresponds to a half-wave variation over the characteristic length L. Therefore, the first spatial eigenvalue may be approximated as
λ 1 π L ,
This approximation is not intended to replace the full Robin eigenvalue spectrum derived in Appendix A.6.1. For design-oriented estimates, the first mode provides the dominant contribution because all higher modes decay exponentially faster. Instead, it provides a leading-order estimate of the global acoustic–diffusive decay scale governing the valve pressure response. The approximation becomes particularly useful for engineering design because the higher modes decay more rapidly and the long-time transient response is dominated by the first spatial mode.
ω 1 = D λ 1 2 = c 2 2 a π L 2 = K ,
Accordingly, the dominant global diffusive damping parameter is estimated as π 2 c 2 2 a L 2 .
The local leakage attenuation β then acts as an additional exponential damping contribution, so that the effective decay rate of the valve pressure response is approximated by
ω e f f β + K ,
Under the dominant-mode approximation, the normalized transient response at the valve can therefore be written as
P l , t P l , 0 cos π Δ l L exp β + K t ,       Δ l = l - l 1
where Δ denotes the design spacing between neighboring valves (i.e., the distance between the leak and valve pair in the worst-case scenario). The cosine factor reflects the spatial structure of the fundamental mode and encodes the effect of Δ on the amplitude of the pressure disturbance at the valve.

Appendix A.8. Activation Criterion and Implicit Spacing Relation

Appendix A.8.1. Valve Activation Condition

Starting from the general valve pressure response obtained in Equation (15), the long-time transient behavior is governed by the slowest decaying spatial mode. Retaining only the first eigenmode of the Robin Sturm–Liouville expansion derived in Appendix A.6 and neglecting higher-order modes, the normalized valve pressure response may be approximated by
P ( l , t ) P ( l , 0 )   Φ 1 ( Δ l ) e x p [ ( β + K ) t ]
For a long transmission pipeline, the first eigenfunction is approximated by
Φ 1 ( Δ l ) c o s ( π Δ l L )
yielding Equation (A42).
θ ( t ) = P ( l , t ) P ( l , 0 ) = cos π Δ l L exp [ ( β + K ) t ]
where the cosine term represents the spatial amplitude of the fundamental mode over the design spacing ( Δ l ), while ( β + K ) denotes the effective attenuation rate combining leakage-induced damping and global acoustic–diffusive decay.
Valve activation occurs when the normalized pressure reaches the prescribed threshold, θ ( t v ) = θ c r
θ ( t v ) = θ c r
Substituting the dominant-mode response into the activation condition gives
θ c r = cos π Δ l L exp [ ( β + K ) t v ]
Solving for the activation time yields
t v = 1 β + K ln θ c r cos ( π Δ l / L )
Using Δ l = 25 km, θ c r = 0.85 , L = 100 km, c = 400 m/s, and a = 0.05 s−1, Equation (A44) predicts activation times of approximately 112 s, 115 s, and 116 s for the three attenuation coefficients considered in this study. These values define the quasi-invariant interval
t * 112 116   s
which is subsequently observed in Figure 3 and Figure A1.

Appendix A.8.2. Optimal Valve Spacing

The emergency valve is assumed to activate when the normalized pressure ratio at its location reaches the critical threshold θcr prescribed by the safety logic:
P l , t max P l , 0 = θ c r
where tmax is the maximum allowable activation time.
Substituting the dominant-mode representation (A42) into the activation criterion yields
θ c r = cos π Δ l L exp β + K t max
Equation (A45) expresses the implicit coupling between the design spacing Δ, the leak attenuation coefficient β, the global diffusive decay constant K, the allowable response time tmax and the activation threshold θcr.

Appendix A.8.3. Closed-Form Optimal Spacing

Solving (A45) for the spacing Δ yields the closed-form optimal valve distance:
Δ l o p t = L π arccos θ c r exp β + π 2 c 2 2 a L 2 t max
The above dominant-mode spacing expression is valid only when θ c r e x p [ ( β + K ) t m a x ] 1 .
This expression provides a direct analytical mapping from (θcr, tmax, β, K, L) to the required valve spacing. The argument of the arccosine must satisfy the feasibility condition
1 θ c r exp β + K t max 1
which is automatically fulfilled in practical applications because 0 < θcr < 1 and exp[−(β + K)tmax] <1 for tmax > 0. For design purposes, the diffusive constant K can be evaluated as
K = ω 1 = c 2 2 a π L 2
so that the combined damping β + K can be estimated directly from known pipeline parameters and the calibrated leakage attenuation coefficient β. Interpretation and consistency with the main text. Equation (A42) shows that:
The optimal valve spacing Δopt decreases when a more stringent safety criterion is imposed, corresponding to lower values of θc; Δopt decreases as the allowable response time tmax is reduced;
Larger leakage attenuation β or stronger diffusive damping K (shorter acoustic–diffusive scale) also reduces the admissible spacing, requiring valves to be placed closer to each other.
These trends are fully consistent with the numerical feasibility maps and contour plots presented in Section 4, where Δopt surfaces are evaluated over (θcr, tmax) for different leakage scenarios. The closed-form criterion (A46) thus provides an analytical alternative to empirical fixed-spacing rules with a physics-based analytical standard and gives a transparent derivation of the optimal emergency valve spacing.

Appendix B. Physical Interpretation of the Leakage Amplification Factor r(β;1)

Appendix B.1. Purpose and Physical Meaning

The analytical leakage law derived in Appendix A.5 contains the dimensionless amplification factor r(β;1),
G u t t = r β ; l 1 × G 0 ( 1 e β t )
which accounts for the combined influence of leak location and hydraulic attenuation on the effective leakage intensity.
The factor r(β;1) does not alter the governing diffusion equation or the leak interface conditions. Instead, it provides a compact representation of spatial and dissipative effects that are not explicitly retained in the dominant-mode approximation developed in Appendix A.5. For engineering implementation, the following dimensionless approximation is adopted:
r β ; l 1 = 1 + α 1 l 1 L exp β β 0
where L is the pipeline length, α is a dimensionless amplification parameter, and β0 is a reference attenuation scale. Equation (A49) is introduced as a convenient engineering parametrization satisfying the required monotonicity, boundedness, and dimensional consistency properties.

Appendix B.2. Fundamental Properties

The proposed representation possesses the following physically desirable characteristics.
Dependence on Leak Location.
r l 1 0
Therefore, leaks located closer to the inlet produce larger values of r(β;1), whereas leaks located near the valve yield smaller amplification factors. This behavior reflects the gradual reduction in the hydraulic driving potential along the pipeline.
Dependence on Attenuation.
r β 0
Hence, stronger attenuation of the transient disturbance leads to a reduction in the effective leakage intensity.
Boundedness. Since
0 1 l 1 L 1 ,       0 < e x p ( β β 0 ) 1
the amplification factor satisfies
1 r ( β ; l 1 ) 1 + α
Thus, the leakage amplification remains finite for all admissible parameter values.
The calibration factor r(β;1) should not be interpreted as a conventional discharge coefficient. Instead, it represents an effective hydraulic calibration parameter accounting for the cumulative influence of leak position, pressure wave attenuation, unresolved local leakage processes, and other secondary hydraulic effects that are not modeled explicitly in the present analytical formulation.

Appendix B.3. Interpretation

Variation in the leakage amplification factor r(β;1) with respect to the amplification parameter α for three representative leak locations (1 = 12, 48, 84 km). The figure is intended to illustrate the influence of leak position on the amplification factor under identical attenuation conditions. Calculations were performed using L = 100 km, β = β0 = 2.1 × 10−5 s−1, while α was varied within the 0.1 ≤ α ≤ 1.2.
Sensitivity of the leakage amplification factor r(β;1) to the attenuation scale β0. The figure illustrates the attenuation-dependent behavior and boundedness of the proposed representation. Calculations were performed for L = 100 km, α = 1.0, and β = 2.1 × 10−5 s−1.
Figure A2a,b illustrates the variation in r(β;1) for representative leak locations and attenuation levels. The results demonstrate that:
  • Upstream leaks produce the largest amplification factors;
  • Downstream leaks exhibit the weakest hydraulic influence;
  • The amplification factor decreases monotonically with increasing attenuation;
  • The function remains bounded and physically meaningful over the entire parameter range.
Consequently, r(β;1) provides a compact and physically interpretable representation of the influence of leak location and attenuation on transient leakage intensity while preserving the analytical structure of the governing model.
Figure A2. (a). Dependence of the leakage amplification factor r(β;1) on the amplification parameter α for representative leak locations. (b). Dependence of the leakage amplification factor r(β;1) on the reference attenuation scale β0.

References

  1. Zhao, T.; Shin, B.R. Upwind scheme using preconditioned artificial dissipation for unsteady gas-liquid two-phase flow and its application to shock tube flow. J. Appl. Fluid Mech. 2024, 17, 1806–1819. [Google Scholar] [CrossRef] [Scilit]
  2. Luo, X.; Yang, R.; Wu, Q.; Zhang, D. Hydraulic transient analysis in low gas-liquid ratio pipelines under valve closure conditions: Pressure surge characteristics and predictive modeling. J. Pipeline Sci. Eng. 2026, 6, 100376. [Google Scholar] [CrossRef] [Scilit]
  3. Thorley, A.R.D. Fluid Transients in Pipeline Systems; Professional Engineering Publishing: London, UK, 2004. [Google Scholar]
  4. Wylie, E.B.; Streeter, V.L. Fluid Transients in Systems; Prentice Hall: Hoboken, NJ, USA, 1993. [Google Scholar]
  5. API. Recommended Practice 14E: Design and Installation of Offshore Production Platform Piping Systems; American Petroleum Institute: Washington, DC, USA, 2013. [Google Scholar]
  6. ISO 13623; Petroleum and Natural Gas Industries—Pipeline Transportation Systems. International Organization for Standardization: Geneva, Switzerland, 2017.
  7. IGEM. IGEM/TD/1: Steel Pipelines for High Pressure Gas Transmission; Institution of Gas Engineers and Managers: London, UK, 2020. [Google Scholar]
  8. Zhao, Y.; Tao, X.; Li, L.; Guo, Z.; Qi, H.; Wang, J.; Yang, K.; Lin, W.; Fan, J.; Chen, C. Assessment of the Measured Mixing Time in a Water Model of Asymmetrical Gas-Stirred Ladle with a Low Gas Flowrate Part II: Effect of the Salt Solution Tracer Volume and Concentration. Symmetry 2025, 17, 802. [Google Scholar] [CrossRef] [Scilit]
  9. Shen, Y.; Chu, W.; Chen, J. Seal leakage flow-affected compressor endwall and fillet profiling design based on optimization and data mining. J. Appl. Fluid Mech. 2026, 19, 1449–1468. [Google Scholar] [CrossRef] [Scilit]
  10. Kappes, M.A.; Larrosa, N.O.; Bergant, M.A.; Perez, T.E. Blending hydrogen in existing natural gas pipelines: Impact of reduced JR-Curve slope on the pipeline integrity. Int. Eng. Fail. Anal. 2026, 186, 110517. [Google Scholar] [CrossRef] [Scilit]
  11. Aliyev, I.G.; Gafarbayli, K.A.; Mammadov, A.; Mammadrazayeva, F. Unsteady gas dynamics modeling for leakage detection in parallel pipelines. Coupled Syst. Mech. 2025, 14, 371–393. [Google Scholar] [CrossRef]
  12. IEA. Global Hydrogen Review; International Energy Agency: Paris, France, 2023. [Google Scholar]
  13. Zhang, K.; Ma, R.; Geng, T.; Yang, J.; Hou, J. Leakage detection method based on transient pressure behaviors during pigging process in pipelines. Measurement 2025, 240, 115598. [Google Scholar] [CrossRef] [Scilit]
  14. Yu, J.; Yi, J.; Mahgerefteh, H. Optimal emergency shutdown valve configuration for pressurised pipelines. Process Saf. Environ. Prot. 2022, 159, 768–778. [Google Scholar] [CrossRef] [Scilit]
  15. Sundar, K.; Zlotnik, A. State and Parameter Estimation for Natural Gas Pipeline Networks Using Transient State Data. IEEE Trans. Control Syst. Technol. 2018, 27, 2110–2124. [Google Scholar] [CrossRef] [Scilit]
  16. Chaczykowski, M. Transient flow in natural gas pipeline systems. Appl. Math. Model. 2010, 34, 1051–1067. [Google Scholar] [CrossRef] [Scilit]
  17. Yuan, W.; Chen, Z.; Zhao, G.; Su, C.; Kong, B. Semi-Analytical Reservoir Modeling of Non-Linear Gas Diffusion with Gas Desorption Applied to the Horn River Basin Shale Gas Play, British Columbia (Canada). Energies 2024, 17, 676. [Google Scholar] [CrossRef] [Scilit]
  18. Mammadov, A.; Mammadrzayeva, F.; Aliyev, I.G. Analytical and Asymptotic Modeling of Coupled Transient Gas Redistribution Induced by Simultaneous Injection and Withdrawal in Transmission Pipelines. Math. Comput. Appl. 2026, 31, 103. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.