Onset of double-diffusive convection in a horizontal Brinkman cavity