Picture a plug pushed through a gas pipeline network: a cleaning or inspection "pig" that lets only a limited amount of gas slip past it. At normal speeds, gas flow behaves like a wave system. The plug produces a sharp density drop across itself that standard theory classifies as forbidden, a non-classical shock, meaning a jump that holds together only because the moving obstacle enforces it. In long, rough pipes, friction dominates inertia and the same gas behaves like slow porous-medium diffusion. Porous-medium diffusion is a degenerate parabolic equation: diffusion that switches off where density vanishes, so fronts move at finite speed.
Numerical schemes built for that friction-dominated regime handle the stiff pressure waves implicitly for speed. They also add smoothing, called numerical dissipation, and that smoothing erases exactly the sharp jump the plug is supposed to hold. We propose one solver that stays accurate across the whole range from wave-like to diffusion-like flow on a network. It has three parts. The plug's flux limit is enforced inside the implicit pressure solve, as a one-sided constraint. Pipes are joined by the equal-pressure condition. The result is compared against the diffusive limit problem, which we derive: a porous-medium equation on a graph with a moving, flux-limited internal membrane.
Core Claim
In the friction-dominated limit, a moving flux constraint does not dissolve into a smooth porous-medium profile. It survives as a moving membrane across which pressure jumps. Write $\rho$ for density, $p(\rho)$ for pressure, $y(t)$ for the plug position, and $F_{\max}$ for the allowed leakage past the plug. The limit problem on each pipe is Darcy-type porous-medium flow:
$$\partial_t \rho = \partial_x\big(\partial_x p(\rho)\big) \quad \text{away from } y(t) \text{ and from vertices.}$$
Mass is conserved across the plug in the plug's frame. The relative Darcy flux satisfies
$$-\partial_x p - \dot y\,\rho \le F_{\max},$$
and pressure is continuous across the plug only when this inequality is strict. At vertices, pressure is continuous and fluxes sum to zero. That vertex rule is precisely the equal-pressure condition of Banda, Herty and Klar carried into the diffusive limit.
The practical consequence is a specific design rule for the scheme. The plug constraint must act on the implicit, stiff part of the flux. If it acts only on the explicit advective part, as a straightforward combination of existing schemes would do, the implicit Darcy flux leaks through the plug as friction grows, and the jump smears to zero width in the limit. That is a wrong answer, not just a blurred one.
What Exists and What It Leaves Open
Two lines of work motivate the proposal, and neither touches the other.
The first handles friction and networks. Redle and Herty build an asymptotic-preserving implicit–explicit scheme for isentropic gas on pipe networks with friction. "Asymptotic-preserving" means the scheme stays stable and consistent as the Mach number $\epsilon \to 0$. Their scheme splits stiff acoustic terms into a linear elliptic solve and couples pipes by equal pressure through half-Riemann problems. It has no moving constraints and is first order in time. Eiter and Schindler prove that damped Euler flow converges to porous-medium self-similar profiles in parabolic scaling variables, with relative-entropy decay $e^{-\tau/2}$ when the far-field densities agree. Their result is purely analytical, holds on a single domain, and in multiple dimensions requires a "flatness" assumption that a persistent jump violates.
The second line handles moving constraints. Delle Monache and Goatin formulate the coupled PDE–ODE moving-bottleneck model. Chalons, Delle Monache and Goatin supply the numerical technique we reuse: inside the cell containing the obstacle, they reconstruct left and right states that satisfy $F_{\max}$ exactly, which keeps the non-classical jump sharp. Goatin et al. extend the model to several interacting vehicles and report small spurious oscillations. All of this work is explicit, scalar or traffic-type, and posed on a single road without friction stiffness.
The relaxation approach of Herty, Kolbe and Müller acts as a constraint on our design. They show that linearizing an interface condition naively creates spurious boundary layers, and that the coupling must stay nonlinear to be consistent. We take this as a warning that a linearized plug constraint inside a Rosenbrock-type step could fail in the same way. We therefore treat the constraint as a complementarity condition (either the flux limit is active or the pressure is continuous, never both violated) rather than linearizing it.
On the degenerate side, Duan et al. show that Lagrangian energetic schemes track porous-medium fronts without artificial viscosity, but only on single 1D domains. Maddix et al. catalogue the artifacts that fixed Eulerian grids produce near vanishing density. We stay Eulerian, because particle paths split at junctions. That choice means we must show directly that our scheme avoids the artifacts Maddix et al. document.
Research Program
The first step is modeling. We pose the constrained problem for isentropic Euler flow with friction, a 2×2 system, rather than for scalar traffic. Across the plug, mass is conserved in the plug frame and the relative mass flux is capped at $F_{\max}$. When the cap is active, the momentum jump is balanced by the plug's force, which is the unknown in the complementarity condition. We then derive the formal $\epsilon \to 0$ limit displayed above. In that limit the plug velocity follows either a prescribed schedule or a law that depends on the downstream state, in the spirit of Delle Monache–Goatin. We will check that the limit is well posed in the simple 1D case where the plug moves at constant speed and the constraint is active. There, the problem reduces to two porous-medium problems connected by a flux condition in a moving frame, and it admits traveling-wave comparisons.
The second step is the scheme. We start from Redle–Herty's flux splitting. The explicit advective part receives Chalons-style in-cell reconstruction. The implicit step becomes a linear elliptic problem on the network with one extra unilateral constraint in the plug cell, solved by a semismooth Newton or active-set iteration. Because only one cell carries the constraint, this adds a small local complementarity problem to each linear solve. Vertices use the equal-pressure half-Riemann coupling.
The case where the plug crosses a vertex is the hard part, flagged in the file as a direct clash between continuous pressure at the vertex and a pressure jump at the plug. We resolve it by putting the plug on the branch it enters, with the plug-side trace of that branch taking part in the vertex system. The pressure jump then lives strictly inside that branch, and the vertex sees only continuous traces. We will test whether this assignment introduces a transient error that depends on the grid.
The third step is analysis. We will prove, at least for the semi-discrete scheme, three properties: conservation, exact satisfaction of the constraint, and consistency with the membrane limit as $\epsilon \to 0$ with the mesh fixed. This is the asymptotic-preserving property with the constraint included.
Baselines
The naive reference point is a first-order explicit Godunov/Rusanov solver with no special plug treatment. It represents the plug as a local flux cap on cell interfaces. Chalons et al. already show that this approach smears the jump or violates $F_{\max}$. It fixes the floor for sharpness and constraint violation, and its acoustic time-step limit makes it very slow at small $\epsilon$.
The strongest existing method for accuracy is the explicit Chalons in-cell reconstruction, extended to the gas system and to equal-pressure vertices. It is the natural reference for sharp jumps at moderate $\epsilon$. Chalons et al. report convergence rates between $O(\Delta x^{0.8})$ and $O(\Delta x^{1.5})$ on their Riemann Cases 0–IV. We must match this at $\epsilon = 1$ to show we lose nothing in the wave regime.
The strongest existing method for speed is Redle–Herty's asymptotic-preserving scheme. They report it running about 140 times faster than explicit schemes at $\epsilon = 0.001$ on their T-junction benchmark, with runtime nearly independent of Mach number. We run it with the constraint added in the most direct way, applied to the explicit part only.
That last run is also the key ablation: identical code to ours except that the implicit step is unconstrained. It isolates the single ingredient we claim matters. For every method we use the same meshes, the same CFL settings chosen for each method's own stability, the same network geometries, and the same wall-clock measurement.
We count our method as beating the baselines if three things hold together. First, it matches the explicit in-cell scheme's $L^1$ convergence rate at $\epsilon = 1$. Second, it keeps runtime within a small factor of Redle–Herty's at $\epsilon = 10^{-3}$. Third, where the explicit-only ablation's jump width and pressure-jump error grow as $\epsilon$ shrinks, ours stay bounded independently of $\epsilon$ against the membrane-limit reference.
Why not just…?
Why not just bolt Chalons' reconstruction onto the Redle–Herty scheme? This is the most serious threat, because it takes a week to build and might work at moderate friction. Our argument is that at small $\epsilon$ almost all of the pressure-driven flux lives in the implicit elliptic step. A constraint applied only to the explicit advective part therefore caps almost nothing. The ablation settles this directly by plotting jump width and constraint violation against $\epsilon$ for both variants. If the bolted-on version keeps the jump sharp down to $\epsilon = 10^{-3}$, the central claim is wrong, and we would report a validated combined scheme instead.
Why not just solve the limit porous-medium membrane problem directly? It is cheaper, and at small $\epsilon$ it may be accurate. But it discards the acoustic transients that occur when a plug is launched, stopped, or crosses a vertex, and it is invalid at moderate friction. We use it as a reference solution rather than a competitor. Where the full scheme and the limit solver agree, that agreement is evidence for the claimed limit.
Why not just refine the explicit in-cell scheme? It is accurate, but its time step is tied to acoustic speed. The roughly 140-fold gap that Redle and Herty report at $\epsilon = 0.001$ makes long network runs in the diffusive regime impractical. Our runtime-versus-$\epsilon$ curves measure how much of that gap we recover with the constraint included.
Why not just learn the flux with a neural finite-volume method? Baba et al. show that learned fluxes reach discontinuous-Galerkin accuracy on classical Riemann problems. They impose no moving flux constraint, however, and nothing in their training data resembles an undercompressive jump or stiff friction. A learned flux would have to discover a one-sided constraint that we can impose exactly by construction. We leave learned fluxes out rather than include a weak baseline.
Proposed Experiments
Wave regime, adapted Riemann suite. We adapt the Chalons Riemann Cases 0–IV to the gas system at $\epsilon = 1$. We measure $L^1$ error under mesh refinement against a very fine explicit reference, the number of cells spanning the jump, exact mass conservation, and the maximum of $q - \dot y\rho - F_{\max}$, where $q$ is the mass flux.
Friction sweep. We repeat the suite while sweeping $\epsilon$ from 1 down to $10^{-3}$, with the membrane-limit solution, computed on a very fine grid, as the small-$\epsilon$ reference. This sweep is the decisive check. It must show our jump width staying flat while the ablation's grows.
Network tests. We move the plug through Redle–Herty's 1-to-2 and 2-to-1 T-junctions and their inlet-discontinuity test. We report the pressure mismatch across the vertex, the error transient when the plug crosses the vertex, and runtime against $\epsilon$.
Degenerate checks. First, the plug is driven into a near-vacuum downstream section, and we check the free boundary ahead of it against the Barenblatt and Aronson waiting-time behavior that Duan et al. use. Their reported accuracy is second order in space, and no reported waiting-time number was found on Lacuna. We look specifically for the oscillations and negative densities that Maddix et al. describe. Second, with the plug removed, we compute the relative entropy to the porous-medium self-similar profile in parabolic scaling variables. We check that its decay slope approaches $-1/2$ when far-field densities agree, the rate proved by Eiter and Schindler. To our knowledge this would be the first numerical confirmation of that rate. It also calibrates how much our scheme's own dissipation distorts long-time behavior before we ask whether the plug's jump changes that rate.
References
- Coupling conditions for gas networks governed by the isothermal Euler equations
- An Asymptotic-Preserving Scheme for Isentropic Flow in Pipe Networks
- Time-asymptotic self-similarity of the damped compressible Euler equations in parabolic scaling variables
- Scalar conservation laws with moving constraints arising in traffic flow modeling: an existence result
- A conservative scheme for non-classical solutions to a strongly coupled PDE-ODE problem
- Interacting moving bottlenecks in traffic flow
- A Central Scheme for Two Coupled Hyperbolic Systems
- Numerical methods for porous medium equation by an energetic variational approach
- Numerical artifacts in the Generalized Porous Medium Equation: Why harmonic averaging itself is not to blame
- Supervised and Unsupervised Neural Network Solver for First Order Hyperbolic Nonlinear PDEs