Two-phase flow in micro and nanofluidic devices door