1. Introduction
The attempt to mitigate climate change motivates the transition to renewable energy sources. In this energy transition, hydrogen will potentially play an important role for energy storage; see for example [Reference Fraunhofer3, Reference Grimm12, Reference Sidki Uyar and Besikci20]. Efficient transportation of this gas is possible via pipelines and other means. For example, the construction of a large-scale hydrogen pipeline infrastructure for the transport and distribution of hydrogen is being discussed in [Reference Kuczynski, Laciak, Olijnyk, Szurlej and Wlodek17, Reference Smit, Weeda and de Groot21]. In [Reference Gillette and Kolpa5], an overview of interstate hydrogen pipeline systems in the US is given.
A sound understanding of the transportation physics along with ways of (optimally) influencing the gas transport in pipelines is one of the main building blocks towards the optimal use of gas.
Mathematically, the flow of gas through pipes is modelled by the compressible Euler equations. As typically the diameter of a pipe is much smaller than the pipe’s length one resorts to the study of a one-dimensional model, only. Moreover, the usual operating conditions of the pipeline network lead to an isothermal setting; see [Reference Banda, Herty and Klar1, Reference Brouwer, Gasser and Herty2]. The resulting isothermal Euler equations form a quasilinear system of hyperbolic partial differential equations. Typically, in the operation of gas pipelines, the gas velocity is rather small while the gas pressure is high (see [Reference Osiadacz19, Reference Witkowski, Rusin, Majkut and Stolecka22]). Under such conditions, often a simpler semilinear model suffices. Based on an acoustic approximation of the isothermal Euler equations, a semilinear model can be derived which generates reasonable approximations of the state for sufficiently small Mach numbers and sufficiently high gas pressures without abrupt changes. Relying on assumptions on the problem data (physical characteristics of the pipe, initial and terminal states), in this paper the existence of continuous solutions for this model is shown.
Given this existence result, the main result of this paper is concerned with constrained exact boundary controllability. In fact, we present assumptions that allow to control the gas flow from a continuous initial state to a continuous terminal state by suitably chosen boundary controls in such a way that during the whole process, bounds for the gas velocity and the gas pressure are satisfied. Such bounds are a standard requirement in the operation of gas pipelines. In our context, they have the additional effect that they guarantee that the states remain within the range where the semilinear model is valid. We illustrate the exact controllability result by numerical examples where the boundary controls for exact controllability are approximated with a numerical method of characteristics.
This paper has the following structure. In Section 2, we present the isothermal Euler equations. In Section 2, we derive the model for slow high-pressure flow and consider the corresponding stationary solutions. In Section 4, we first state the semilinear model in diagonal form. Then, we present our existence result for continuous solutions of the semilinear model that is based on the characteristic curves. For certain system parameters, we obtain continuous solutions for arbitrary long time intervals. In Section 6, we present our result on the exact controllability for the semilinear model. In Section 7, two numerical examples illustrate how the gas flow in a pipe can be transitioned between two stationary states using the approach introduced in the previous Section 6. Finally, conclusions are presented in Section 8.
2. The isothermal Euler equations
Consider a pipe of length $L>0$ that corresponds to the interval $[0,\, L]$ . Let $D>0$ denote the constant diameter of the pipe, $\lambda_{fric}\geq 0$ the friction coefficient and $\varphi\in {[\!-\!\pi,\,\pi]}$ the constant slope. Define $s_{lope}\;:\!=\;\sin\!(\varphi)$ and set $\theta\;:\!=\; \frac{\lambda_{\mathrm{fric}}}{D}$ . Let g denote the gravitational constant, $\rho>0$ the gas density, $p>0$ the pressure and q the cross-sectional mass flow rate.
We assume that we have a real gas that satisfies the state equation:
where Z(p) is the compressibility factor that is given by a continuously differentiable function with strictly positive values, $R^e_s$ is the gas constant and $T^e$ is the temperature. The starting point of our study are the isothermal Euler equations (see for example [Reference Hante, Leugering, Martin, Schewe and Schmidt13]):
that govern the flow through a single pipe.
In our analysis, we also make use of the velocity $v= \dfrac{q}{\rho}$ and the sound speed c given by:
Thus, we have
For the Mach number M, this yields
The gas pipelines are operated in a subsonic flow regime where the absolute value of the velocity of the gas is strictly less than the sound speed in the gas. For the Mach number, we thus have
In fact, in the operation of gas transportation networks, upper bounds for the velocity of the gas are enforced. In order to state (2.1) in terms of the dimensionless Mach number M and the pressure p, we observe that
If $M\not=0$ , then the first equation of (2.1) yields
This implies in turn
We also have
Therefore,
Hence, there is a continuous function $\aleph \;:\; {\mathbb R}^4 \rightarrow {\mathbb R}$ such that $\left(\frac{q^2}{\rho}\right)_x =M \, \aleph(M,\, P,\, M_x,\, p_x)$ and $\aleph(0)=0$ . This is the motivation to truncate for subsonic flow with small values of $|M|$ the term $\left(\frac{q^2}{\rho}\right)_x$ from the quasilinear model and to replace the second equation in (2.1) by:
A derivation of this model using asymptotic expansions can be found in [Reference Brouwer, Gasser and Herty2].
3. The model for slow subsonic flow and the stationary states
With (2.2) and (2.3), the well-known model can be obtained (see for example [Reference Gugat, Leugering, Martin, Schmidt, Sirvent and Wintergerst7, Reference Herty, Mohring and Sachers14]):
For the case of ideal gas where $Z=1$ , this is a semilinear model. In [Reference Gugat and Ulbrich8], for the initial data $q(0,\, x)=0$ , $\rho(0,\, x) = \exp\!(\beta\, x)$ the solution of both the quasilinear model (2.1) and the semilinear model are given, which allows us to observe how the difference between the two solutions can grow exponentially fast with time.
Since the first equation in (2.1) has not been modified, also (3.1) guarantees the conservation of mass.
The stationary solutions of the quasilinear system (2.1) have been studied in [Reference Gugat, Hante, Hirsch-Dick and Leugering6] and [Reference Gugat, Wintergerst and Schultz10]. For the stationary states of system (3.1), we have $q = const.$ and $ p_x = - \frac{1}{2} \, \theta \,c^2\, \frac{q\, |q|}{p}- g \, s_{lope}\,\frac{1}{c^2} p.$ For a horizontal pipe (that is $ s_{lope}=0$ ), we get
Thus, for the case of ideal gas where c is constant for $x\in [0,\,L]$ , we obtain
This is the well-known Weymouth equation. We have $0 \leq \frac{p^2}{2}(x) =\frac{p^2}{2}(0) - \frac{1}{2}\, {\rm sign}(q) \, \theta \,c^2\, q^2\, x.$ Hence, for $q>0$ , the equation is a valid model only if x and consequently $L>0$ are sufficiently small. In fact, we can compute the point $x^\ast$ where the solution blows up. It satisfies the equation $0 = \frac{p^2}{2}(0) - \frac{1}{2}\, {\rm sign}(q) \, \theta \,c^2\, q^2\, x^{\ast}.$ Thus, we have $p(x^\ast)=0$ , so before this point is reached, the state ceases to be subsonic. Note that at the point $x^\ast$ , the derivative of p(x) blows up.
Also, in the original model (2.1), for the stationary states a blow-up of the derivative occurs after a finite length; see [Reference Gugat, Hante, Hirsch-Dick and Leugering6].
Now we consider the case where $s_{lope}\not=0$ . First, we consider constant stationary states. The constant stationary solutions corresponds to a constant flow rate $\bar q$ and a constant pressure $\bar p>0$ with
For ideal gas, there exist stationary solutions with a constant flow rate $\bar q$ that satisfies
where the pressure is given by:
as long as the term under the square root is positive with $\hat C$ chosen such that $p(0)>0$ has the appropriate value. This can be verified by inserting the solution $(\bar q, p(x))$ into (3.1). This is a particular steady state where in the source term the friction part and the slope part cancel each other. More precisely, the definition of p implies
Hence, due to the definition of $\bar p$ , we have
Whence, the relation (3.2) implies that the second equation in (3.1) holds.
4. The semilinear model in diagonal form
In the following, we restrict our considerations to the case of an ideal gas, where c is a constant and (3.1) is a semilinear model. Under this condition, the hyperbolic system can be elegantly rewritten to see that the characteristic curves are straight lines. This allows us to analyse the problem substantially.
We therefore state (3.1) in terms of the corresponding Riemann invariants, which are defined as:
Hence, the physical variables can be expressed in terms of the Riemann invariants as:
and we have the flow rate:
Let us further define some notation. Let $\sigma(z) \;:\!=\; z \, |z|$ and consider the function:
Then, in terms of the Riemann invariants, the system has the diagonal form:
which is well defined as long as $R_+ \not = R_-$ . In terms of the physical variables, this is equivalent to $p>0$ . This requirement is often satisfied in applications as a lower bound $\underline p>0$ for the pressure is usually prescribed. In the subsonic flow regime, pressure constraints of the form:
can be expressed in terms of the Riemann invariant as:
Similarly, whenever $2p = R_+ - R_- > 0$ , the Mach number constraint
is equivalent to
Moreover, with $p>0$ , it is easy to see that $|M|<1$ implies that $R_+>0$ and $R_-<0$ . Note that all the constraints for the Riemann invariants are linear. This is convenient for associated optimal control problems for gas networks. The diagonal form (4.2) of the system has a similar structure as in [Reference Gugat and Ulbrich9]. The fundamental difference is that the Riemann invariants in (4.2) depend linearly on $(p,\, q)$ , whereas in [Reference Gugat and Ulbrich9] the Riemann invariants depend on the logarithm of the pressure. This stems from the study of the the diagonal form of the quasilinear system (2.1), where the diagonal matrix depend on the system state.
5. Existence of solutions of the semilinear model
In this section, we prove the existence of solutions of the initial boundary value problem with the semilinear model. The characteristic curves for the semilinear model are a priori given straight lines. For a given pair (x, t), $t \geq 0$ , we define the ${\mathbb R}^2$ -valued function $\xi_\pm(s,\, x,\, t)$ as the solution of the initial value problem:
Then, the characteristic lines passing through (x, t) are given by:
Along these lines, the hyperbolic system is equivalent to the following system for any s:
This allows to prove the existence of continuous solutions for continuous problem data using a fixed-point iteration on (5.1). The existence of broad solutions of the semilinear system has already been shown in [Reference Hintermüller and Strogies15] for the case of horizontal pipes. In [Reference Hintermüller and Strogies15], Proposition 4, lower and upper bounds for the pressures and for the flow rate are considered. Indirectly, this also yields bounds for the gas velocity and the Mach number. In this paper, in contrast to [Reference Hintermüller and Strogies15], we include sloped pipes in our analysis. Since the semilinear model is only valid for sufficiently small Mach numbers, we also include constraints for the Mach number directly in the analysis. We point out that such a constraint for the velocity of the gas is also used in practice to avoid vibrations of the pipelines; see [Reference Freitas Rachid and Costa Mattos4] and [Reference Zou, Cheraghi and Taheri23] for studies of fluid-induced vibrations of natural gas pipelines. Note that in our result, all the constants in the assumptions are given explicitly, so they can be verified rather easily. Our result provides conditions that allow to obtain continuous solutions that satisfy the box constraints for the pressure and the Mach number. The conditions require continuous initial and boundary data that satisfy certain inequalities. Note that it is not sufficient to require that the initial and boundary data satisfy the state constraints for the pressure and the Mach number. This can be seen as follows: for a stationary state in a horizontal pipe, the pressure is decreasing along the pipe in the direction of flow. Hence, the pressure at the inflow end must be strictly above the lower bound for the pressure in order to guarantee that the state constraint is satisfied throughout the pipe.
In the forthcoming analysis, we invoke the inequality:
between the physical characteristics of the pipe. The explicit character of this condition departs from the ones previously used for investigating the existence of solution, albeit with higher regularity.
Now we state our existence result.
Theorem 5.1. Consider a pipe with physical parameters $L > 0$ , $\theta\geq 0$ and $s_{lope}$ . Let $T>0$ and the numbers $\underline p, \overline p$ such that $0<\underline p < \overline p$ be given. Define the sets:
and the points:
For the t-component of $P_0^\pm(t,\, x)$ , we use the notation $t_0^\pm(t,\, x)\geq 0$ .
Let a continuous state $R_+$ on $\Gamma_+$ , a continuous state $R_-$ on $\Gamma_-$ and a number $\lambda \in (0,\, 1)$ be given. Assume that there exists a number $\Delta t>0$ such that the values of $R_+$ and $R_-$ satisfy the inequalities:
Define the constant:
Assume that $s_{lope}\leq 0$ and
and
for all $(t,\,x) \in [0,\, T]\times [0, \, L]$ . Moreover, assume that $\Delta t$ is sufficiently small in the sense that
Then, with the given values of $R_+$ on $\Gamma_+$ and $R_-$ on $\Gamma_-$ that prescribe initial conditions at $t=0$ and boundary conditions at $x=0$ and $x=L$ , there exists a unique solution on $[0,\, \min\{T,\,\Delta t\}]$ given by continuous functions $R_+(t,\, x)$ , $R_-(t,\, x)$ for $t\in [0,\, \min\{T,\,\Delta t\}]$ and $x\in [0,\, L]$ that satisfy the hyperbolic system (4.2) in the sense of (5.1). The solution is subsonic, and the absolute value of the Mach number is less than or equal to $\lambda$ . The values of the pressure are contained in the interval $[\underline p,\; \overline p]$ .
Furthermore, if $\Delta t\geq \frac{L}{c}$ , thus in particular if (5.2) holds, the solution exists on $[0,\, T]$ .
Remark 5.2. Note that our assumptions imply that the compatibility conditions for continuous functions are satisfied at $t=0$ and $x=0$ , $x=L$ between the initial and the boundary data.
Proof. Let a continuous function $R =(R_+,\, R_-)$ with $R_+$ , $R_- \in C([0,\, T]\times [0, \, L],\; \mathbb R)$ be given that satisfies the conditions (5.3), (5.4), (5.6), (5.7), as well as the box constraints (4.4)–(4.7). Define the operator $P\;:\!=\;(P_+,\, P_-)$ with
Our first step is to check that P(R) satisfies, in terms of physical variables, the box constraints for the pressure and the bound for the Mach number, that is
and
are satisfied. Note that since $\lambda<1$ and $(P_+ - P_-)(R) > 0$ , the relation (5.10) implies $P_+(R) > 0$ and $P_-(R) < 0$ . Due to (5.5) we have
Moreover, we have
Hence, if $t - t_0^\pm(t,\, x) \leq \Delta t$ and $s_{lope}\leq 0$ , inequality (5.3) implies
Similarly, we have the inequality:
Hence, (5.4) implies
and P(R) satisfies (5.9). Furthermore, we have $(P_+ - P_-)(R)\geq 2 \, \underline{p} > 0$ . This implies that the Mach number constraint (5.10) can expressed as in (4.6)–(4.7), that is:
For the first inequality, we obtain
Due to (5.6), this implies
For the second inequality, we have
Due to (5.7), this implies
Remember that with $(P_+ - P_-)(R) > 0$ , the inequality (5.10) implies that $P_+(R) > 0$ , and $P_-(R) < 0$ . By Lemma A.2, P(R) is continuous.
So we can start a fixed-point iteration with the operator P where each iterate satisfies (5.9)–(5.10). It remains to show that the fixed-point iteration is convergent. However, this is standard. In fact for a continuous function that satisfies (5.9), (5.11)–(5.12), and $S_+ = R_+$ on $\Gamma_+$ and $S_- = R_-$ on $\Gamma_-$ , we have
Note that we can invoke Lemma A.1 to get the estimate
For $P_-$ a similar estimate holds. Hence, if $|t - t_0(t,\, x)|\leq \Delta t$ , due to (5.8) we have
which implies that P is a contraction. Hence, Banach’s fixed-point theorem yields the existence of a continuous solution on the corresponding short time interval contained in $[0,\,\Delta t]$ .
Note that due to the construction, we have the upper bound $|t - t_0(t,\, x)|\leq \frac{L}{c}$ . Hence, if the assumptions hold with $\Delta t\geq \frac{L}{c}$ , we obtain a contraction on $[0,\, T]\times [0,\, L]$ which implies that the solution exists on the interval $[0,\, T]$ where T can be chosen arbitrarily large.
Thus, we have proven Theorem 5.1.
6. Constrained exact controllability
In the operation of gas networks when the customer demand changes from an initially constant demand to a new constant demand, it is necessary to steer the system from a stationary initial state to a desired terminal state in such a way that the imposed state constraints for the pressure and velocity remain valid. While there are numerous results about exact controllability (see for example [Reference Li and Zhang18]), to our knowledge the exact boundary controllability with state constraints has not yet been analysed for hyperbolic systems. Exact boundary controllability with control constraints has been studied for example in [Reference Klamka16].
We want to analyse the problem of state-constrained exact boundary controllability between stationary states in the framework of continuous solutions on $\Omega = [0,T]\times[0,L]$ . To this end, we divide this domain into four pieces, as shown on Figure 1. Note that an initial stationary state $R^{(0)}_\pm$ completely determines the system state on the triangle:
If the state constraints hold for the initial state, they are also satisfied on $D_{\mathrm{I}}$ . Similarly, for $T > L/c$ , a desired stationary terminal state $R^{(T)}_\pm$ completely determines the system state on the triangle:
Again if the state constraints hold for the terminal state, they are also satisfied on $D_{\mathrm{II}}$ .
In order to construct exact boundary controls that steer the system from $R^{(0)}_\pm$ to $R^{(T)}_\pm$ , we define a new state $R^{\mathrm{mid}}_\pm$ on the $I_{\mathrm{mid}}$ segment which joins the inner vertices of the $D_{\mathrm{I}}$ and $D_{\mathrm{II}}$ triangles. More precisely, this segment is defined as:
One possibility for the values of $R^{\mathrm{mid}}_\pm$ is to use a convex combination of the values at the aforementioned vertices. For the forthcoming analysis, we use the following boundaries:
Now, we can exchange the roles of t and x and consider a leftward initial boundary value problem on the set:
with ‘initial’ data from the stationary states $R^{(0)}_\pm$ , $R^{(T)}_\pm$ on $\Gamma^{\mathrm{III}}_\pm\cap D_{I}$ , $\Gamma^{\mathrm{III}}_\pm\cap D_{II}$ , respectively and $R^{\mathrm{mid}}_{\pm}$ on $I_{\mathrm{mid}}$ . The PDE for the Riemannian invariants reads
where F is defined in (4.1). The plus component of the boundary trace of these solutions at $x=0$ yields a continuous boundary control $u_+(t)$ for $t\in (0, \, T)$ . The existence of solutions for such a problem, with the solution satisfying the state constraints, is dealt with in Proposition 6.1, under appropriate smallness assumptions for $R^{(T)}-R^{(0)}$ and on $\theta$ and $|s_{lope}|$ . The latter is addressed in (5.2), and the former is made precise in the forthcoming hypothesis (6.4)–(6.7).
Similarly, by considering a rightward initial boundary value problem for the hyperbolic system
on the set
we obtain a continuous boundary control $u_-(t)$ for $t\in (0, \, T)$ as the minus component of the boundary trace of these solutions at $x=L$ .
Since we have reversed the roles of time and space, the integration is performed along the characteristics curves $\psi(y,t,x)$ , which satisfy the following ODE:
These functions can be represented as:
The following proposition contains sufficient conditions that guarantee the existence of continuous solutions of the corresponding Goursat problems on $R^{\mathrm{III}}$ and $R^{\mathrm{IV}}$ , respectively.
Proposition 6.1. Consider a pipe with physical parameters $L > 0$ , $\theta \geq 0$ and $s_{lope}$ . Suppose that $T > L/c$ and (5.2) hold. Let $\tilde{U}\;:\!=\; \frac{1}{2}\theta\lambda^2 + \frac{g}{c^2} |s_{\mathrm{lope}}|$ . Furthermore, assume that the steady continuous initial state $R_{\pm}^{(0)}$ , the steady terminal state $R_{\pm}^{(T)}$ and the values on $I_{\mathrm{mid}}$ are such that the following inequalities hold
where the initial boundary domain $\mathbf{P}^0_\pm(t,x)$ is defined as:
Then, given initial values on $\Gamma^{\mathrm{III}}_\pm$ (resp. $\Gamma^{\mathrm{IV}}_\pm$ ) there exists unique continuous functions $R_+$ , $R_-$ on the $R^{\mathrm{III}}$ (resp. $R^{\mathrm{IV}}$ ) domain that satisfies the integral version of system (6.1) (resp. (6.2)) along the characteristics and the box constraints (4.3) and (4.5).
Proof. For $|M|\!\leq \lambda$ , we have
Let us proceed with the analysis of the domain $\mathrm{R}^{\mathrm{III}}$ , for which the initial conditions are $\Gamma^{\mathrm{III}}_\pm$ . The choice of $\psi$ in (6.3) is such that
As in the proof of Theorem 5.1, we tackle the existence of solutions by using a fixed-point approach on $P\;:\!=\;(P_+,P_-)$ , defined as follows:
with $P^0_{\pm}(t,x) \;:\!=\; \Gamma^{\mathrm{III}}_{\pm} \cap \{\psi_\pm(y, x, t), y\in\mathbb{R}\}$ is the initial boundary for the domain $R^{\mathrm{III}}$ (see Figure 1) and $x^0_\pm$ is the ‘space’ component of $P^0_\pm(t,x)$ , where the argument (t, x) on $x^0_\pm$ is dropped since there is no ambiguity. Note that by construction of the domain $R^{\mathrm{III}}$ , we have
Finally, it holds that $R_{\pm}(P^0_{\pm}(t,x)) = R_{\pm} \circ \psi(x^0_{\pm}, t, x)$ .
Let a continuous function $R =(R_+,\, R_-)$ be given that satisfies the box constraints (4.4)–(4.7), and for which the hypothesis (6.4)–(6.7) and (5.2) hold. Let us denote the right-hand side in (6.1) by $f\circ R$ . Then, rewriting this function in terms of the pressure p and Mach number M, we get
which leads to the upper bound:
We continue our analysis by checking whether P(R) satisfies the following constraints:
and
on $R^{\mathrm{III}}$ . Note that if $(P_+ - P_-)(R) > 0$ and $\lambda<1$ , then the relation (6.11) implies $P_+(R) > 0$ and $P_-(R) < 0$ . Starting with (6.10), we get
Using (6.8) and (6.9), the magnitude of the difference of the integral terms can be bounded by $\tilde{U}L\bar{p}$ . Then, invoking hypothesis (6.4) and (6.5), we get
Now, let us move to the inequalities (6.11):
Note that the sum of the integral terms is also bounded in magnitude by $\tilde{U}\,L\,\bar{p}$ , for any value of $\lambda\in[\!-\!1,1]$ . Using hypothesis (6.6), we get
And similarly, using hypothesis (6.7), we have
Hence, along the characteristics, the constraints (6.10) and (6.11) are fulfilled as long as R satisfies the box constraints and the hypothesis (6.4)–(6.7) hold. Note that, by construction, $P_+(R)$ (resp. $P_-(R)$ ) is absolutely continuous on $\psi_{+}$ (resp. $\psi_{-}$ ).
We shall now show that P is a contraction. Remember that (6.10) and (6.11), with $\lambda<1$ , implies that $P_+(R) > 0$ and $P_-(R) < 0$ . We now consider continuous functions $R_\pm$ and $S_\pm$ fulfilling (4.4) and (4.6)–(4.7), and such that $S_+ = R_+$ on $\Gamma^{\mathrm{III}}_+$ and $S_- = R_-$ on $\Gamma^{\mathrm{III}}_-$ . Following the usual approach for studying contraction properties, we have
Invoking Lemma A.1 yields the following estimate:
For $P_-$ , the same estimate holds. Since $|x - x^0_+(t,x)|\leq \frac{L}{2}$ on $\mathrm{R}^{\mathrm{III}}$ , using (5.2) we get
Hence, Banach fixed-point theorem asserts the existence of a unique continuous solution, which satisfies the box constraints.
For the domain $R^{\mathrm{IV}}$ , the proof is along the same line. The hyperbolic system is (6.2), with initial conditions now on $\Gamma^{\mathrm{IV}}_\pm$ . The operator $P\;:\!=\;(P_+,P_-)$ on $R^{\mathrm{IV}}$ reads
with $P^0_{\pm}(t,x) \;:\!=\; \Gamma^{\mathrm{IV}}_{\pm} \cap \{\psi_\pm(y, x, t), y\in\mathbb{R}\}$ . Note that the bound (6.9) is also valid for the term under the integral. Furthermore, the initial values $R_{\pm}(P^0_{\pm}(t,x))$ satisfy (6.4)–(6.7). Following the same steps as for $R^{\mathrm{III}}$ , we get that $P_+$ and $P_-$ satisfy (6.10)–(6.11). Additionally, the contraction proof for P goes through whenever (5.2) holds. Hence, in $R^{\mathrm{IV}}$ , there is also existence and uniqueness of a continuous solution satisfying the box constraints.
The above construction implies that with the continuous boundary controls $u_+$ at $x=0$ and $u_-$ at $x=L$ , the initial boundary value problem with the initial state $R^{(0)}$ has a continuous solution R on $[0,\, T]\times [0, \, L]$ that satisfies the state constraint on $[0,\, T]\times [0, \, L]$ and the terminal constraint:
Thus, we have shown the following theorem on local constrained exact controllability:
Theorem 6.2. Assume that $T> L/c$ , and that the characteristics of the pipe $L > 0$ , $\theta\geq 0$ and $s_{lope}$ are such that the condition (5.2) is fulfilled. Assume that the steady initial state $R^{(0)}$ , the steady terminal state $R^{(T)}$ and the Riemann invariants $R^{\mathrm{mid}}$ on $I_{\mathrm{mid}}$ are continuous and satisfy the state constraints and the inequalities (6.4)–(6.7). Then, the system can be steered by continuous boundary controls from the stationary state $R^{(0)}$ to the stationary state $R^{(T)}$ in the time T with a continuous state in such a way that the state constraints are satisfied on $\Omega = [0,\, T] \times [0,\, L]$ .
Proof. The proof has been sketched at the beginning of the section. The assumptions of Proposition 6.1 are satisfied. Hence, the existence of a solution on $R^{\mathrm{III}}$ and $R^{\mathrm{IV}}$ follows from invoking Proposition 6.1. The continuous boundary controls are then obtained from the boundary traces of the continuous state at $x=0$ and $x=L$ .
7. Numerical experiments
We present some numerical results for the exact controllability between two stationary states and investigate two cases: the first one is an increase in the mass flow and the second one is an inversion of the direction of the flow. As for the analysis, we use the relations satisfied by the solutions along the characteristic lines as a basis for the numerical scheme. We focus on the $D_{\mathrm{I}}$ and $D_{\mathrm{II}}$ , and the relations are similar for $R^{\mathrm{III}}$ and $R^{\mathrm{IV}}$ . Let $(t_i, x_i)$ and $(t_j, x_j)$ be two distinct coordinates in either $D_{\mathrm{I}}$ or $D_{\mathrm{II}}$ . Let $(t_k, x_k)$ be the intersection of the $\xi_+$ and $\xi_-$ characteristics starting from $(t_i, x_i)$ and $(t_j, x_j)$ , respectively. Then, there exists $\Delta_+$ and $\Delta_-$ such that $\xi_+(t_i+\Delta_+, x_i, t_i) = \xi_-(t_j+\Delta_-, x_j, t_j) = (t_k, x_k)$ . Let $R^i_{\pm}\;:\!=\; R_\pm(t_i, x_i)$ , $R^j_{\pm}\;:\!=\; R_\pm(t_j, x_j)$ and $R^k_{\pm}\;:\!=\; R_\pm(t_k, x_k)$ . Using the midpoint rule for approximating the integral on the right-hand side in (5.1) yields
Similarly, we have the following relation for $R^j_-$ and $R^k_-$ :
Hence, the numerical scheme for computing the values of the Riemann invariants at $(t_k, x_k)$ consists in finding a solution to the nonlinear (implicit) system formed by the previous two equations. Newton’s method is then used to compute a solution to this system. For this, we first need to define a set of points $\{(t_k, x_k)\}$ at which those quantities are evaluated. Since the right-hand side involves both $R_+$ and $R_-$ , the set of points must allow for the evaluation of both quantities. This is achieved by considering a ‘triangular’ grid, constructed in the following way: for the $D_{\mathrm{I}}$ and $D_{\mathrm{II}}$ domains, $N_D$ equidistant nodes are placed on the line segment corresponding to the initial (resp. terminal) state. Then, $N_D$ equidistant line segments, parallel to the y-axis, slice the triangle $D_{\mathrm{I}}$ (resp. $D_{\mathrm{II}}$ ) into $N_D-1$ convex isosceles trapezoids. The nodes in the grid are defined as the intersection of the characteristic lines starting from the $N_D$ nodes located on the initial (resp. terminal) state and the aforementioned vertical line segments. This also implies that both Riemann invariants are defined at the nodes, as well as pressures and Mach numbers. The number of nodes on each line segment is decreasing by one when moving away from the initial (resp. terminal) state. The distance between two consecutive nodes on a given characteristic is $\Delta s = \frac{L}{2 c (N_D-1)}$ . Note that this quantity is an output for a given choice of grid and not an input parameter for the construction of the grid.
The $R_{\mathrm{III}}$ and $R_{\mathrm{IV}}$ domains are also sliced into convex isosceles trapezoids by $N_R$ horizontal line segments, between $I_{\mathrm{mid}}$ and the $u_+$ (resp. $u_-$ ) boundary. It is also the number of nodes on any horizontal line segment of length $T_L$ and hence gives the distance $\Delta t = \frac{L}{2 c (N_R-1)}$ between nodes on $I_{\mathrm{mid}}$ . To simplify the numerical implementation, we round up the length of $I_{\mathrm{mid}}$ so that it is a multiple of $\Delta t$ . Then, the number of nodes on $I_{\mathrm{mid}}$ is $N_{\mathrm{mid}}$ and the number of nodes on each boundary $u_{\pm}$ is $N_{\mathrm{mid}} + N_R$ . The distance between two consecutive nodes on a given characteristic is $\Delta y = \frac{L}{2(N_R-1)}$ .
Lemma 7.1. Consider a given pipe with $L > 0$ , $\theta \geq 0$ , $s_{slope}$ . Let $0 < \lambda \leq 1$ , $0 < \underline{p} < \overline{p}$ and $X\;:\!=\; \{ (R_+,R_-)\in\mathbb{R}^2\mid |R_+ + R_-|\leq \lambda (R_+ - R_-) \text{ and } 2\underline{p}\leq R_+ - R_- \}$ . With $\Delta_+ = \Delta_-$ , we write the system (7.1)–(7.2) as $G(R^k) = H(R^i,R^j)$ . Then, the function G is $C^1$ on X. Furthermore, there exists $N_D^* > 0$ such that if the grid for $D_{\mathrm{I}}$ or $D_{\mathrm{II}}$ is constructed with $N_D \geq N_D^*$ nodes, then $\nabla G(R)$ is positive definite for any $R\in X$ .
Proof. By construction of the triangular grid on $D_{\mathrm{I}}$ or $D_{\mathrm{II}}$ , we have $\Delta_+ = \Delta_- = \Delta s$ with $\Delta s = \frac{L}{2 c (N_D-1)}$ . Then, the system (7.1)–(7.2) can be rewritten as $G(R^k) = H(R^i,R^j)$ , where
and $H(R^i,R^j)$ is the constant right-hand side. Invoking Lemma A.1, we get that F is $C^1$ on X and $\|\nabla F(R^*)\|_2\leq \sqrt{10}\lambda$ for any $R^*\in X$ . This yields that G is $C^1$ on X. Moreover, we have
that is the sum of the identity matrix plus a perturbation whose norm is controlled by $\Delta s$ . Hence, there exists $\Delta s^* > 0$ such that for all $0 < \Delta s\leq \Delta s^*$ , the matrix $\nabla G(R^*)$ is positive definite. This yields a minimum number of nodes $N_D^* > 0$ and the proof is complete.
One of the property enjoyed by our numerical solution is its reversibility along the characteristics. This is easy to see from the system (7.1)–(7.2): the right-hand side has the same expression for both $R^i$ and $R^j$ . Hence, changing the integration interval from $t_k$ to $t_k-\Delta_+$ yields the same relation as (7.1), with just both sides negated. This implies that the boundary values computed by the forward/backward propagation of $I_{\mathrm{mid}}$ can be interpreted as control inputs. Indeed, assuming that $N_R = N_D$ , then integrating forward in time the pipe using those boundary values would give the desired terminal state. This is not the case with the explicit or implicit Euler discretisation of the right-hand side. Another consequence is that values of R on $\Gamma^{\mathrm{III}}_\pm$ and $\Gamma^{\mathrm{IV}}_\pm$ must coincide, in particular outside of $I_{\mathrm{mid}}$ . By construction, this is true for either $R_+$ or $R_-$ , and this was numerically verified for the other component of R at a very high numerical accuracy.
The set-up for the numerical simulations is as follows: the pipe length $L=1000\;\mathrm{km}$ , $D = 1\;\mathrm{m}$ , $T = 15^{\circ}$ , $R_s = 518.26\;\mathrm{J\,kg}^{-1}\mathrm{K}$ , $\lambda_{\mathrm{fric}} = 2\times 10^{-6}$ . This gives $c = 386.44\;\mathrm{ms}^{-1}$ and $T_L = 2587.71\;\mathrm{s}$ . The large pipe length is there to further highlight the effect of the nonlinear source term.
Example 7.2. With this pipe, we first compute the controls for increasing the flow rate in the pipe from $q_0 = 100\;\mathrm{kg\,s}^{-1}\mathrm{m}^{-2}$ to $q_T = 1000\;\mathrm{kg\,s}^{-1}\mathrm{m}^{-2}$ , while keeping a pressure of $p = 50\;\mathrm{bar}$ at $x = 0$ . The associated stationary solutions yield the pressure drops displayed in Figure 2. Since our analysis is in the regime of a rather low friction parameter and low mass flows, the non-linearity of the pressure drop along the pipe is present, but hard to detect in Figure 2.
We first study the evolution of the pressure and flow across time and space, as shown in Figure 3. The triangular areas that appear flat are ${D_{\mathrm{I}}}$ on the right and ${D_{\mathrm{II}}}$ on the left. The main difference between the two different terminal times is the larger amplitude of the pressure, which varies around 50 bar, and a smoother transition of the mass flow from the initial value to the terminal one for $T=10,159$ s when compared to $T=4540$ s.
Now, we focus on the evolution of the Riemann invariants at the ends of the pipe as shown in Figure 4. First, remember that due to the finite propagation speed, the values of the Riemann invariants are fixed (or predetermined) by the initial and terminal states for some time. Namely, for $R_+$ this is the case at $x = 0$ for $t\in[T-T_L, T]$ , and at $x=L$ for $t\in [0, T_L]$ . For $R_-$ , this is the case at $x = 0$ for $t\in[0, T_L]$ , and at $x=L$ for $t\in [T-T_L, T]$ . There is a major difference in the control and behaviour depends on whether $T-T_L < T_L$ holds. If this is the case, then on the time interval $[T-T_L, T_L]$ both Riemann invariants are determined by the initial and terminal states. Hence, there is no ‘choice’ (in the sense of control input) of the Riemann invariants on that interval. This motivates the presentation of the numerical results with two terminal times: for the shorter time horizon $T = 4540\;\mathrm{s}$ , $T-T_L < T_L$ , whereas for the longer time horizon $T = 10,159\;\mathrm{s}$ this inequality does not hold. Two vertical lines, one for $t=T_L$ in blue, and one for $t=T-T_L$ in red, have been added to all the plots which depicts a time evolution.
In Figure 4(a) and (b), we see that $R_+$ at $x=0$ transitions from its initial value to the one at the start of the predetermined line segment in $[0, T-T_L]$ , and at $x=L$ the same appears in $[T_L, T]$ . For $R_-$ , we find the same phenomenon, with the values of x reversed. In Figure 4(c) and (d), we observe that the evolution of the Riemann invariants occurs at a less steep slope thanks to the longer duration $T-T_L$ of the transitions. Also, in the time interval $[T_L, T-T_L]$ , the values of both Riemann invariants can freely be selected, in contrast to the case $T = 4540\;\mathrm{s}$ , where only one component of R can be selected at any time. While all plots depicted in Figure 4 may appear to shown piecewise linear graphs only, this is just a visual effect due to the low friction and mass flow regime. Finally, note that the regularity of the Riemann invariants hinges on the choice of their values on the $I_{\mathrm{mid}}$ segment. Here, we use a simple linear interpolation. We expect that a smoother transition would also smoothen the values of $R_{\pm}$ at the end points. However, such an investigation is beyond the scope of this paper.
In Figure 5, the evolution of the pressure p and the Mach number M at the end points of the pipe are shown. The evolution of the pressure as shown in Figure 5(a) and (c) can be divided into three phases: first a change from the initial values to a plateau-like phase, and then a transition to the terminal state values. The duration of the first and third phase is $\min\{T_L, T-T_L\}$ for each, and the second one lasts for the remaining time. Note that the variation in pressure is much smaller in Figure 5(c) when compared to the one in Figure 5(a). For the Mach number M, the same behaviour with three phases is present. Now, the difference between Figure 5(b) and (d) is in the rate of change of the Mach number, with the extremal values being the same, respectively. In particular, remember that for $T = 4540\;\mathrm{s}$ , the control input is predetermined on $[T-T_L, T_L]$ . Hence, outside this time interval, the rate of change has to be larger in order to account not only for the reduction in terminal time, but also for this additional constraint.
In Figure 6(a) and (b), the evolution of the mass flow at the end points is depicted. The behaviour is quite similar to the one for the Mach number in Figure 5(b) and (d).
Finally, in Figure 6(a) and (b), the difference $\Delta v$ in gas velocity at the end of the pipe is shown. The values depicted in Figure 6(a) drop more rapidly and remain relatively constant in the time interval $[T-T_L, T_L]$ , whereas in Figure 6(b), the change is comparable in all three time intervals.
Example 7.3. Let us now move on to the second scenario: a flow inversion in the pipe, from $q_0 = 1000\;\mathrm{Kg\,s}^{-1}\mathrm{m}^{-2}$ to $q_T = -1000\;\mathrm{Kg\,s}^{-1}\mathrm{m}^{-2}$ , while keeping a pressure of $p = 50\;\mathrm{bar}$ at $x = 0$ . The associated pressure profiles are given in Figure 7. The evolution of the pressure and mass flow rate are depicted in Figure 8. Given a terminal time much larger than $T_L$ , the flow reversal is rather smooth across the pipe, as one can see in Figure 8(b). In Figure 8(a), as expected, we observe that the pressure increases at $x=L$ and decreases at $x=0$ to induce the switch.
As for the previous numerical analysis, we first focus on the evolution of the Riemann invariants in Figure 9. The same three phase regime with $T-T_L > T_L$ is observed. The evolution of $R_\pm$ follows the same logic as before: outside of the predetermined values, the Riemann invariants evolve according to the values on $I_{\mathrm{mid}}$ propagated through the $R^{\mathrm{III}}$ and $R^{\mathrm{IV}}$ domains.
This yields the pressure and Mach number as shown in Figure 10. The main difference between the end points is the pressure, which evolves in a symmetric fashion between the end points of the pipe: a decrease (resp. increase) on $[0, T_L]$ followed by a plateau-like phase, and finally an increase (resp. decrease) on $[T-T_L]$ to the values given by the stationary solutions. Note how the pressure at $x=L$ transitions from a smaller value to a larger one at $x=0$ . The amplitude of the pressure remains small in this scenario. For the Mach number, in Figure 10(b), the difference between the end points remains small. The same can be stated about the evolution of the mass flow in Figure 11(a), where the difference appears even smaller. In Figure 11(b), the difference $\Delta v$ in gas velocity sheds some light on the difference between end points values.
8. Conclusions
We have derived a semilinear model for gas pipeline flow from the quasilinear isothermal Euler equations. We have presented the corresponding stationary states not only for the case of horizontal pipes but also for the case of pipes with constant slopes. Moreover, for the general case of pipes with constant slopes, we have shown that for any given finite time horizon if the continuous initial data are sufficiently small, a continuous transient solution of the semilinear system exists that remains subsonic. In addition, the velocity of the gas remains below given a priori bounds and the pressure of the gas remains within a prescribed interval. This is important, since in the operation of gas pipelines, such bounds for the pressure and velocity occur regularly. We have shown that under certain smallness assumptions, the continuous solution exists even globally in time, that is for arbitrary large $T>0$ .
The constrained exact boundary controllability of the system was investigated. We have considered continuous solutions where the system is controlled from a given stationary state to a desired stationary state in such a way that the state constraints are satisfied everywhere throughout the process. In terms of the physical variables, the state constraints are box constraints for the pressure and an upper bound for the absolute value of the Mach number. These state constraints can be transformed to linear constraints in terms of the Riemann invariants.
We introduce a numerical scheme based on the midpoint rule to integrate the Riemann invariants on the characteristics. Finally, numerical simulations supporting the theoretical analysis have been shown. From those, we illustrate how the Riemann invariants on the boundaries evolve with respect to time. We highlighted the difference in behaviour whether the terminal time T is larger than $2L/c$ or smaller. In the latter case, the Riemann invariants invariants are determined on the time interval $[T-T_L,T_L]$ by the initial and boundary states. This result in a rather different behaviour of the controls.
In the current investigation of constrained exact boundary controllability, we have studied a semilinear model. Since this analysis only covers the case of ideal gases, an extension to the case of non-ideal gases would be highly desirable. This requires to cover the case of quasilinear systems that occur in many applications. We hope that our contribution will be helpful as a guideline to take this next step in the analysis of constrained exact controllability of gas pipeline flow.
Acknowledgement
This work was supported by DFG in the Collaborative Research Centre CRC/Transregio 154, Mathematical Modelling, Simulation and Optimization Using the Example of Gas Networks, Projects B02, C03 and C05.
Conflict of interests
The authors have no competing interests to declare that are relevant to the content of this article.
Appendix A. Technical lemmas
Lemma A.1. Consider $F(x,y)\;:\!=\; (x+y)\left|\frac{x+y}{x-y}\right|$ , $\eta(x,y)\;:\!=\;\frac{x+y}{x-y}$ and for a given $\lambda > 0$ , $X\;:\!=\; \{ (w, z)\in\mathbb{R}^2 \mid w > 0, z< 0\text{ and }|\eta(w,z)|\leq\lambda\}$ . Then, F is $C^1$ on X. Furthermore, if both (x, y) and (u, v) are in X, then it holds that
Proof. Take $(x,y)\in X$ . We start with the case where $x+y\neq 0$ . Then, by direct computation, the relation
holds. The norm of the gradient can be estimated as follows:
given that $1 > \frac{x^2+ y^2}{(x-y)^2}$ on X. Now, when $x+y=0$ we note that by passing to the limit in (A1), we infer $\nabla F(x,y) = 0$ . Thus, the estimate (A2) also holds on that line.
Note that we just shown that F is $C^1$ on X. For any pairs (x, y) and (u, v) in X, by the mean value theorem, there exists $\tau\in[0,1]$ such that
Note that the level sets of $|\eta|$ are convex on X and we get $|\eta(\tau (x,y) + (1-\tau)(u,v))| \leq \lambda$ . Using this relation in (A2) gives us
Inserting this into (A3) yields
which concludes the proof.
Lemma A.2. Suppose that $P\;:\!=\; (P_+,P_-)$ is one of the fixed-point operators defined on one of the domains $D_{\mathrm{I}}$ , $D_{\mathrm{II}}$ , $R^{\mathrm{III}}$ or $R^{\mathrm{IV}}$ . Assume that the box constraints (5.9) and (5.10) on P are fulfilled. If the initial state $R(P^0_\pm)$ is continuous, then P(R) is continuous on the corresponding domain $D_{\mathrm{I}}$ , $D_{\mathrm{II}}$ , $R^{\mathrm{III}}$ or $R^{\mathrm{IV}}$ , respectively.
Proof. The operator P has a similar structure on all domains:
where G is the antiderivative of a continuous function. On each domain, the operator $P^0_{\pm}$ is an oblique projector on the initial boundary. That is, $P^0_{\pm}$ is an affine mapping. The term oblique projector indicates that the difference $(t,x) - P^0_{\pm}(t,x)$ does not lie in the orthogonal subspace to the range of $P^0_{\pm}(t,x)$ but is rather oblique to it. The difference $(t,x) - P^0_{\pm}(t,x)$ is on a direction d such that $\langle d, v\rangle\neq 0$ , with v the direction of any piece of $P^0_{\pm}(t,x)$ . Indeed, the characteristic lines are not orthogonal to either the segment $\{\{0\}, [0,L]\}$ or $\{[0,T], \{0\}\}$ . For instance, the operator $P^0_{\pm}$ for the domain $D_{\mathrm{I}}$ is the matrix $\begin{pmatrix} 0 & 0\\[5pt] -c & 1 \end{pmatrix}$ . By construction of the operator P, the solution is absolutely continuous along the characteristics. Let us proceed by showing that each function in the right-hand side of (A4) is continuous. This is clear for G by construction. For the remaining two terms, we show that $P^0_{\pm}$ is a Lipschitz operator. Note that if the initial boundary is made of one line segment (like for $D_{\mathrm{I}}$ and $D_{\mathrm{II}}$ ), this property holds true. If the boundary consists of two line segments (like $\Gamma^{\mathrm{III}}$ ), this requires a further step. In this case, consider two points $(t_1,x_1)$ and $(t_2,x_2)$ . Suppose that their image by the same projection operator is on different line segments, see Figure A.1. Let b (resp. d) be the projection of $(t_1,x_1)$ onto $L_1$ (resp. $L_2$ ), and c (resp. a) be the projection of $(t_2,x_2)$ onto $L_2$ (resp. $L_1$ ). Letting $\Pi^{L_i}_{\pm}$ be the oblique projector on $L_i$ , we have
Finally, since $R_\pm$ is continuous in space on the initial boundary, and G is continuous as well, this concludes the proof.