We consider the flow of a volume
$\mathcal {V} = q t^\alpha$ of viscous fluid injected into a gap
$H$ between two horizontal plates (
$q$ and
$\alpha$ are positive constants,
$t$ is time). When the viscosity of the displaced fluid is negligible, the injected fluid forms a slug in contact with both plates connected (at a moving grounding line) to a gravity current (GC) with a downward-inclined interface. Hutchinson et al. (J. Fluid Mech., 598, 2023, pp. A4–1–13) considered a constant source (
$\alpha = 1$) of Newtonian fluid at the center of an axisymmetric gap; the flow, governed by the parameter
$J$ (the height ratio of the unconfined GC to
$H$), admits a similarity solution. Here, the self-similar flow theory is (a) extended to rectangular geometry and power-law fluids, and (b) simplified. Similarity appears when
$\alpha = n/(n+1)$ (two-dimensional) and
$\alpha = 2n/(n+1)$ (axisymmetric), with propagation
$\sim t^\beta$, where
$\beta /\alpha = 1$ and
$1/2$, respectively, and
$n-1$ is the power of the shear in the viscosity law (
$n=1$ for Newtonian fluid). The flow is governed by a single parameter
$J$, representing the above-mentioned ratio. For small
$J$, the GC is mostly unconfined; for large
$J$, almost all the injected fluid is in contact with both boundaries of the gap. For given geometry and
$n$, we solve one ordinary differential equation (ODE) for the reduced thickness over the reduced length
$0\lt y \leqslant 1$, with a singular-regular condition at
$y=1$. The details of the confined GC, functions of
$J$, follow by simple formulae.