Incipient stratification and mixing in aerated liquid-liquid or liquid-solid mixtures