J. Fluid Mech. (2006), vol. 548, pp. 87–111. c 2006 Cambridge University Press doi:10.1017/S0022112005007494 Printed in the United Kingdom 87 Onset of convection in a gravitationally unstable diffusive boundary layer in porous media By A. RIAZ, M. HESSE, H. A. TCHELEPI† AND F. M. ORR jr Department of Petroleum Engineering, Stanford University, Stanford, CA 94305, USA (Received 30 March 2005 and in revised form 22 July 2005) We present a linear stability analysis of density-driven miscible flow in porous media in the context of carbon dioxide sequestration in saline aquifers. Carbon dioxide dissolution into the underlying brine leads to a local density increase that results in a gravitational instability. The physical phenomenon is analogous to the thermal convective instability in a semi-infinite domain, owing to a step change in temperature at the boundary. The critical time for the onset of convection in such problems has not been determined accurately by previous studies. We present a solution, based on the dominant mode of the self-similar diffusion operator, which can accurately predict the critical time and the associated unstable wavenumber. This approach is used to explain the instability mechanisms of the critical time and the long-wave cutoff in a semi-infinite domain. The dominant mode solution, however, is valid only for a small parameter range. We extend the analysis by employing the quasi-steady- state approximation (QSSA) which provides accurate solutions in the self-similar coordinate system. For large times, both the maximum growth rate and the most dangerous mode decay as t 1/4 . The long-wave and the short-wave cutoff modes scale as t 1/5 and t 4/5 , respectively. The instability problem is also analysed in the nonlinear regime by high-accuracy direct numerical simulations. The nonlinear simulations at short times show good agreement with the linear stability predictions. At later times, macroscopic fingers display intense nonlinear interactions that significantly influence both the front propagation speed and the overall mixing rate. A dimensional analysis for typical aquifers shows that for a permeability variation of 1 - 3000 mD, the critical time can vary from 2000 yrs to about 10 days while the critical wavelength can be between 200 m and 0.3 m. 1. Introduction 1.1. Carbon dioxide sequestration Carbon dioxide (CO 2 ) sequestration in deep geological formations has been suggested as a way of reducing greenhouse gas emissions. When CO 2 is injected into an aquifer at a depth greater than 800 m, it forms an immiscible CO 2 -rich vapour phase, and a small amount of CO 2 dissolves in the brine (van der Meer 1992). In the temperature and pressure range encountered in geological CO 2 storage, the density of the CO 2 -rich vapour phase is less than the density of the brine, but the density of the brine will increase with increasing CO 2 concentration (Ennis-King & Paterson 2003). Several mechanisms for trapping of CO 2 underground should be provided by any suitable injection site. The buoyant CO 2 -rich vapour is prevented from rising back to the † Author to whom correspondence should be addressed.