A calculation procedure for two phase flow distribution in manifolds with and without heat transfer