Optimal Control of Transient Flows in Pipeline Networks with
Heterogeneous Mixtures of Hydrogen and Natural Gas
Luke S. Baker1, Saif R. Kazi2, Rodrigo B. Platte1, and Anatoly Zlotnik2
Abstract— We formulate a control system model for the
distributed flow of mixtures of highly heterogeneous gases
through large-scale pipeline networks with time-varying in-
jections of constituents, withdrawals, and control actions of
compressors. This study is motivated by the proposed blending
of clean hydrogen into natural gas pipelines as an interim
means to reducing end use carbon emissions while utilizing
existing infrastructure for its planned lifetime. We reformulate
the partial differential equations for gas dynamics on pipelines
and balance conditions at junctions using lumped elements to a
sparse nonlinear differential algebraic equation system. Our key
advance is modeling the mixing of constituents in time through-
out the network, which requires doubling the state space needed
for a single gas and increases numerical ill-conditioning. The
reduced model is shown to be a consistent approximation of
the original system, which we use as the dynamic constraints
in a model-predictive optimal control problem for minimizing
the energy expended by applying time-varying compressor
operating profiles to guarantee time-varying delivery profiles
subject to system pressure limits. The optimal control problem
is implemented after time discretization using a nonlinear
program, with validation of the results done using a transient
simulation. We demonstrate the methodology for a small test
network, and discuss scalability and potential applications.
I. INTRODUCTION
Transportation of natural gas through networks of large-
scale transmission pipelines has been studied in steady-state
[1], [2], [3], [4], [5] and transient [6], [7], [8] operations
with applications to the optimal control of compressor ac-
tuators. In steady-state, the flow of gas in the network is
balanced, so that inflows from processing plants and supply
stations and outflows from withdrawal stations sum to zero.
Steady-state pipeline flows are described using simple time-
invariant algebraic equations that relate pressure drop in
the direction of flow to mass flow along each pipeline.
In the transient regime, computational complexity increases
significantly because the flow in each pipeline cannot be
modeled with simple algebraic equations but rather requires
a system of nonlinear partial differential equations (PDEs)
*This study was supported by the U.S. Department of Energy’s Advanced
Grid Modeling (AGM) project “Dynamical Modeling, Estimation, and
Optimal Control of Electrical Grid-Natural Gas Transmission Systems”,
as well as LANL Laboratory Directed R&D project “Efficient Multi-scale
Modeling of Clean Hydrogen Blending in Large Natural Gas Pipelines to
Reduce Carbon Emissions”. Research conducted at Los Alamos National
Laboratory is done under the auspices of the National Nuclear Security
Administration of the U.S. Department of Energy under Contract No.
89233218CNA000001.
1Luke Baker and Rodrigo Platte are with the School of Mathematical
and Statistical Sciences at Arizona State University, Tempe, Arizona, 85281;
{lsbaker1,rplatte}@asu.edu.
2Saif Kazi and Anatoly Zlotnik are in the Applied Mathematics & Plasma
Physics Group at Los Alamos National Laboratory, Los Alamos, New
Mexico, 87545; {skazi,azlotnik}@lanl.gov.
[9], [10]. Model reduction methods have been proposed to
reduce the complexity of optimizing gas flows in networks
[11], [12]. Although natural gas is projected to be a primary
fuel source through the year 2050 [13], worldwide economies
have invested in transitioning from fossil fuels such as natural
gas to more sustainable resources. Hydrogen is a potential
candidate, which, because it does not produce carbon dioxide
when burned, is considered to have the potential to address
climate change [14]. Natural gas pipeline operation and man-
agement protocols may be modified to transport mixtures of
natural gas and hydrogen. Recent studies indicate that natural
gas pipelines can safely and effectively transport mixtures
of up to 20% hydrogen by volume [15], [16]. However, the
complexity of modeling steady-state and transient flows, and
thus designing and operating pipelines, is compounded with
the injection of hydrogen [17], [18].
Natural gas and hydrogen have significantly different
physical and chemical properties. Hydrogen is less dense
than natural gas, and the speed of sound through hydrogen is
roughly four times as large as that of natural gas. Viscosity,
velocity, density, pressure, and energy of the gas mixture
all vary with varying hydrogen concentration [19], [20], and
these directly affect the transportation of the mixture [21].
Numerical simulations have been performed to demonstrate
various effects on steady-state and transient-state flows of
mixtures of hydrogen and natural gas in pipeline networks
[22], [23], [24], [25], [26], [27], [28]. The method of
characteristics was used in the numerical simulation of
transient flows on cycle networks with homogeneous flow
mixtures [25]. Another recent study investigates gas compo-
sition tracking using a moving grid method and an implicit
backward difference method [23]. It was shown that both
methods of tracking perform well, but the implicit difference
method may lose some finer detail in the response due to nu-
merical diffusion. A finite element method using COMSOL
Multiphysics was also developed [26]. That study considers
the effects of hydrogen concentration on the compressibility
factor of the mixture and its relation with pressure. Moreover,
there the authors demonstrate that pressure may exceed
pipeline limitations in the transient evolution of flow and
that the likelihood of this happening increases proportionally
with increasing hydrogen concentration.
In contrast to pure natural gas, few studies have exam-
ined optimization of steady-state and transient operations
of mixtures of hydrogen and natural gas in networks. To
our knowledge, there are no results on the optimal control
of transient flows of heterogeneous mixtures of gases in
pipelines or networks of pipelines. Optimal control of com-
arXiv:2210.06269v2 [math.OC] 22 May 2023