This study explores the mechanisms that determine detrainment in deep cumulus convection. A set of 90 high-resolution Large Eddy Simulations is used to systematically explore the sensitivity of continental deep convection to the relative humidity and stability of the free troposphere. It appears that variations in the mass-flux profiles are determined by detrainment, rather than entrainment. The detrainment shows a strong dependence on the critical mixing ratio, a dimensionless parameter which describes which mixtures of cloud core and environmental air are positively buoyant. A conceptual approach to the parameterization of detrainment is proposed on the basis of these results.
 The parameterization of cumulus convection is a key challenge in improving the performance of Numerical Weather Prediction (NWP) and climate models, in particular in the tropics. The formulation of convection schemes has a large impact on phenomena such as the Madden-Julian Oscillation [Zhang and Mu, 2005; Lin et al., 2006], the structure and location of the Intertropical Convergence Zone [Frey and Latif, 1997; Liu et al., 2010] and the diurnal cycle over land [Yang and Slingo, 2001; Bechtold et al., 2004]. Moreover, the parametric assumptions on the mixing between convective clouds and their environment have been shown to be a main source in climate model uncertainty [Murphy et al., 2004].
 Most convection schemes are based on a bulk-plume approach, where the parameterization describes the behavior of the ensemble of clouds that are actively contributing to the transport of heat, moisture and momentum. The intensity and vertical extent of the moist convection is described by the mass-fluxMc = ρacwc, with ac denoting the fractional area of the cloud core, wc its vertical velocity and ρthe density. The behavior of the mass-flux is governed by the (fractional) entrainment and detrainment rates,ϵ and δ, which represent the mixing of environmental air into the cloud core and the removal of air that no longer contributes to updrafts:
 Most convection parameterizations fail to show any significant sensitivity to the free tropospheric humidity [Derbyshire et al., 2004]. In an attempt to rectify this, Bechtold et al. proposed to make the entrainment an explicit function of the environmental relative humidity, such that entrainment decreases in a moister environment. This has been shown to improve the performance of the global NWP model used at the European Center for Medium-Range Weather Forecasts (ECMWF).
 One existing bulk-plume scheme that intrinsically incorporates the sensitivity of convection to its environment was developed byKain and Fritsch . The scheme is based on the assumption that at the interface of the cloud core and the environment, a certain mass of cloud core air mc mixes with a mass me of air with the properties of the mean environment (the subscripts c and e will be used throughout this article). The mixtures that result can be described in terms of a mixing ratio χ, which indicates the fraction of environmental air in the mixture.
 The key idea behind the Kain-Fritsch scheme is that positively buoyant mixtures entrain into the cloud core, whereas mixtures that become negatively buoyant due to evaporative cooling (havingχ > χcr) are detrained. Assuming all mixing ratios occur with equal probability p(χ), the entrainment and detrainment rates can be analytically expressed in terms of χcr [Bretherton and McCaa, 2004]:
Here, λ is a length scale for the mixing of the cloud core with its environment.
De Rooy and Siebesma [2008, equation (A9)] showed that χcr increases with higher relative humidity and with higher buoyancy excess of the cloud core, which in turn depends on the stability. A fundamental problem with the formulation (equation (2)) is that it predicts a decreasing entrainment rate (which results in larger moisture excesses) in a drier environment, in clear disagreement with the CRM/LES results and proposed parameterization discussed above.
 In the current work, we will systematically determine the relative dependency of entrainment, detrainment and the intensity moist convection in general on humidity, stability and the critical mixing ratio χcr. This will be done by a massive sensitivity study of 90 three-dimensional Large Eddy Simulations of deep convection.
2. Sensitivity Experiments and Results
 The simulations are performed using the Dutch Atmospheric Large Eddy Simulation (DALES) Model. For the details of the code, the reader is referred to Heus et al.  with the modifications described in Böing et al. . The simulations were executed on a 57.6 × 57.6 × 25 km domain with a resolution of 150 m in the horizontal, while the vertical resolution varied from 40 m near the surface to 150 m near the tropopause.
 Our case setup is similar to the two-dimensional sensitivity experiment ofWu et al. , which was an idealization of a CRM intercomparison study of the diurnal cycle in North-West Brazil [Grabowski et al., 2006].
 The different initial stability and relative humidity profiles that span the phase space explored in this study can be found in the auxiliary material. The main added value of the new simulations as compared to those of Wu et al. is that they span a wider range of relative humidities and stabilities and that they are truly 3-dimensional. The initial surface temperature is 295.4 K. A shear of 4 ms−1 over the lower 5 km is enforced. Following Wu et al.  the sensible and latent heat fluxes are prescribed (161 and 343 Wm−2 respectively) and no radiative tendencies are applied. Though we realise that these are severe simplifications, we think that they will not affect the nature of the dependencies of the convection on the environmental conditions that will be explored in this paper.
 In order to analyze the entrainment rate, the buoyant cloud core decomposition is used as a sampling criterion (θv > and ql > 0, with θv denoting the virtual potential temperature and the overline a horizontal mean). The entrainment rate is diagnosed from the budget equation of a scalar variable ϕ, using a cloud core decomposition [Siebesma and Cuijpers, 1995]. A top-hat approach gives:
We thus diagnose the effective entrainment rate that needs to be incorporated in a bulk-plume scheme in order to obtain the correct profiles ofϕgiven the mass-flux. The entrainment rate is calculated by inverting the equation (neglecting the left hand side). The last term on the right hand side accounts for local sources and sinks ofϕ. Bulk-plume schemes are often used in operational models, although some recent work has pointed out limitations to their applicability [Romps, 2011; Dawe and Austin, 2011]. The success of a bulk-plume approach depends on its ability to capture the transport of at least heat and moisture.
 We use total water specific humidity (qt) as the scalar variable, hence the sources and sinks are due to microphysics. The advantage of using qt is that its cloud core value decreases rapidly with height, resulting in a more robust behavior of ϵ. The detrainment rate δ itself is diagnosed using ϵand the mass-flux (equation (1)). We will perform our analyses on the 8th hour of simulation, since by that time the mass-fluxes, entrainment and detrainment do not show any strong dependencies with time anymore. The system has not reached a true steady state, as the environmental profiles change only on much longer time scales, but the entrainment and detrainment rates in the lower troposphere have adjusted to the environment.Figure 1 shows six vertical profiles of the diagnosed entrainment and detrainment rates averaged over the 8th hour for a low, a medium and a high relative humidity environment combined with a high and a low stability.
 A number of observations can be made. First of all, deeper and stronger convection is promoted by a more unstable but also by a more humid atmosphere. The entrainment, however, appears to be rather insensitive to the environmental conditions and decreases with height for all cases in a similar way (approximately proportional to 1/z). The detrainment, on the other hand, increases strongly in a dryer and a more stable environment. As a result, the difference between detrainment and entrainment is maximal for the dry stable cases, leading to a strongly decreasing mass-flux with height (equation (1)). In the moist unstable cases, however, the mass-flux profile is almost constant with height. From these results we conclude that the mass-flux profile is mainly governed by the detrainment, as was also found for shallow cumulus convection [De Rooy and Siebesma, 2008].
 In order to further explore the dependencies of convection on the environment we show in Figure 2 the various characteristics of the moist convection at 2500 m above ground level. This level is used for all simulations; note that the cloud base is at a similar level, possibly due to the fact that the initial relative humidity in the boundary layer is kept constant (see Figure S1). The axes show the initial stability near the surface and the initial free tropospheric relative humidity. Figures 2a and 2bshow the entrainment and detrainment rates on the same scale, further strengthening the conclusion that the variation of the mass-flux is largely governed by detrainment. Only if we display the entrainment on a much smaller scale (Figure 2c), can it be observed that also the entrainment rates decrease in a moister and more unstable atmosphere. The changes in other measures of convective activity such as cloud top height and precipitation rate (Figures 2d and 2e) show a similar behaviour: higher cloud tops and more precipitation occur in a moister and more unstable atmosphere. Cloud top height is diagnosed as the height at which the mass-flux has decreased to 1% of its maximum value. Finally, the critical mixingχcr diagnosed at 2500 m (Figure 2f) also shows a similar dependence on the environmental conditions, with typical values of χcr around 0.2–0.3.
3. A Simple Model for the Mass-Flux
 The results from the previous section suggest a strong correlation between the detrainment δ and χcr. In order to further explore this relationship, we show in Figures 3a–3c the diagnosed entrainment and detrainment rates as well as their difference as a function of χcr for all 90 simulations at model levels below 6000 m.
 The entrainment rates (Figure 3a) do not show a consistent dependence on χcr at each height, although a weak dependence in the bulk values is found. However, this dependence is much weaker than the clear decrease with height that is found. The detrainment rates (Figure 3b), however, do show a clear relation with χcr at every height, though also here a systematic decrease with height is present. The difference δ − ϵ (Figure 3c), which determines the shape of the mass-flux profile (seeequation (1)), shows an even better relationship with χcr. Its overall shape is predominantly determined by detrainment, with only a minor dependence on height. For comparison, Figures 3d and 3e also show the dependence of δ − ϵ on relative humidity and stability separately. There is much more scatter on these latter plots, indicating that χcr is a superior indicator for the combined effect of stability and humidity on convection.
 In order to establish a simple parameterization, we use a bulk approach (following De Rooy and Siebesma ). We consider the average values of χcr and δ − ϵ over the lower half of the cloud, with cloud top defined as in the previous section. The results are shown as black crosses in Figure 3. We are now in a position to compare these results with equations (2)–(4). We do not find a pronounced relation between ϵ and χcr , contradicting equation (2). The detrainment δ and hence also δ − ϵ do show a strong dependence on χcr. However, δ − ϵ becomes small at relatively low values of χcr (around 0.3, as in De Rooy and Siebesma , whereas Kain-Fritsch predictsδ − ϵ = 0 for χcr = 0.5). The small values of χcr are due to relatively small buoyancy excesses of the cloud core in the LES.
 In order to find a physical interpretation of the results, we investigate whether the changes in the gradient of the mass-flux should be attributed to changes in cloud fraction or to changes in the vertical velocity, using the relation
Virtually all the differences of the mass-flux profiles are caused by changes in the fractional area of the cloud core (seeFigure 3f), as was also found for shallow cumulus convection [Neggers et al., 2009; De Rooy and Siebesma, 2010]. The physical picture emerging from this is that in the dry stable regime the cloud field is dominated by shallow clouds. As a result, the cloud core fraction and mass-flux are strongly decreasing with height. In the case of moister and more unstable conditions, on the other hand, many of the convective towers are able to reach the upper troposphere.
 For a parameterization it is important to realize that a perfect entrainment model predicts the correct value of χcr. Here. we explore this pathway by assuming that we have the perfect entrainment model, i.e. using the diagnosed values of χcr from the LES. For simplicity, we use a linear fit to the bulk values (black crosses in Figure 3c) in order to parameterize the dependence:
with a = 2.4 × 10−3 m−1 and b = 7.4 × 10−3 m−1. We apply this bulk fit to the local diagnosed value of χcr(z) in order to parameterize the mass-flux profiles.
 The overall behavior of the 90 simulations seems to be well captured, probably better than any existing convection scheme (Figure 4). The height of the deepest clouds is somewhat underestimated in most cases. Possibly, besides χcr, the cloud width also plays a role in setting ϵ and δ [Grabowski et al., 2006; Stirling and Stratton, 2011]. At the higher levels, the smaller and narrower clouds have disappeared from the ensemble [Böing et al., 2012]. This width dependence is also important to take into account if we extend our results to shallow convection. Similar plots as Figure 3 for shallow cumulus cases, such as BOMEX, show that a strong correlation between χcr and δ − ϵ is robust. However, both ϵ and δ tend to have higher values in shallow convection, which is consistent with lower entrainment and detrainment rates for deep convection in other parameterizations [e.g., Bechtold et al., 2001]. Nevertheless, the first order estimates of the mass-fluxes displayed inFigure 4 are highly encouraging.
 We have investigated an ensemble of 90 cases with deep convection, which shows detrainment depends strongly on the relative humidity and stability of the free troposphere. The mass-flux is governed mainly by detrainment, and a strong correlation betweenδ − ϵ and the critical mixing fraction was found. This dependence also manifests itself in the cloud top height and precipitation rates mainly depending on χcr. The relationship between the entrainment rate and χcr is much weaker and has the opposite sensitivity to the Kain and Fritsch  scheme, but 1/z behaviour seems to hold to first order.
 Some recent work [e.g., Bechtold et al., 2008] has focused on the sensitivity of entrainment to relative humidity. The LES results indicate this sensitivity is relatively weak. Nevertheless, subtle differences in entrainment rate may be relevant in determining χcr. This sensitivity makes an accurate description of the bulk-plume entrainment, as discussed in, e.g.,Grabowski et al. , important for the success of a fully prognostic parameterization. Assuming such a description is available, Figure 4shows that direct modelling of the mass-flux usingχcr is a viable approach for the parameterization of deep convection. As an obvious next step we intend to evaluate the present ideas fully prognostically in Single Column Model versions of weather and climate models.
 The use of supercomputer facilities was sponsored by the National Computing Facilities Foundation (NCF), with financial support from NWO. The authors wish to thank Zhiming Kuang and one anonymous reviewer for their valuable comments.
 The Editor thanks Zhiming Kuang and an anonymous reviewer for their assistance in evaluating this paper.