Merge two-phase flow engine