A generic framework for multi-field two-phase flow based on the two-fluid model. (January 2017)