Condensation mode determines the freezing of condensed water on solid surfaces